/third_party/vk-gl-cts/scripts/khr_util/ |
H A D | gen_str_util.py | 26 def isValueDefined (definitions, value): 27 return value in definitions 29 def allValuesUndefined (definitions, values): 31 if isValueDefined(definitions, value): 35 def anyValueDefined (definitions, values): 36 return not allValuesUndefined(definitions, values) 43 definitions = makeDefSet(iface) 47 if anyValueDefined(definitions, values): 54 if anyValueDefined(definitions, values): 61 if anyValueDefined(definitions, value [all...] |
/third_party/mbedtls/scripts/ |
H A D | generate_ssl_debug_helpers.py | 229 - the definitions SHOULD exist in same macro blocks. 239 yield SignatureAlgorithmDefinition(source_code, definitions=matches) 241 def __init__(self, source_code, definitions=None): 242 if definitions is None: 243 definitions = [] 244 assert isinstance(definitions, list) and definitions 245 self._definitions = definitions 288 - the definitions SHOULD exist in same macro blocks. 298 yield NamedGroupDefinition(source_code, definitions [all...] |
/third_party/mesa3d/src/amd/compiler/ |
H A D | aco_opt_value_numbering.cpp | 68 uint32_t len = instr->operands.size() + instr->definitions.size() + sizeof(T); in hash_murmur_32() 83 * instruction is used for the hash, i.e. everything except the definitions. 125 a->definitions.size() != b->definitions.size()) in operator ()() 149 for (unsigned i = 0; i < a->definitions.size(); i++) { in operator ()() 150 if (a->definitions[i].isTemp()) { in operator ()() 151 if (!b->definitions[i].isTemp()) in operator ()() 153 if (a->definitions[i].regClass() != b->definitions[i].regClass()) in operator ()() 156 if (a->definitions[ in operator ()() [all...] |
H A D | aco_optimizer.cpp | 537 if (instr->definitions.empty()) in pseudo_propagate_temp() 542 std::all_of(instr->definitions.begin(), instr->definitions.end(), in pseudo_propagate_temp() 551 std::none_of(instr->definitions.begin(), instr->definitions.end(), in pseudo_propagate_temp() 580 decrease -= instr->definitions.back().bytes(); in pseudo_propagate_temp() 581 instr->definitions.pop_back(); in pseudo_propagate_temp() 587 if (temp.regClass() == instr->definitions[0].regClass()) in pseudo_propagate_temp() 621 tmp->definitions.size())); in to_VOP3() 623 for (unsigned i = 0; i < instr->definitions in to_VOP3() [all...] |
H A D | aco_validate.cpp | 165 check((instr->definitions[0].isFixed() && instr->definitions[0].physReg() == vcc) || in validate_ir() 169 const Definition& def = instr->definitions[0]; in validate_ir() 170 check(def.bytes() <= 4, "SDWA definitions must not be larger than 4 bytes", in validate_ir() 180 "SDWA dst_sel size must be definition size for subdword definitions", in validate_ir() 183 "SDWA dst_sel offset must be 0 for subdword definitions", instr.get()); in validate_ir() 200 if (instr->definitions.size() >= 2) { in validate_ir() 201 check(instr->definitions[1].isFixed() && instr->definitions[1].physReg() == vcc, in validate_ir() 237 if (instr->definitions[ in validate_ir() [all...] |
H A D | aco_assembler.cpp | 116 encoding |= !instr->definitions.empty() ? instr->definitions[0].physReg() << 16 : 0; in emit_instruction() 141 encoding |= !instr->definitions.empty() && !(instr->definitions[0].physReg() == scc) in emit_instruction() 142 ? instr->definitions[0].physReg() << 16 in emit_instruction() 152 encoding |= !instr->definitions.empty() ? instr->definitions[0].physReg() << 16 : 0; in emit_instruction() 180 bool soe = instr->operands.size() >= (!instr->definitions.empty() ? 3 : 4); in emit_instruction() 181 bool is_load = !instr->definitions.empty(); in emit_instruction() 187 encoding |= instr->definitions in emit_instruction() [all...] |
H A D | aco_ssa_elimination.cpp | 66 if (phi->operands[i].physReg() == phi->definitions[0].physReg()) in collect_phi_info() 69 assert(phi->definitions[0].size() == phi->operands[i].size()); in collect_phi_info() 76 info_vec.push_back({phi->definitions[0], phi->operands[i]}); in collect_phi_info() 105 pc->definitions[i] = phi_info.def; in insert_parallelcopies() 124 PhysReg scratch_sgpr = (*it)->definitions[0].physReg(); in insert_parallelcopies() 130 pc->definitions[i] = phi_info.def; in insert_parallelcopies() 152 for (unsigned i = 0; i < instr->definitions.size(); i++) { in is_empty_block() 153 if (ignore_exec_writes && instr->definitions[i].physReg() == exec) in is_empty_block() 155 if (instr->definitions[i].physReg() != instr->operands[i].physReg()) in is_empty_block() 161 if (ignore_exec_writes && instr->definitions[ in is_empty_block() [all...] |
H A D | aco_insert_NOPs.cpp | 219 for (Definition& def : pred->definitions) { in handle_raw_hazard_instr() 337 if (ctx.smem_write || instr->definitions.empty() || in handle_smem_clause_hazards() 349 Definition def = instr->definitions[0]; in handle_smem_clause_hazards() 417 for (Definition def : instr->definitions) { in handle_instruction_gfx6() 491 if (instr->definitions.empty() || instr_info.is_atomic[(unsigned)instr->opcode]) { in handle_instruction_gfx6() 503 Definition def = instr->definitions[0]; in handle_instruction_gfx6() 509 for (Definition def : instr->definitions) { in handle_instruction_gfx6() 521 } else if (instr->isSALU() && !instr->definitions.empty()) { in handle_instruction_gfx6() 522 if (!instr->definitions.empty()) { in handle_instruction_gfx6() 523 /* all other definitions shoul in handle_instruction_gfx6() [all...] |
H A D | aco_ir.cpp | 224 if (!pre_ra && instr->definitions.size() >= 2) in can_use_SDWA() 235 if (!instr->definitions.empty() && instr->definitions[0].bytes() > 4 && !instr->isVOPC()) in can_use_SDWA() 278 tmp->definitions.size())); in convert_to_SDWA() 280 std::copy(tmp->definitions.cbegin(), tmp->definitions.cend(), instr->definitions.begin()); in convert_to_SDWA() 300 sdwa.dst_sel = SubdwordSel(instr->definitions[0].bytes(), 0, false); in convert_to_SDWA() 302 if (instr->definitions[0].getTemp().type() == RegType::sgpr && gfx_level == GFX8) in convert_to_SDWA() 303 instr->definitions[ in convert_to_SDWA() [all...] |
H A D | aco_register_allocation.cpp | 682 assert(instr->definitions[0].bytes() <= 2); in add_subdword_definition() 772 /* the definitions with id are not from this function and already handled */ in update_renames() 788 for (Definition& def : instr->definitions) { in update_renames() 1495 * operands and definitions. in compact_relocate_vars() 1612 for (Definition def : split_vec->second->definitions) { in get_reg() 1671 for (Definition def : instr->definitions) { in get_reg() 1700 /* reallocate definitions */ in get_reg() 1702 for (Definition def : instr->definitions) { in get_reg() 1874 /* if all definitions are logical vgpr, no need to care for SCC */ in handle_pseudo() 1875 for (Definition& def : instr->definitions) { in handle_pseudo() [all...] |
H A D | aco_dead_code_analysis.cpp | 86 if (instr->definitions.empty() || instr->isBranch() || in is_dead() 89 if (std::any_of(instr->definitions.begin(), instr->definitions.end(), in is_dead() 109 ctx.uses[startpgm->definitions.back().tempId()]++; in dead_code_analysis()
|
H A D | aco_live_var_analysis.cpp | 38 for (const Definition& def : instr->definitions) { in get_live_changes() 58 for (Definition def : instr->definitions) { in get_temp_registers() 100 if (instr->definitions.size() == 2) in instr_needs_vcc() 133 for (Definition& definition : insn->definitions) { in process_live_temps_per_block() 194 /* handle phi definitions */ in process_live_temps_per_block() 201 assert(is_phi(insn) && insn->definitions.size() == 1); in process_live_temps_per_block() 202 if (!insn->definitions[0].isTemp()) { in process_live_temps_per_block() 203 assert(insn->definitions[0].isFixed() && insn->definitions[0].physReg() == exec); in process_live_temps_per_block() 207 Definition& definition = insn->definitions[ in process_live_temps_per_block() [all...] |
H A D | aco_lower_phis.cpp | 114 phi->definitions[0] = Definition(op.getTemp()); in get_ssa() 298 new_phi->definitions[0] = phi->definitions[0]; in lower_divergent_bool_phi() 318 if (phi->operands[i].regClass() == phi->definitions[0].regClass()) in lower_subdword_phis() 328 Temp new_phi_src = bld.tmp(phi->definitions[0].regClass()); in lower_subdword_phis() 347 assert(program->wave_size == 64 ? phi->definitions[0].regClass() != s1 in lower_phis() 348 : phi->definitions[0].regClass() != s2); in lower_phis() 349 if (phi->definitions[0].regClass() == program->lane_mask) in lower_phis() 351 else if (phi->definitions[0].regClass().is_subdword()) in lower_phis()
|
H A D | aco_spill.cpp | 196 for (const Definition& def : instr->definitions) { in next_uses_per_block() 221 auto it = instr->definitions[0].isTemp() ? next_use_distances_start.find(instr->definitions[0].getTemp()) in next_uses_per_block() 224 phi_defs.insert(instr->definitions[0].getTemp()).second) { in next_uses_per_block() 307 /* TODO: rematerialization with multiple definitions isn't yet supported */ in should_rematerialize() 308 if (instr->definitions.size() > 1) in should_rematerialize() 325 assert(instr->definitions.size() == 1 && "unsupported"); in do_reload() 330 instr->opcode, instr->format, instr->operands.size(), instr->definitions.size())); in do_reload() 333 instr->opcode, instr->format, instr->operands.size(), instr->definitions.size())); in do_reload() 336 instr->opcode, instr->format, instr->operands.size(), instr->definitions in do_reload() [all...] |
H A D | aco_optimizer_postRA.cpp | 122 for (const Definition& def : instr->definitions) { in save_reg_writes() 253 assert(last_vcc_wr->definitions[0].tempId() == op0_instr->operands[0].tempId()); in try_apply_branch_vcc() 300 if (!wr_instr->isSALU() || wr_instr->definitions.size() < 2 || in try_optimize_scc_nocompare() 301 wr_instr->definitions[1].physReg() != scc) in try_optimize_scc_nocompare() 341 instr->operands[0] = Operand(wr_instr->definitions[1].getTemp(), scc); in try_optimize_scc_nocompare() 430 if (mov->definitions[0].physReg() == mov->operands[0].physReg() && in try_combine_dpp() 431 (!mov->definitions[0].tempId() || ctx.uses[mov->definitions[0].tempId()] > 1)) in try_combine_dpp() 444 if (--ctx.uses[mov->definitions[0].tempId()]) in try_combine_dpp()
|
H A D | aco_lower_to_hw_instr.cpp | 192 if (instr->definitions.size() >= 2) { in emit_vadd32() 193 assert(instr->definitions[1].regClass() == bld.lm); in emit_vadd32() 194 instr->definitions[1].setFixed(vcc); in emit_vadd32() 518 sdwa->definitions[0] = Definition(PhysReg{tmp}, v1); in emit_reduction() 541 sdwa->definitions[0] = Definition(PhysReg{tmp}, v1); in emit_reduction() 855 Definition dst = instr->definitions[0]; in emit_gfx10_wave64_bpermute() 856 Definition tmp_exec = instr->definitions[1]; in emit_gfx10_wave64_bpermute() 857 Definition clobber_scc = instr->definitions[2]; in emit_gfx10_wave64_bpermute() 926 Definition dst = instr->definitions[0]; in emit_gfx6_bpermute() 927 Definition temp_exec = instr->definitions[ in emit_gfx6_bpermute() [all...] |
H A D | aco_insert_waitcnt.cpp | 276 for (const Definition& def : instr->definitions) { in check_instr() 305 instr->definitions[0].physReg() == sgpr_null) { in parse_wait_instr() 388 if (ctx.pending_s_buffer_store && !instr->smem().definitions.empty() && in kill() 648 if (ctx.gfx_level < GFX10 && !instr->definitions.empty()) in gen() 653 if (!instr->definitions.empty()) in gen() 654 insert_wait_entry(ctx, instr->definitions[0], event_flat); in gen() 661 if (!instr->definitions.empty()) in gen() 662 insert_wait_entry(ctx, instr->definitions[0], event_smem); in gen() 674 if (!instr->definitions.empty()) in gen() 675 insert_wait_entry(ctx, instr->definitions[ in gen() [all...] |
H A D | aco_insert_exec_mask.cpp | 304 phi->definitions[0] = bld.def(bld.lm); in add_coupling_code() 315 phi->definitions[0] = bld.def(bld.lm); in add_coupling_code() 324 phi->definitions[0] = bld.def(bld.lm); in add_coupling_code() 326 phi->definitions[0] = Definition(exec, bld.lm); in add_coupling_code() 411 phi->definitions[0] = bld.def(bld.lm); in add_coupling_code() 413 phi->definitions[0] = Definition(exec, bld.lm); in add_coupling_code() 500 if (!instr->isVMEM() || instr->definitions.empty()) in handle_atomic_data() 598 ctx.info[block->index].exec[i].first = Operand(andn2->definitions[0].getTemp()); in process_instructions() 599 exit_cond = andn2->definitions[1].getTemp(); in process_instructions() 607 Definition dst = instr->definitions[ in process_instructions() [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | link_interface_blocks.cpp | 331 interface_block_definitions *definitions; in validate_intrastage_interface_blocks() local 334 definitions = &in_interfaces; in validate_intrastage_interface_blocks() 337 definitions = &out_interfaces; in validate_intrastage_interface_blocks() 340 definitions = &uniform_interfaces; in validate_intrastage_interface_blocks() 343 definitions = &buffer_interfaces; in validate_intrastage_interface_blocks() 353 ir_variable *prev_def = definitions->lookup(var); in validate_intrastage_interface_blocks() 358 definitions->store(var); in validate_intrastage_interface_blocks() 361 linker_error(prog, "definitions of interface block `%s' do not" in validate_intrastage_interface_blocks() 383 interface_block_definitions definitions; in validate_interstage_inout_blocks() local 468 definitions in validate_interstage_inout_blocks() 522 interface_block_definitions definitions; validate_interstage_uniform_blocks() local [all...] |
/third_party/node/tools/ |
H A D | js2c.py | 122 def AddModule(filename, definitions, initializers): 129 definitions.append(definition) 145 definitions = [] 149 AddModule(filename, definitions, initializers) 151 AddModule(filename, definitions, initializers) 154 definitions.append(config_def) 157 definitions = ''.join(definitions) 159 out = TEMPLATE.format(definitions, initializers, config_size)
|
/third_party/skia/src/gpu/glsl/ |
H A D | GrGLSLShaderBuilder.h | 74 this->definitions().appendf("const %s %s = %s;\n", type, name, value); in defineConstant() 78 this->definitions().appendf("const int %s = %i;\n", name, value); in defineConstant() 82 this->definitions().appendf("const float %s = %f;\n", name, value); in defineConstant() 86 this->definitions().appendf("const %s %s = ", type, name); in defineConstantf() 89 this->definitions().appendVAList(fmt, args); in defineConstantf() 91 this->definitions().append(";\n"); in defineConstantf() 94 void definitionAppend(const char* str) { this->definitions().append(str); } in definitionAppend() 237 SkString& definitions() { return fShaderStrings[kDefinitions]; } in definitions() function in GrGLSLShaderBuilder
|
/third_party/jerryscript/targets/mbedos5/tools/ |
H A D | generate_pins.py | 17 Generate pins.cpp for a specified target, using target definitions from the 118 def enumerate_pins(c_source_file, include_dirs, definitions): 123 definitions += ['__attribute(x)__=', '__extension__(x)=', 'register=', '__IO=', 'uint32_t=unsigned int'] 128 gcc_args += ['-D' + definition for definition in definitions] 185 Generate pins.cpp for a specified mbed board, using target definitions from the
|
/third_party/mesa3d/src/freedreno/ir3/ |
H A D | ir3_liveness.c | 104 struct ir3_register *reg = live->definitions[name]; in compute_block_liveness() 125 array_insert(live, live->definitions, NULL); in ir3_calc_liveness() 134 array_insert(live, live->definitions, dst); in ir3_calc_liveness()
|
/third_party/node/deps/npm/test/fixtures/ |
H A D | sandbox.js | 254 const definitions = this[_test].mock('@npmcli/config/lib/definitions') 256 '@npmcli/config/lib/definitions': definitions, 307 const definitions = this[_test].mock('@npmcli/config/lib/definitions') 309 '@npmcli/config/lib/definitions': definitions,
|
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
H A D | gen_framework_sc.py | 429 def __init__ (self, name, handles, enums, bitfields, compositeTypes, functions, definitions, additionalDefinitions, typedefs, versionInCore): 431 self.definitions = definitions 442 return 'EXT:\n%s ->\nENUMS:\n%s\nCOMPOS:\n%s\nFUNCS:\n%s\nBITF:\n%s\nHAND:\n%s\nDEFS:\n%s\n' % (self.name, self.enums, self.compositeTypes, self.functions, self.bitfields, self.handles, self.definitions, self.versionInCore) 445 def __init__ (self, versions, definitions, handles, enums, bitfields, bitfields64, compositeTypes, functions, extensions, additionalExtensionData): 447 self.definitions = definitions 543 # construct list of locations where version definitions start, and add the end of the file to it 554 # iterate over all versions and find all structure definitions 566 # 2. starting point off version specific definitions i [all...] |