Home
last modified time | relevance | path

Searched refs:inst (Results 651 - 675 of 1478) sorted by relevance

1...<<21222324252627282930>>...60

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dprivate_to_local_pass.h26 // An instruction, inst, is totally redundant if there is another instruction
27 // that dominates inst, and also computes the same value.
47 // |inst| is an instruction declaring a varible. If that variable is
51 Function* FindLocalFunction(const Instruction& inst) const;
53 // Returns true is |inst| is a valid use of a pointer. In this case, a
56 bool IsValidUse(const Instruction* inst) const;
64 // Updates |inst|, and any instruction dependent on |inst|, to reflect the
66 bool UpdateUse(Instruction* inst, Instruction* user);
67 bool UpdateUses(Instruction* inst);
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/
H A Dchange_operand_reduction_opportunity.h28 // Constructs the opportunity to replace operand |operand_index| of |inst|
30 ChangeOperandReductionOpportunity(opt::Instruction* inst, in ChangeOperandReductionOpportunity() argument
32 : inst_(inst), in ChangeOperandReductionOpportunity()
34 original_id_(inst->GetOperand(operand_index).words[0]), in ChangeOperandReductionOpportunity()
35 original_type_(inst->GetOperand(operand_index).type), in ChangeOperandReductionOpportunity()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
H A Dassembly_context_test.cpp39 spv_instruction_t inst; in TEST_P() local
40 inst.words = GetParam().initial_contents; in TEST_P()
42 context.binaryEncodeString(GetParam().str.c_str(), &inst)); in TEST_P()
44 EXPECT_THAT(inst.words, Eq(Concatenate({GetParam().initial_contents, in TEST_P()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
H A Dtest_sync_atomic.h17 #define X(inst, type) \
18 type test_##inst(bool fetch_first, volatile type *ptr, type a); \
19 type test_alloca_##inst(bool fetch, volatile type *ptr, type a); \
20 type test_const_##inst(bool fetch, volatile type *ptr, type ignored);
/third_party/spirv-tools/source/opt/
H A Dprivate_to_local_pass.h26 // An instruction, inst, is totally redundant if there is another instruction
27 // that dominates inst, and also computes the same value.
47 // |inst| is an instruction declaring a variable. If that variable is
51 Function* FindLocalFunction(const Instruction& inst) const;
53 // Returns true is |inst| is a valid use of a pointer. In this case, a
56 bool IsValidUse(const Instruction* inst) const;
64 // Updates |inst|, and any instruction dependent on |inst|, to reflect the
66 bool UpdateUse(Instruction* inst, Instruction* user);
67 bool UpdateUses(Instruction* inst);
[all...]
/third_party/spirv-tools/source/reduce/
H A Dchange_operand_reduction_opportunity.h28 // Constructs the opportunity to replace operand |operand_index| of |inst|
30 ChangeOperandReductionOpportunity(opt::Instruction* inst, in ChangeOperandReductionOpportunity() argument
32 : inst_(inst), in ChangeOperandReductionOpportunity()
34 original_id_(inst->GetOperand(operand_index).words[0]), in ChangeOperandReductionOpportunity()
35 original_type_(inst->GetOperand(operand_index).type), in ChangeOperandReductionOpportunity()
/third_party/spirv-tools/test/
H A Dassembly_context_test.cpp39 spv_instruction_t inst; in TEST_P() local
40 inst.words = GetParam().initial_contents; in TEST_P()
42 context.binaryEncodeString(GetParam().str.c_str(), &inst)); in TEST_P()
44 EXPECT_THAT(inst.words, Eq(Concatenate({GetParam().initial_contents, in TEST_P()
/third_party/mesa3d/src/intel/common/
H A Dintel_batch_decoder.c214 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); in handle_state_base_address() local
217 intel_field_iterator_init(&iter, inst, p, 0, false); in handle_state_base_address()
252 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); in handle_binding_table_pool_alloc() local
255 intel_field_iterator_init(&iter, inst, p, 0, false); in handle_binding_table_pool_alloc()
418 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); in handle_media_interface_descriptor_load() local
423 intel_field_iterator_init(&iter, inst, p, 0, false); in handle_media_interface_descriptor_load()
460 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); in handle_compute_walker() local
463 intel_field_iterator_init(&iter, inst, p, 0, false); in handle_compute_walker()
476 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); in handle_3dstate_vertex_buffers() local
486 intel_field_iterator_init(&iter, inst, in handle_3dstate_vertex_buffers()
539 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); handle_3dstate_index_buffer() local
589 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_single_ksp() local
631 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_mesh_task_ksp() local
661 decode_ps_kern(struct intel_batch_decode_ctx *ctx, struct intel_group *inst, const uint32_t *p) decode_ps_kern() argument
717 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_ps_kernels() local
724 struct intel_group *inst = decode_3dstate_constant_all() local
767 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_3dstate_constant() local
814 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_gfx4_constant_buffer() local
947 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_dynamic_state_pointers() local
966 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_3dstate_viewport_state_pointers() local
1023 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_3dstate_cc_state_pointers() local
1109 struct intel_group *inst = intel_ctx_find_instruction(ctx, p); decode_load_register_imm() local
1403 struct intel_group *inst; intel_print_batch() local
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_vec4.h154 bool is_dep_ctrl_unsafe(const vec4_instruction *inst);
160 bool is_supported_64bit_region(vec4_instruction *inst, unsigned arg);
165 vec4_instruction *inst, int arg);
167 vec4_instruction *emit(vec4_instruction *inst);
180 vec4_instruction *inst,
265 src_reg get_scratch_offset(bblock_t *block, vec4_instruction *inst,
267 void emit_scratch_read(bblock_t *block, vec4_instruction *inst,
271 void emit_scratch_write(bblock_t *block, vec4_instruction *inst,
279 vec4_instruction *inst, src_reg src);
287 void dump_instruction(const backend_instruction *inst) cons
[all...]
H A Dbrw_fs_nir.cpp377 fs_inst *inst = bld.MOV(bld.null_reg_d(), in nir_emit_if() local
379 inst->conditional_mod = BRW_CONDITIONAL_NZ; in nir_emit_if()
627 fs_inst *inst; in emit_find_msb_using_lzd() local
664 inst = bld.ADD(result, retype(result, BRW_REGISTER_TYPE_D), brw_imm_d(31)); in emit_find_msb_using_lzd()
665 inst->src[0].negate = true; in emit_find_msb_using_lzd()
823 fs_inst *inst; in emit_fsign() local
873 inst = bld.OR(result, result, brw_imm_uw(0x3c00u)); in emit_fsign()
876 inst = bld.XOR(result, result, retype(op[1], BRW_REGISTER_TYPE_UW)); in emit_fsign()
879 inst->predicate = BRW_PREDICATE_NORMAL; in emit_fsign()
893 inst in emit_fsign()
973 fs_inst *inst; nir_emit_alu() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dfuzzer_pass_merge_function_returns.cpp151 ->WhileEachInst([](opt::Instruction* inst) { in Apply()
152 return inst->opcode() == SpvOpLabel || in Apply()
153 inst->opcode() == SpvOpPhi || in Apply()
154 inst->opcode() == SpvOpBranch; in Apply()
245 for (auto& inst : *function->entry()) { in GetTypesToIdsAvailableAfterEntryBlock()
246 if (inst.HasResultId() && inst.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock()
247 if (!result.count(inst.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock()
248 result.emplace(inst.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock()
250 result[inst in GetTypesToIdsAvailableAfterEntryBlock()
[all...]
H A Dfuzzer_pass.cpp434 for (auto& inst : GetIRContext()->types_values()) { in FindOrCreateGlobalUndef()
435 if (inst.opcode() == SpvOpUndef && inst.type_id() == type_id) { in FindOrCreateGlobalUndef()
436 return inst.result_id(); in FindOrCreateGlobalUndef()
475 for (auto& inst : GetIRContext()->types_values()) { in GetAvailableBasicTypesAndPointers()
482 switch (inst.opcode()) { in GetAvailableBasicTypesAndPointers()
489 basic_types.insert(inst.result_id()); in GetAvailableBasicTypesAndPointers()
490 basic_type_to_pointers.insert({inst.result_id(), {}}); in GetAvailableBasicTypesAndPointers()
494 if (basic_types.count(inst.GetSingleWordInOperand(0))) { in GetAvailableBasicTypesAndPointers()
495 basic_types.insert(inst in GetAvailableBasicTypesAndPointers()
[all...]
H A Dfuzzer_pass_add_function_calls.cpp114 [this, caller_block](opt::IRContext* /*unused*/, opt::Instruction* inst) { in ChooseFunctionCallArguments()
115 if (inst->opcode() != SpvOpVariable || in ChooseFunctionCallArguments()
116 inst->opcode() != SpvOpFunctionParameter) { in ChooseFunctionCallArguments()
127 ->PointeeValueIsIrrelevant(inst->result_id()); in ChooseFunctionCallArguments()
131 for (const auto* inst : available_pointers) { in ChooseFunctionCallArguments()
132 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dfuzzer_pass_merge_function_returns.cpp151 ->WhileEachInst([](opt::Instruction* inst) { in Apply()
152 return inst->opcode() == SpvOpLabel || in Apply()
153 inst->opcode() == SpvOpPhi || in Apply()
154 inst->opcode() == SpvOpBranch; in Apply()
245 for (auto& inst : *function->entry()) { in GetTypesToIdsAvailableAfterEntryBlock()
246 if (inst.HasResultId() && inst.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock()
247 if (!result.count(inst.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock()
248 result.emplace(inst.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock()
250 result[inst in GetTypesToIdsAvailableAfterEntryBlock()
[all...]
H A Dfuzzer_pass.cpp434 for (auto& inst : GetIRContext()->types_values()) { in FindOrCreateGlobalUndef()
435 if (inst.opcode() == SpvOpUndef && inst.type_id() == type_id) { in FindOrCreateGlobalUndef()
436 return inst.result_id(); in FindOrCreateGlobalUndef()
475 for (auto& inst : GetIRContext()->types_values()) { in GetAvailableBasicTypesAndPointers()
482 switch (inst.opcode()) { in GetAvailableBasicTypesAndPointers()
489 basic_types.insert(inst.result_id()); in GetAvailableBasicTypesAndPointers()
490 basic_type_to_pointers.insert({inst.result_id(), {}}); in GetAvailableBasicTypesAndPointers()
494 if (basic_types.count(inst.GetSingleWordInOperand(0))) { in GetAvailableBasicTypesAndPointers()
495 basic_types.insert(inst in GetAvailableBasicTypesAndPointers()
[all...]
H A Dfuzzer_pass_add_function_calls.cpp114 [this, caller_block](opt::IRContext* /*unused*/, opt::Instruction* inst) { in ChooseFunctionCallArguments()
115 if (inst->opcode() != SpvOpVariable || in ChooseFunctionCallArguments()
116 inst->opcode() != SpvOpFunctionParameter) { in ChooseFunctionCallArguments()
127 ->PointeeValueIsIrrelevant(inst->result_id()); in ChooseFunctionCallArguments()
131 for (const auto* inst : available_pointers) { in ChooseFunctionCallArguments()
132 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
/third_party/spirv-tools/source/fuzz/
H A Dfuzzer_pass_merge_function_returns.cpp151 ->WhileEachInst([](opt::Instruction* inst) { in Apply()
152 return inst->opcode() == spv::Op::OpLabel || in Apply()
153 inst->opcode() == spv::Op::OpPhi || in Apply()
154 inst->opcode() == spv::Op::OpBranch; in Apply()
245 for (auto& inst : *function->entry()) { in GetTypesToIdsAvailableAfterEntryBlock()
246 if (inst.HasResultId() && inst.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock()
247 if (!result.count(inst.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock()
248 result.emplace(inst.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock()
250 result[inst in GetTypesToIdsAvailableAfterEntryBlock()
[all...]
H A Dfuzzer_pass_add_function_calls.cpp114 [this, caller_block](opt::IRContext* /*unused*/, opt::Instruction* inst) { in ChooseFunctionCallArguments()
115 if (inst->opcode() != spv::Op::OpVariable || in ChooseFunctionCallArguments()
116 inst->opcode() != spv::Op::OpFunctionParameter) { in ChooseFunctionCallArguments()
127 ->PointeeValueIsIrrelevant(inst->result_id()); in ChooseFunctionCallArguments()
131 for (const auto* inst : available_pointers) { in ChooseFunctionCallArguments()
132 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atifs_to_nir.c180 prepare_argument(struct st_translate *t, const struct atifs_instruction *inst, in prepare_argument() argument
183 if (argId >= inst->ArgCount[alpha]) { in prepare_argument()
188 const struct atifragshader_src_register *srcReg = &inst->SrcReg[alpha][argId]; in prepare_argument()
225 const struct atifs_instruction *inst, in emit_arith_inst()
229 for (int i = 0; i < inst->ArgCount[alpha]; i++) in emit_arith_inst()
230 src[i] = prepare_argument(t, inst, i, alpha); in emit_arith_inst()
232 switch (inst->Opcode[alpha]) { in emit_arith_inst()
395 const struct atifs_instruction *inst) in compile_instruction()
400 unsigned dstreg = inst->DstReg[optype].Index - GL_REG_0_ATI; in compile_instruction()
402 if (!inst in compile_instruction()
224 emit_arith_inst(struct st_translate *t, const struct atifs_instruction *inst, bool alpha) emit_arith_inst() argument
394 compile_instruction(struct st_translate *t, const struct atifs_instruction *inst) compile_instruction() argument
478 struct atifs_instruction *inst = &atifs->Instructions[pass][i]; st_translate_atifs_program() local
576 struct atifs_instruction *inst = &atifs->Instructions[pass][i]; st_init_atifs_prog() local
[all...]
/third_party/libsnd/programs/
H A Dsndfile-info.c287 SF_INSTRUMENT inst ; in instrument_dump() local
300 got_inst = sf_command (file, SFC_GET_INSTRUMENT, &inst, sizeof (inst)) ; in instrument_dump()
309 printf (" Gain : %d\n", inst.gain) ; in instrument_dump()
310 printf (" Base note : %d\n", inst.basenote) ; in instrument_dump()
311 printf (" Velocity : %d - %d\n", (int) inst.velocity_lo, (int) inst.velocity_hi) ; in instrument_dump()
312 printf (" Key : %d - %d\n", (int) inst.key_lo, (int) inst.key_hi) ; in instrument_dump()
313 printf (" Loop points : %d\n", inst in instrument_dump()
[all...]
/third_party/pcre2/pcre2/src/sljit/
H A DsljitNativeMIPS_32.c49 sljit_ins *inst = (sljit_ins *)addr; in sljit_set_jump_addr() local
52 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 0); in sljit_set_jump_addr()
53 SLJIT_ASSERT((inst[0] & 0xffe00000) == LUI && (inst[1] & 0xfc000000) == ORI); in sljit_set_jump_addr()
54 inst[0] = (inst[0] & 0xffff0000) | ((new_target >> 16) & 0xffff); in sljit_set_jump_addr()
55 inst[1] = (inst[1] & 0xffff0000) | (new_target & 0xffff); in sljit_set_jump_addr()
56 SLJIT_UPDATE_WX_FLAGS(inst, ins in sljit_set_jump_addr()
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/lint/
H A Dlint_divergent_derivatives.cpp56 bool InstructionHasDerivative(const opt::Instruction& inst) { in InstructionHasDerivative() argument
79 inst.opcode()) != std::end(derivative_opcodes); in InstructionHasDerivative()
83 opt::Instruction* inst) { in Warn()
84 if (inst == nullptr) { in Warn()
90 inst->PrettyPrint(SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES), in Warn()
152 for (const opt::Instruction& inst : bb) { in CheckDivergentDerivatives()
153 if (InstructionHasDerivative(inst) && in CheckDivergentDerivatives()
82 Warn(opt::IRContext* context, opt::Instruction* inst) Warn() argument
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/lint/
H A Dlint_divergent_derivatives.cpp56 bool InstructionHasDerivative(const opt::Instruction& inst) { in InstructionHasDerivative() argument
79 inst.opcode()) != std::end(derivative_opcodes); in InstructionHasDerivative()
83 opt::Instruction* inst) { in Warn()
84 if (inst == nullptr) { in Warn()
90 inst->PrettyPrint(SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES), in Warn()
152 for (const opt::Instruction& inst : bb) { in CheckDivergentDerivatives()
153 if (InstructionHasDerivative(inst) && in CheckDivergentDerivatives()
82 Warn(opt::IRContext* context, opt::Instruction* inst) Warn() argument
/third_party/spirv-tools/source/lint/
H A Dlint_divergent_derivatives.cpp55 bool InstructionHasDerivative(const opt::Instruction& inst) { in InstructionHasDerivative() argument
78 inst.opcode()) != std::end(derivative_opcodes); in InstructionHasDerivative()
82 opt::Instruction* inst) { in Warn()
83 if (inst == nullptr) { in Warn()
89 inst->PrettyPrint(SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES), in Warn()
152 for (const opt::Instruction& inst : bb) { in CheckDivergentDerivatives()
153 if (InstructionHasDerivative(inst) && in CheckDivergentDerivatives()
81 Warn(opt::IRContext* context, opt::Instruction* inst) Warn() argument
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A Dpass_utils.cpp75 bool ContainsDebugOpcode(const char* inst) { in ContainsDebugOpcode() argument
77 [inst](const char* op) { in ContainsDebugOpcode()
78 return std::string(inst).find(op) != std::string::npos; in ContainsDebugOpcode()
98 insts, [](const char* inst) { return ContainsDebugOpcode(inst); });

Completed in 14 milliseconds

1...<<21222324252627282930>>...60