Home
last modified time | relevance | path

Searched refs:inst (Results 476 - 500 of 1405) sorted by relevance

1...<<11121314151617181920>>...57

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Drelax_float_ops_pass.cpp24 bool RelaxFloatOpsPass::IsRelaxable(Instruction* inst) { in IsRelaxable() argument
25 return target_ops_core_f_rslt_.count(inst->opcode()) != 0 || in IsRelaxable()
26 target_ops_core_f_opnd_.count(inst->opcode()) != 0 || in IsRelaxable()
27 sample_ops_.count(inst->opcode()) != 0 || in IsRelaxable()
28 (inst->opcode() == SpvOpExtInst && in IsRelaxable()
29 inst->GetSingleWordInOperand(0) == in IsRelaxable()
31 target_ops_450_.count(inst->GetSingleWordInOperand(1)) != 0); in IsRelaxable()
34 bool RelaxFloatOpsPass::IsFloat32(Instruction* inst) { in IsFloat32() argument
36 if (target_ops_core_f_opnd_.count(inst->opcode()) != 0) { in IsFloat32()
37 uint32_t opnd_id = inst in IsFloat32()
[all...]
H A Dconst_folding_rules.h33 // |inst| - the instruction to be simplified.
39 // A constant folding rule returns a pointer to an Constant if |inst| can be
52 IRContext* ctx, Instruction* inst,
84 bool HasFoldingRule(const Instruction* inst) const { in HasFoldingRule()
85 return !GetRulesForInstruction(inst).empty(); in HasFoldingRule()
88 // Returns true if there is at least 1 folding rule for |inst|.
90 const Instruction* inst) const { in GetRulesForInstruction()
91 if (inst->opcode() != SpvOpExtInst) { in GetRulesForInstruction()
92 auto it = rules_.find(inst->opcode()); in GetRulesForInstruction()
97 uint32_t ext_inst_id = inst in GetRulesForInstruction()
[all...]
/third_party/vixl/test/
H A Dtest-donkey.cc155 Instr inst; in main()
196 Instr inst; in main() variable
199 inst = cmdline_encoding; in main()
203 inst = static_cast<Instr>(mrand48()); in main()
206 inst = Mutate(useful_insts.back().inst); in main()
209 trial_decoder.Decode(reinterpret_cast<Instruction *>(&inst)); in main()
223 fprintf(stderr, "Trying 0x%08x (%s)\n", inst, buffer); in main()
238 masm.dci(i.inst); in main()
242 masm.dci(inst); in main()
[all...]
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_dump.c549 struct tgsi_full_instruction *inst ) in iter_instruction()
553 const struct tgsi_opcode_info *info = tgsi_get_opcode_info( inst->Instruction.Opcode ); in iter_instruction()
565 TXT( tgsi_get_opcode_name(inst->Instruction.Opcode) ); in iter_instruction()
567 if (inst->Instruction.Saturate) { in iter_instruction()
571 if (inst->Instruction.Precise) { in iter_instruction()
575 for (i = 0; i < inst->Instruction.NumDstRegs; i++) { in iter_instruction()
576 const struct tgsi_full_dst_register *dst = &inst->Dst[i]; in iter_instruction()
588 for (i = 0; i < inst->Instruction.NumSrcRegs; i++) { in iter_instruction()
589 const struct tgsi_full_src_register *src = &inst->Src[i]; in iter_instruction()
619 if (inst in iter_instruction()
685 tgsi_dump_instruction( const struct tgsi_full_instruction *inst, uint instno ) tgsi_dump_instruction() argument
808 tgsi_dump_instruction_str( const struct tgsi_full_instruction *inst, uint instno, char *str, size_t size) tgsi_dump_instruction_str() argument
[all...]
/third_party/skia/third_party/externals/spirv-tools/utils/
H A Dgenerate_vim_syntax.py162 for inst in core["instructions"]:
163 EmitAsStatement(inst['opname'])
175 for inst in glsl["instructions"]:
176 EmitAsEnumerant(inst['opname'])
181 for inst in opencl["instructions"]:
182 EmitAsEnumerant(inst['opname'])
187 for inst in debuginfo["instructions"]:
188 EmitAsEnumerant(inst['opname'])
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dtransformation_move_instruction_down.h54 // Returns true if the |inst| is supported by this transformation.
56 const opt::Instruction& inst);
58 // Returns true if |inst| represents a "simple" instruction. That is, it
61 const opt::Instruction& inst);
63 // Returns true if |inst| reads from memory.
65 const opt::Instruction& inst);
67 // Returns id being used by |inst| to read from. |inst| must be a memory read
71 const opt::Instruction& inst);
73 // Returns true if |inst| tha
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dconst_folding_rules.h33 // |inst| - the instruction to be simplified.
39 // A constant folding rule returns a pointer to an Constant if |inst| can be
52 IRContext* ctx, Instruction* inst,
84 bool HasFoldingRule(const Instruction* inst) const { in HasFoldingRule()
85 return !GetRulesForInstruction(inst).empty(); in HasFoldingRule()
88 // Returns true if there is at least 1 folding rule for |inst|.
90 const Instruction* inst) const { in GetRulesForInstruction()
91 if (inst->opcode() != SpvOpExtInst) { in GetRulesForInstruction()
92 auto it = rules_.find(inst->opcode()); in GetRulesForInstruction()
97 uint32_t ext_inst_id = inst in GetRulesForInstruction()
[all...]
H A Dflatten_decoration_pass.cpp50 for (const auto& inst : annotations) { in Process()
51 switch (inst.opcode()) { in Process()
53 group_ids.insert(inst.result_id()); in Process()
56 Words& words = normal_uses[inst.GetSingleWordInOperand(0)]; in Process()
57 for (uint32_t i = 1; i < inst.NumInOperandWords(); i++) { in Process()
58 words.push_back(inst.GetSingleWordInOperand(i)); in Process()
62 Words& words = member_uses[inst.GetSingleWordInOperand(0)]; in Process()
63 for (uint32_t i = 1; i < inst.NumInOperandWords(); i++) { in Process()
64 words.push_back(inst.GetSingleWordInOperand(i)); in Process()
H A Dscalar_replacement_pass.h92 // Returns true if the uses of |inst| are acceptable for scalarization.
94 // Recursively checks all the uses of |inst|. For |inst| specifically, only
99 bool CheckUses(const Instruction* inst) const;
105 bool CheckUses(const Instruction* inst, VariableStats* stats) const;
108 bool CheckUsesRelaxed(const Instruction* inst) const;
114 // Scalarizes |inst| and updates its uses.
116 // |inst| must be an OpVariable. It is replaced with an OpVariable for each
117 // for element of the composite type. Uses of |inst| are updated as
124 Pass::Status ReplaceVariable(Instruction* inst,
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dtransformation_move_instruction_down.h54 // Returns true if the |inst| is supported by this transformation.
56 const opt::Instruction& inst);
58 // Returns true if |inst| represents a "simple" instruction. That is, it
61 const opt::Instruction& inst);
63 // Returns true if |inst| reads from memory.
65 const opt::Instruction& inst);
67 // Returns id being used by |inst| to read from. |inst| must be a memory read
71 const opt::Instruction& inst);
73 // Returns true if |inst| tha
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/
H A Dgenerate_vim_syntax.py162 for inst in core["instructions"]:
163 EmitAsStatement(inst['opname'])
175 for inst in glsl["instructions"]:
176 EmitAsEnumerant(inst['opname'])
181 for inst in opencl["instructions"]:
182 EmitAsEnumerant(inst['opname'])
187 for inst in debuginfo["instructions"]:
188 EmitAsEnumerant(inst['opname'])
/third_party/spirv-tools/source/fuzz/
H A Dtransformation_move_instruction_down.h54 // Returns true if the |inst| is supported by this transformation.
56 const opt::Instruction& inst);
58 // Returns true if |inst| represents a "simple" instruction. That is, it
61 const opt::Instruction& inst);
63 // Returns true if |inst| reads from memory.
65 const opt::Instruction& inst);
67 // Returns id being used by |inst| to read from. |inst| must be a memory read
71 const opt::Instruction& inst);
73 // Returns true if |inst| tha
[all...]
/third_party/spirv-tools/source/opt/
H A Dconst_folding_rules.h33 // |inst| - the instruction to be simplified.
39 // A constant folding rule returns a pointer to an Constant if |inst| can be
52 IRContext* ctx, Instruction* inst,
84 bool HasFoldingRule(const Instruction* inst) const { in HasFoldingRule()
85 return !GetRulesForInstruction(inst).empty(); in HasFoldingRule()
88 // Returns true if there is at least 1 folding rule for |inst|.
90 const Instruction* inst) const { in GetRulesForInstruction()
91 if (inst->opcode() != spv::Op::OpExtInst) { in GetRulesForInstruction()
92 auto it = rules_.find(inst->opcode()); in GetRulesForInstruction()
97 uint32_t ext_inst_id = inst in GetRulesForInstruction()
[all...]
/third_party/spirv-tools/utils/
H A Dgenerate_vim_syntax.py162 for inst in core["instructions"]:
163 EmitAsStatement(inst['opname'])
175 for inst in glsl["instructions"]:
176 EmitAsEnumerant(inst['opname'])
181 for inst in opencl["instructions"]:
182 EmitAsEnumerant(inst['opname'])
187 for inst in debuginfo["instructions"]:
188 EmitAsEnumerant(inst['opname'])
/third_party/vulkan-loader/tests/live_verification/
H A Ddynamic_rendering_get_proc_addr.cpp38 InstWrapper inst(vk_funcs); in main()
39 inst.CheckCreate(); in main()
40 auto phys_devs = inst.GetPhysDevs(); in main()
62 DeviceWrapper dev(inst); in main()
78 reinterpret_cast<PFN_vkBeginCommandBuffer>(vk_funcs.vkGetInstanceProcAddr(inst.inst, "vkBeginCommandBuffer")); in main()
88 reinterpret_cast<PFN_vkCmdBeginRenderingKHR>(vk_funcs.vkGetInstanceProcAddr(inst.inst, "vkCmdBeginRenderingKHR")); in main()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_vertprog.c93 uint32_t *inst, target; in nv30_vertprog_validate() local
109 inst = vp->insns[reloc->location].data; in nv30_vertprog_validate()
112 inst[2] &= ~0x000007fc; in nv30_vertprog_validate()
113 inst[2] |= target << 2; in nv30_vertprog_validate()
118 inst = vp->insns[reloc->location].data; in nv30_vertprog_validate()
121 inst[2] &= ~0x0000003f; in nv30_vertprog_validate()
122 inst[2] |= target >> 3; in nv30_vertprog_validate()
123 inst[3] &= ~0xe0000000; in nv30_vertprog_validate()
124 inst[3] |= target << 29; in nv30_vertprog_validate()
136 uint32_t *inst, targe in nv30_vertprog_validate() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
H A Dtest_bitmanip.cpp21 #define X(inst, type) \
22 type test_##inst(type a) { return my_##inst(a); } \
23 type test_alloca_##inst(type a) { \
27 buf[i] = my_##inst(a); \
35 type test_const_##inst(type ignored) { \
36 return my_##inst(static_cast<type>(0x12340)); \
/third_party/mesa3d/src/gallium/frontends/clover/spirv/
H A Dinvocation.cpp163 const auto inst = &source[i * sizeof(uint32_t)]; in create_binary_from_spirv() local
164 const auto desc_word = get<uint32_t>(inst, 0); in create_binary_from_spirv()
170 names.emplace(get<SpvId>(inst, 1), in create_binary_from_spirv()
193 if (get<SpvExecutionModel>(inst, 1) == SpvExecutionModelKernel) in create_binary_from_spirv()
194 kernels.emplace(get<SpvId>(inst, 2), in create_binary_from_spirv()
199 switch (get<SpvExecutionMode>(inst, 2)) { in create_binary_from_spirv()
201 req_local_sizes[get<SpvId>(inst, 1)] = { in create_binary_from_spirv()
202 get<uint32_t>(inst, 3), in create_binary_from_spirv()
203 get<uint32_t>(inst, 4), in create_binary_from_spirv()
204 get<uint32_t>(inst, in create_binary_from_spirv()
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/val/
H A Dvalidate_primitives.cpp30 spv_result_t PrimitivesPass(ValidationState_t& _, const Instruction* inst) { in PrimitivesPass() argument
31 const SpvOp opcode = inst->opcode(); in PrimitivesPass()
38 _.function(inst->function()->id()) in PrimitivesPass()
51 const uint32_t stream_id = inst->word(1); in PrimitivesPass()
54 return _.diag(SPV_ERROR_INVALID_DATA, inst) in PrimitivesPass()
61 return _.diag(SPV_ERROR_INVALID_DATA, inst) in PrimitivesPass()
/third_party/skia/third_party/externals/spirv-tools/source/
H A Dextensions.cpp25 std::string GetExtensionString(const spv_parsed_instruction_t* inst) { in GetExtensionString() argument
26 if (inst->opcode != SpvOpExtension) return "ERROR_not_op_extension"; in GetExtensionString()
28 assert(inst->num_operands == 1); in GetExtensionString()
30 const auto& operand = inst->operands[0]; in GetExtensionString()
32 assert(inst->num_words > operand.offset); in GetExtensionString()
34 return reinterpret_cast<const char*>(inst->words + operand.offset); in GetExtensionString()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/
H A Dextensions.cpp25 std::string GetExtensionString(const spv_parsed_instruction_t* inst) { in GetExtensionString() argument
26 if (inst->opcode != SpvOpExtension) return "ERROR_not_op_extension"; in GetExtensionString()
28 assert(inst->num_operands == 1); in GetExtensionString()
30 const auto& operand = inst->operands[0]; in GetExtensionString()
32 assert(inst->num_words > operand.offset); in GetExtensionString()
34 return reinterpret_cast<const char*>(inst->words + operand.offset); in GetExtensionString()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A Dvalidate_primitives.cpp30 spv_result_t PrimitivesPass(ValidationState_t& _, const Instruction* inst) { in PrimitivesPass() argument
31 const SpvOp opcode = inst->opcode(); in PrimitivesPass()
38 _.function(inst->function()->id()) in PrimitivesPass()
51 const uint32_t stream_id = inst->word(1); in PrimitivesPass()
54 return _.diag(SPV_ERROR_INVALID_DATA, inst) in PrimitivesPass()
61 return _.diag(SPV_ERROR_INVALID_DATA, inst) in PrimitivesPass()
/third_party/spirv-tools/source/
H A Dextensions.cpp26 std::string GetExtensionString(const spv_parsed_instruction_t* inst) { in GetExtensionString() argument
27 if (inst->opcode != static_cast<uint16_t>(spv::Op::OpExtension)) { in GetExtensionString()
31 assert(inst->num_operands == 1); in GetExtensionString()
33 const auto& operand = inst->operands[0]; in GetExtensionString()
35 assert(inst->num_words > operand.offset); in GetExtensionString()
38 return spvDecodeLiteralStringOperand(*inst, 0); in GetExtensionString()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dr3xx_fragprog.c45 struct rc_sub_instruction * inst = &rci->U.I; in rc_rewrite_depth_out() local
47 const struct rc_opcode_info *info = rc_get_opcode_info(inst->Opcode); in rc_rewrite_depth_out()
49 if (inst->DstReg.File != RC_FILE_OUTPUT || inst->DstReg.Index != c->OutputDepth) in rc_rewrite_depth_out()
52 if (inst->DstReg.WriteMask & RC_MASK_Z) { in rc_rewrite_depth_out()
53 inst->DstReg.WriteMask = RC_MASK_W; in rc_rewrite_depth_out()
55 inst->DstReg.WriteMask = 0; in rc_rewrite_depth_out()
64 inst->SrcReg[i] = lmul_swizzle(RC_SWIZZLE_ZZZZ, inst->SrcReg[i]); in rc_rewrite_depth_out()
/third_party/python/Lib/test/
H A Dpydocfodder.py196 def __call__(self, inst):
197 print('Get called', self, inst)
198 return inst.desc[self.attr]
202 def __call__(self, inst, val):
203 print('Set called', self, inst, val)
204 inst.desc[self.attr] = val
208 def __call__(self, inst):
209 print('Del called', self, inst)
210 del inst.desc[self.attr]

Completed in 10 milliseconds

1...<<11121314151617181920>>...57