/third_party/mesa3d/src/compiler/spirv/ |
H A D | vtn_gather_types_c.py | 33 for inst in spirv['instructions']: 35 if inst['opcode'] in seen: 37 seen.add(inst['opcode']) 39 name = inst['opname'] 41 if 'operands' not in inst: 46 for idx, arg in enumerate(inst['operands']):
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_reorder_uniforms.c | 46 qir_for_each_inst_inorder(inst, c) { in qir_reorder_uniforms() 49 for (int i = 0; i < qir_get_nsrc(inst); i++) { in qir_reorder_uniforms() 50 if (inst->src[i].file != QFILE_UNIF) in qir_reorder_uniforms() 68 assert(inst->src[i].index == uniform_index[new]); in qir_reorder_uniforms() 71 uniform_index[new] = inst->src[i].index; in qir_reorder_uniforms() 72 inst->src[i].index = new; in qir_reorder_uniforms()
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_vec4_vs_visitor.cpp | 49 vec4_instruction *inst = emit(VEC4_VS_OPCODE_URB_WRITE); in emit_urb_write_opcode() local 50 inst->urb_write_flags = complete ? in emit_urb_write_opcode() 53 return inst; in emit_urb_write_opcode() 72 vec4_instruction *inst = emit_generic_urb_slot(reg, varying, 0); in emit_urb_slot() local 73 if (inst && key->clamp_vertex_color) in emit_urb_slot() 74 inst->saturate = true; in emit_urb_slot()
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | radeon_rename_regs.c | 52 struct rc_instruction * inst; in rc_rename_regs() local 58 for(inst = c->Program.Instructions.Next; in rc_rename_regs() 59 inst != &c->Program.Instructions; in rc_rename_regs() 60 inst = inst->Next) { in rc_rename_regs() 61 if (inst->U.I.Opcode == RC_OPCODE_BGNLOOP) in rc_rename_regs()
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
H A D | radeon_compiler_optimize_tests.c | 56 struct rc_instruction *inst; in test_runner_rc_optimize() local 67 for(inst = c.Program.Instructions.Next; in test_runner_rc_optimize() 68 inst != &c.Program.Instructions; in test_runner_rc_optimize() 69 inst = inst->Next, inst_count++) { in test_runner_rc_optimize() 70 inst_list[inst_count] = inst; in test_runner_rc_optimize()
|
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_literals.cpp | 67 spv_result_t LiteralsPass(ValidationState_t& _, const Instruction* inst) { 69 for (size_t i = 0; i < inst->operands().size(); i++) { 70 const spv_parsed_operand_t& operand = inst->operand(i); 75 const uint32_t upper_word = inst->word(last_index); 88 return _.diag(SPV_ERROR_INVALID_VALUE, inst) 90 << inst->id() << " must be 0 for a floating-point type, "
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | combine_access_chains.h | 45 // Combines an access chain (normal, in bounds or pointer) |inst| if its base 48 bool CombineAccessChain(Instruction* inst); 53 // Returns the array stride of |inst|'s type. 54 uint32_t GetArrayStride(const Instruction* inst); 56 // Returns the type by resolving the index operands |inst|. |inst| must be an 58 const analysis::Type* GetIndexedType(Instruction* inst); 62 bool CreateNewInputOperands(Instruction* ptr_input, Instruction* inst, 65 // Combines the last index of |ptr_input| with the element operand of |inst|. 67 bool CombineIndices(Instruction* ptr_input, Instruction* inst, [all...] |
H A D | fold.h | 89 // Tries to fold |inst| to a single constant, when the input ids to |inst| 99 Instruction* inst, std::function<uint32_t(uint32_t)> id_map) const; 100 // Returns true if |inst| can be folded into a simpler instruction. 101 // If |inst| can be simplified, |inst| is overwritten with the simplified 104 // If |inst| is simplified, it is possible that the resulting code in invalid 109 // |inst| in a basic block then this is invalid. The caller must fix this 111 bool FoldInstruction(Instruction* inst) const; 114 bool HasConstFoldingRule(const Instruction* inst) cons [all...] |
H A D | interp_fixup_pass.cpp | 44 bool ReplaceInternalInterpolate(IRContext* ctx, Instruction* inst, in ReplaceInternalInterpolate() argument 50 uint32_t ext_opcode = inst->GetSingleWordInOperand(1); in ReplaceInternalInterpolate() 52 uint32_t op1_id = inst->GetSingleWordInOperand(2); in ReplaceInternalInterpolate() 65 ? inst->GetSingleWordInOperand(3) in ReplaceInternalInterpolate() 75 inst->SetInOperands(std::move(new_operands)); in ReplaceInternalInterpolate() 76 ctx->UpdateDefUse(inst); in ReplaceInternalInterpolate() 120 func.ForEachInst([&changed, &folder](Instruction* inst) { in Process() 121 if (folder.FoldInstruction(inst)) { in Process()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | combine_access_chains.h | 45 // Combines an access chain (normal, in bounds or pointer) |inst| if its base 48 bool CombineAccessChain(Instruction* inst); 53 // Returns the array stride of |inst|'s type. 54 uint32_t GetArrayStride(const Instruction* inst); 56 // Returns the type by resolving the index operands |inst|. |inst| must be an 58 const analysis::Type* GetIndexedType(Instruction* inst); 62 bool CreateNewInputOperands(Instruction* ptr_input, Instruction* inst, 65 // Combines the last index of |ptr_input| with the element operand of |inst|. 67 bool CombineIndices(Instruction* ptr_input, Instruction* inst, [all...] |
H A D | fold.h | 89 // Tries to fold |inst| to a single constant, when the input ids to |inst| 99 Instruction* inst, std::function<uint32_t(uint32_t)> id_map) const; 100 // Returns true if |inst| can be folded into a simpler instruction. 101 // If |inst| can be simplified, |inst| is overwritten with the simplified 104 // If |inst| is simplified, it is possible that the resulting code in invalid 109 // |inst| in a basic block then this is invalid. The caller must fix this 111 bool FoldInstruction(Instruction* inst) const; 114 bool HasConstFoldingRule(const Instruction* inst) cons [all...] |
H A D | interp_fixup_pass.cpp | 44 bool ReplaceInternalInterpolate(IRContext* ctx, Instruction* inst, in ReplaceInternalInterpolate() argument 50 uint32_t ext_opcode = inst->GetSingleWordInOperand(1); in ReplaceInternalInterpolate() 52 uint32_t op1_id = inst->GetSingleWordInOperand(2); in ReplaceInternalInterpolate() 65 ? inst->GetSingleWordInOperand(3) in ReplaceInternalInterpolate() 75 inst->SetInOperands(std::move(new_operands)); in ReplaceInternalInterpolate() 76 ctx->UpdateDefUse(inst); in ReplaceInternalInterpolate() 120 func.ForEachInst([&changed, &folder](Instruction* inst) { in Process() 121 if (folder.FoldInstruction(inst)) { in Process()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | validate_literals.cpp | 67 spv_result_t LiteralsPass(ValidationState_t& _, const Instruction* inst) { 69 for (size_t i = 0; i < inst->operands().size(); i++) { 70 const spv_parsed_operand_t& operand = inst->operand(i); 75 const uint32_t upper_word = inst->word(last_index); 88 return _.diag(SPV_ERROR_INVALID_VALUE, inst) 90 << inst->id() << " must be 0 for a floating-point type, "
|
/third_party/spirv-tools/source/opt/ |
H A D | combine_access_chains.h | 45 // Combines an access chain (normal, in bounds or pointer) |inst| if its base 48 bool CombineAccessChain(Instruction* inst); 53 // Returns the array stride of |inst|'s type. 54 uint32_t GetArrayStride(const Instruction* inst); 56 // Returns the type by resolving the index operands |inst|. |inst| must be an 58 const analysis::Type* GetIndexedType(Instruction* inst); 62 bool CreateNewInputOperands(Instruction* ptr_input, Instruction* inst, 65 // Combines the last index of |ptr_input| with the element operand of |inst|. 67 bool CombineIndices(Instruction* ptr_input, Instruction* inst, [all...] |
H A D | relax_float_ops_pass.cpp | 24 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() == spv::Op::OpExtInst && 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 D | fold.h | 97 // Tries to fold |inst| to a single constant, when the input ids to |inst| 107 Instruction* inst, std::function<uint32_t(uint32_t)> id_map) const; 108 // Returns true if |inst| can be folded into a simpler instruction. 109 // If |inst| can be simplified, |inst| is overwritten with the simplified 112 // If |inst| is simplified, it is possible that the resulting code in invalid 117 // |inst| in a basic block then this is invalid. The caller must fix this 119 bool FoldInstruction(Instruction* inst) const; 122 bool HasConstFoldingRule(const Instruction* inst) cons [all...] |
H A D | interp_fixup_pass.cpp | 35 bool ReplaceInternalInterpolate(IRContext* ctx, Instruction* inst, in ReplaceInternalInterpolate() argument 41 uint32_t ext_opcode = inst->GetSingleWordInOperand(1); in ReplaceInternalInterpolate() 43 uint32_t op1_id = inst->GetSingleWordInOperand(2); in ReplaceInternalInterpolate() 56 ? inst->GetSingleWordInOperand(3) in ReplaceInternalInterpolate() 66 inst->SetInOperands(std::move(new_operands)); in ReplaceInternalInterpolate() 67 ctx->UpdateDefUse(inst); in ReplaceInternalInterpolate() 111 func.ForEachInst([&changed, &folder](Instruction* inst) { in Process() 112 if (folder.FoldInstruction(inst)) { in Process()
|
/third_party/spirv-tools/source/val/ |
H A D | validate_literals.cpp | 64 spv_result_t LiteralsPass(ValidationState_t& _, const Instruction* inst) { 66 for (size_t i = 0; i < inst->operands().size(); i++) { 67 const spv_parsed_operand_t& operand = inst->operand(i); 72 const uint32_t upper_word = inst->word(last_index); 85 return _.diag(SPV_ERROR_INVALID_VALUE, inst) 87 << inst->id() << " must be 0 for a floating-point type, "
|
/third_party/vulkan-loader/loader/ |
H A D | settings.h | 79 VkResult get_loader_settings(const struct loader_instance* inst, loader_settings* out_loader_settings); 81 void free_loader_settings(const struct loader_instance* inst, loader_settings* loader_settings); 84 void log_settings(const struct loader_instance* inst, loader_settings* settings); 98 VkResult get_settings_layers(const struct loader_instance* inst, struct loader_layer_list* settings_layers, 104 VkResult combine_settings_layers_with_regular_layers(const struct loader_instance* inst, struct loader_layer_list* settings_layers, 110 VkResult enable_correct_layers_from_settings(const struct loader_instance* inst, const struct loader_envvar_all_filters* filters,
|
/kernel/linux/linux-5.10/arch/h8300/kernel/ |
H A D | ptrace_h.c | 21 *(child->thread.breakinfo.addr) = child->thread.breakinfo.inst; in user_disable_single_step() 165 unsigned char inst) in decode() 198 if (inst == 0x55 || isbranch(child, inst & 0x0f)) in decode() 203 if (inst == 0x5c || isbranch(child, (*fetch_p & 0xf0) >> 4)) in decode() 217 unsigned char inst; in nextpc() local 222 inst = *fetch_p++; in nextpc() 224 if ((inst & op->bitmask) == op->bitpattern) { in nextpc() 228 inst = *fetch_p++; in nextpc() 230 return decode(child, op, fetch_p, pc, inst); in nextpc() 162 decode(struct task_struct *child, const struct optable *op, char *fetch_p, unsigned short *pc, unsigned char inst) decode() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
H A D | nv44.c | 48 u32 inst; member 59 chan->inst = (*pgpuobj)->addr; in nv44_mpeg_chan_bind() 74 u32 inst = 0x80000000 | (chan->inst >> 4); in nv44_mpeg_chan_fini() local 77 if (nvkm_rd32(device, 0x00b318) == inst) in nv44_mpeg_chan_fini() 149 u32 inst = nvkm_rd32(device, 0x00b318) & 0x000fffff; in nv44_mpeg_intr() local 158 if (temp->inst >> 4 == inst) { in nv44_mpeg_intr() 184 chan ? chan->fifo->id : -1, inst << 4, in nv44_mpeg_intr() 205 nv44_mpeg_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in nv44_mpeg_new() argument [all...] |
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_lowering.c | 198 struct tgsi_full_instruction *inst) in transform_dst() 201 struct tgsi_full_dst_register *dst = &inst->Dst[0]; in transform_dst() 202 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_dst() 203 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_dst() 279 struct tgsi_full_instruction *inst) in transform_lrp() 282 struct tgsi_full_dst_register *dst = &inst->Dst[0]; in transform_lrp() 283 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_lrp() 284 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_lrp() 285 struct tgsi_full_src_register *src2 = &inst->Src[2]; in transform_lrp() 329 struct tgsi_full_instruction *inst) in transform_frc() 197 transform_dst(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_dst() argument 278 transform_lrp(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_lrp() argument 328 transform_frc(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_frc() argument 373 transform_pow(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_pow() argument 433 transform_lit(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_lit() argument 558 transform_exp(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_exp() argument 681 transform_log(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_log() argument 819 transform_dotp(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_dotp() argument 905 transform_flr_ceil(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_flr_ceil() argument 959 transform_trunc(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_trunc() argument 1032 transform_samp(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_samp() argument 1303 rename_color_inputs(struct tgsi_lowering_context *ctx, struct tgsi_full_instruction *inst) rename_color_inputs() argument 1323 transform_instr(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_instr() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/top/ |
H A D | gk104.c | 32 u32 data, type, inst; in gk104_top_oneinit() local 40 inst = 0; in gk104_top_oneinit() 49 inst = (data & 0x3c000000) >> 26; in gk104_top_oneinit() 73 #define A_(A) if (inst == 0) info->index = NVKM_ENGINE_##A in gk104_top_oneinit() 74 #define B_(A) if (inst + NVKM_ENGINE_##A##0 < NVKM_ENGINE_##A##_LAST + 1) \ in gk104_top_oneinit() 75 info->index = NVKM_ENGINE_##A##0 + inst in gk104_top_oneinit() 76 #define C_(A) if (inst == 0) info->index = NVKM_SUBDEV_##A in gk104_top_oneinit() 100 "reset %2d\n", type, inst, in gk104_top_oneinit()
|
/third_party/skia/third_party/externals/spirv-tools/source/reduce/ |
H A D | reduction_util.cpp | 28 for (auto& inst : context->module()->types_values()) { in FindOrCreateGlobalVariable() 29 if (inst.opcode() != SpvOpVariable) { in FindOrCreateGlobalVariable() 32 if (inst.type_id() == pointer_type_id) { in FindOrCreateGlobalVariable() 33 return inst.result_id(); in FindOrCreateGlobalVariable() 85 for (auto& inst : context->module()->types_values()) { in FindOrCreateGlobalUndef() 86 if (inst.opcode() != SpvOpUndef) { in FindOrCreateGlobalUndef() 89 if (inst.type_id() == type_id) { in FindOrCreateGlobalUndef() 90 return inst.result_id(); in FindOrCreateGlobalUndef()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/ |
H A D | reduction_util.cpp | 28 for (auto& inst : context->module()->types_values()) { in FindOrCreateGlobalVariable() 29 if (inst.opcode() != SpvOpVariable) { in FindOrCreateGlobalVariable() 32 if (inst.type_id() == pointer_type_id) { in FindOrCreateGlobalVariable() 33 return inst.result_id(); in FindOrCreateGlobalVariable() 85 for (auto& inst : context->module()->types_values()) { in FindOrCreateGlobalUndef() 86 if (inst.opcode() != SpvOpUndef) { in FindOrCreateGlobalUndef() 89 if (inst.type_id() == type_id) { in FindOrCreateGlobalUndef() 90 return inst.result_id(); in FindOrCreateGlobalUndef()
|