Home
last modified time | relevance | path

Searched refs:inst (Results 376 - 400 of 1453) sorted by relevance

1...<<11121314151617181920>>...59

/third_party/spirv-tools/source/fuzz/
H A Dfuzzer_pass_add_equation_instructions.cpp103 for (const auto* inst : in Apply()
106 GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in Apply()
107 assert(type && "|inst| has invalid type"); in Apply()
115 candidate_instructions.push_back(inst); in Apply()
305 for (auto& inst : instructions) { in GetIntegerInstructions()
306 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetIntegerInstructions()
309 result.push_back(inst); in GetIntegerInstructions()
319 for (auto& inst : instructions) { in GetFloatInstructions()
320 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetFloatInstructions()
323 result.push_back(inst); in GetFloatInstructions()
[all...]
/third_party/vulkan-loader/loader/
H A Dallocation.c105 void *loader_instance_heap_alloc(const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) { argument
106 return loader_alloc(inst ? &inst->alloc_callbacks : NULL, size, allocation_scope);
109 void *loader_instance_heap_calloc(const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) { argument
110 return loader_calloc(inst ? &inst->alloc_callbacks : NULL, size, allocation_scope);
113 void loader_instance_heap_free(const struct loader_instance *inst, void *pMemory) { argument
114 loader_free(inst ? &inst->alloc_callbacks : NULL, pMemory);
116 void *loader_instance_heap_realloc(const struct loader_instance *inst, voi argument
137 loader_alloc_with_instance_fallback(const VkAllocationCallbacks *pAllocator, const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) global() argument
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_ir_vec4.h368 * Make the execution of \p inst dependent on the evaluation of a possibly
373 vec4_instruction *inst) in set_predicate_inv()
375 inst->predicate = pred; in set_predicate_inv()
376 inst->predicate_inverse = inverse; in set_predicate_inv()
377 return inst; in set_predicate_inv()
381 * Make the execution of \p inst dependent on the evaluation of a predicate.
384 set_predicate(enum brw_predicate pred, vec4_instruction *inst) in set_predicate() argument
386 return set_predicate_inv(pred, false, inst); in set_predicate()
394 set_condmod(enum brw_conditional_mod mod, vec4_instruction *inst) in set_condmod() argument
396 inst in set_condmod()
372 set_predicate_inv(enum brw_predicate pred, bool inverse, vec4_instruction *inst) set_predicate_inv() argument
405 set_saturate(bool saturate, vec4_instruction *inst) set_saturate() argument
418 regs_written(const vec4_instruction *inst) regs_written() argument
432 regs_read(const vec4_instruction *inst, unsigned i) regs_read() argument
441 get_exec_type(const vec4_instruction *inst) get_exec_type() argument
468 get_exec_type_size(const vec4_instruction *inst) get_exec_type_size() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_variable.c139 struct rc_instruction * inst; in rc_variable_compute_live_intervals() local
176 for (inst = var->Inst; inst != var->Readers[i].Inst; in rc_variable_compute_live_intervals()
177 inst = inst->Next) { in rc_variable_compute_live_intervals()
178 rc_opcode op = rc_get_flow_control_inst(inst); in rc_variable_compute_live_intervals()
181 rc_match_endloop(inst); in rc_variable_compute_live_intervals()
187 rc_match_bgnloop(inst); in rc_variable_compute_live_intervals()
296 struct rc_instruction * inst, in get_variable_pair_helper()
308 rc_get_readers_sub(c, inst, sub_ins in get_variable_pair_helper()
293 get_variable_pair_helper( struct rc_list ** variable_list, struct radeon_compiler * c, struct rc_instruction * inst, struct rc_pair_sub_instruction * sub_inst) get_variable_pair_helper() argument
363 struct rc_instruction * inst; rc_get_variables() local
[all...]
H A Dradeon_program_alu.h35 struct rc_instruction * inst,
40 struct rc_instruction * inst,
45 struct rc_instruction * inst,
50 struct rc_instruction * inst,
55 struct rc_instruction *inst,
60 struct rc_instruction * inst,
65 struct rc_instruction * inst,
72 struct rc_instruction *inst, void *data);
H A Dradeon_dataflow.h50 typedef void (*rc_read_write_chan_fn)(void * userdata, struct rc_instruction * inst,
52 void rc_for_all_reads_chan(struct rc_instruction * inst, rc_read_write_chan_fn cb, void * userdata);
53 void rc_for_all_writes_chan(struct rc_instruction * inst, rc_read_write_chan_fn cb, void * userdata);
55 typedef void (*rc_read_write_mask_fn)(void * userdata, struct rc_instruction * inst,
57 void rc_for_all_reads_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata);
58 void rc_for_all_writes_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata);
60 typedef void (*rc_read_src_fn)(void * userdata, struct rc_instruction * inst,
62 void rc_for_all_reads_src(struct rc_instruction * inst, rc_read_src_fn cb,
66 struct rc_instruction * inst, struct rc_pair_instruction_arg * arg,
68 void rc_pair_for_all_reads_arg(struct rc_instruction * inst,
[all...]
H A Dradeon_remove_constants.c37 static void remap_regs(void * userdata, struct rc_instruction * inst, in remap_regs() argument
47 static void mark_used(void * userdata, struct rc_instruction * inst, in mark_used() argument
86 for (struct rc_instruction *inst = c->Program.Instructions.Next; in rc_remove_unused_constants()
87 inst != &c->Program.Instructions; inst = inst->Next) { in rc_remove_unused_constants()
88 rc_for_all_reads_src(inst, mark_used, &d); in rc_remove_unused_constants()
128 for (struct rc_instruction *inst = c->Program.Instructions.Next; in rc_remove_unused_constants()
129 inst != &c->Program.Instructions; inst in rc_remove_unused_constants()
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/val/
H A Dvalidate_adjacency.cpp47 const auto& inst = instructions[i]; in ValidateAdjacency() local
48 switch (inst.opcode()) { in ValidateAdjacency()
64 if (!spvExtInstIsDebugInfo(inst.ext_inst_type()) || in ValidateAdjacency()
65 inst.ext_inst_type() == in ValidateAdjacency()
72 return _.diag(SPV_ERROR_INVALID_DATA, &inst) in ValidateAdjacency()
89 return _.diag(SPV_ERROR_INVALID_DATA, &inst) in ValidateAdjacency()
105 return _.diag(SPV_ERROR_INVALID_DATA, &inst) in ValidateAdjacency()
114 if (inst.GetOperandAs<SpvStorageClass>(2) == SpvStorageClassFunction && in ValidateAdjacency()
116 return _.diag(SPV_ERROR_INVALID_DATA, &inst) in ValidateAdjacency()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A Dvalidate_adjacency.cpp47 const auto& inst = instructions[i]; in ValidateAdjacency() local
48 switch (inst.opcode()) { in ValidateAdjacency()
64 if (!spvExtInstIsDebugInfo(inst.ext_inst_type()) || in ValidateAdjacency()
65 inst.ext_inst_type() == in ValidateAdjacency()
72 return _.diag(SPV_ERROR_INVALID_DATA, &inst) in ValidateAdjacency()
89 return _.diag(SPV_ERROR_INVALID_DATA, &inst) in ValidateAdjacency()
105 return _.diag(SPV_ERROR_INVALID_DATA, &inst) in ValidateAdjacency()
114 if (inst.GetOperandAs<SpvStorageClass>(2) == SpvStorageClassFunction && in ValidateAdjacency()
116 return _.diag(SPV_ERROR_INVALID_DATA, &inst) in ValidateAdjacency()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Ddataflow.cpp23 bool DataFlowAnalysis::Enqueue(Instruction* inst) { in Enqueue() argument
24 bool& is_enqueued = on_worklist_[inst]; in Enqueue()
27 worklist_.push(inst); in Enqueue()
66 for (Instruction& inst : *bb) { in InitializeWorklist()
67 Enqueue(&inst); in InitializeWorklist()
75 void ForwardDataFlowAnalysis::EnqueueUsers(Instruction* inst) { in EnqueueUsers() argument
77 inst, [this](Instruction* user) { Enqueue(user); }); in EnqueueUsers()
80 void ForwardDataFlowAnalysis::EnqueueBlockSuccessors(Instruction* inst) { in EnqueueBlockSuccessors() argument
81 if (inst->opcode() != SpvOpLabel) return; in EnqueueBlockSuccessors()
84 ->block(inst in EnqueueBlockSuccessors()
[all...]
H A Dfold_spec_constant_op_and_composite_pass.cpp57 Instruction* inst = &*inst_iter; in Process() local
65 if (context()->get_constant_mgr()->GetType(inst) && in Process()
66 !context()->get_constant_mgr()->GetType(inst)->decoration_empty()) in Process()
68 switch (SpvOp opcode = inst->opcode()) { in Process()
84 context()->get_constant_mgr()->GetConstantFromInst(inst)) { in Process()
88 inst->SetOpcode(SpvOp::SpvOpConstantComposite); in Process()
91 context()->get_constant_mgr()->MapConstantToInst(const_value, inst); in Process()
114 Instruction* inst = &**pos; in ProcessOpSpecConstantOp() local
116 assert(inst->GetInOperand(0).type == in ProcessOpSpecConstantOp()
121 switch (static_cast<SpvOp>(inst in ProcessOpSpecConstantOp()
219 Instruction* inst = &**pos; DoVectorShuffle() local
376 const Instruction* inst = &**pos; DoComponentWiseOperation() local
[all...]
H A Dmodule.cpp42 for (auto& inst : types_values_) { in GetTypes()
43 if (IsTypeInst(inst.opcode())) type_insts.push_back(&inst); in GetTypes()
50 for (auto& inst : types_values_) { in GetTypes()
51 if (IsTypeInst(inst.opcode())) type_insts.push_back(&inst); in GetTypes()
58 for (auto& inst : types_values_) { in GetConstants()
59 if (IsConstantInst(inst.opcode())) const_insts.push_back(&inst); in GetConstants()
66 for (auto& inst in GetConstants()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Ddataflow.cpp23 bool DataFlowAnalysis::Enqueue(Instruction* inst) { in Enqueue() argument
24 bool& is_enqueued = on_worklist_[inst]; in Enqueue()
27 worklist_.push(inst); in Enqueue()
66 for (Instruction& inst : *bb) { in InitializeWorklist()
67 Enqueue(&inst); in InitializeWorklist()
75 void ForwardDataFlowAnalysis::EnqueueUsers(Instruction* inst) { in EnqueueUsers() argument
77 inst, [this](Instruction* user) { Enqueue(user); }); in EnqueueUsers()
80 void ForwardDataFlowAnalysis::EnqueueBlockSuccessors(Instruction* inst) { in EnqueueBlockSuccessors() argument
81 if (inst->opcode() != SpvOpLabel) return; in EnqueueBlockSuccessors()
84 ->block(inst in EnqueueBlockSuccessors()
[all...]
H A Dfold_spec_constant_op_and_composite_pass.cpp57 Instruction* inst = &*inst_iter; in Process() local
65 if (context()->get_constant_mgr()->GetType(inst) && in Process()
66 !context()->get_constant_mgr()->GetType(inst)->decoration_empty()) in Process()
68 switch (SpvOp opcode = inst->opcode()) { in Process()
84 context()->get_constant_mgr()->GetConstantFromInst(inst)) { in Process()
88 inst->SetOpcode(SpvOp::SpvOpConstantComposite); in Process()
91 context()->get_constant_mgr()->MapConstantToInst(const_value, inst); in Process()
114 Instruction* inst = &**pos; in ProcessOpSpecConstantOp() local
116 assert(inst->GetInOperand(0).type == in ProcessOpSpecConstantOp()
121 switch (static_cast<SpvOp>(inst in ProcessOpSpecConstantOp()
219 Instruction* inst = &**pos; DoVectorShuffle() local
376 const Instruction* inst = &**pos; DoComponentWiseOperation() local
[all...]
H A Dmodule.cpp42 for (auto& inst : types_values_) { in GetTypes()
43 if (IsTypeInst(inst.opcode())) type_insts.push_back(&inst); in GetTypes()
50 for (auto& inst : types_values_) { in GetTypes()
51 if (IsTypeInst(inst.opcode())) type_insts.push_back(&inst); in GetTypes()
58 for (auto& inst : types_values_) { in GetConstants()
59 if (IsConstantInst(inst.opcode())) const_insts.push_back(&inst); in GetConstants()
66 for (auto& inst in GetConstants()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
H A Dtest_sync_atomic.cpp22 #define X(inst, type) \
23 type test_##inst(bool fetch_first, volatile type *ptr, type a) { \
25 return __sync_fetch_and_##inst(ptr, a); \
27 return __sync_##inst##_and_fetch(ptr, a); \
30 type test_alloca_##inst(bool fetch, volatile type *ptr, type a) { \
35 buf[i] = __sync_fetch_and_##inst(ptr, a); \
37 buf[i] = __sync_##inst##_and_fetch(ptr, a); \
46 type test_const_##inst(bool fetch, volatile type *ptr, type ign) { \
48 return __sync_fetch_and_##inst(ptr, 42); \
51 return __sync_##inst##_and_fetc
[all...]
/third_party/spirv-tools/source/opt/
H A Ddataflow.cpp22 bool DataFlowAnalysis::Enqueue(Instruction* inst) { in Enqueue() argument
23 bool& is_enqueued = on_worklist_[inst]; in Enqueue()
26 worklist_.push(inst); in Enqueue()
65 for (Instruction& inst : *bb) { in InitializeWorklist()
66 Enqueue(&inst); in InitializeWorklist()
74 void ForwardDataFlowAnalysis::EnqueueUsers(Instruction* inst) { in EnqueueUsers() argument
76 inst, [this](Instruction* user) { Enqueue(user); }); in EnqueueUsers()
79 void ForwardDataFlowAnalysis::EnqueueBlockSuccessors(Instruction* inst) { in EnqueueBlockSuccessors() argument
80 if (inst->opcode() != spv::Op::OpLabel) return; in EnqueueBlockSuccessors()
83 ->block(inst in EnqueueBlockSuccessors()
[all...]
H A Dir_context.cpp166 Instruction* IRContext::KillInst(Instruction* inst) { in KillInst() argument
167 if (!inst) { in KillInst()
171 KillNamesAndDecorates(inst); in KillInst()
173 KillOperandFromDebugInstructions(inst); in KillInst()
177 def_use_mgr->ClearInst(inst); in KillInst()
178 for (auto& l_inst : inst->dbg_line_insts()) def_use_mgr->ClearInst(&l_inst); in KillInst()
181 instr_to_block_.erase(inst); in KillInst()
184 if (inst->IsDecoration()) { in KillInst()
185 decoration_mgr_->RemoveDecoration(inst); in KillInst()
189 get_debug_info_mgr()->ClearDebugScopeAndInlinedAtUses(inst); in KillInst()
245 CollectNonSemanticTree( Instruction* inst, std::unordered_set<Instruction*>* to_kill) CollectNonSemanticTree() argument
427 ForgetUses(Instruction* inst) ForgetUses() argument
442 AnalyzeUses(Instruction* inst) AnalyzeUses() argument
473 KillNamesAndDecorates(Instruction* inst) KillNamesAndDecorates() argument
479 KillOperandFromDebugInstructions(Instruction* inst) KillOperandFromDebugInstructions() argument
784 RemoveFromIdToName(const Instruction* inst) RemoveFromIdToName() argument
1002 EmitErrorMessage(std::string message, Instruction* inst) EmitErrorMessage() argument
[all...]
H A Dfold_spec_constant_op_and_composite_pass.cpp55 Instruction* inst = &*inst_iter; in Process() local
63 if (const_mgr->GetType(inst) && in Process()
64 !const_mgr->GetType(inst)->decoration_empty()) in Process()
66 switch (spv::Op opcode = inst->opcode()) { in Process()
81 if (auto const_value = const_mgr->GetConstantFromInst(inst)) { in Process()
85 inst->SetOpcode(spv::Op::OpConstantComposite); in Process()
88 const_mgr->MapConstantToInst(const_value, inst); in Process()
111 Instruction* inst = &**pos; in ProcessOpSpecConstantOp() local
113 assert(inst->GetInOperand(0).type == in ProcessOpSpecConstantOp()
118 switch (static_cast<spv::Op>(inst in ProcessOpSpecConstantOp()
287 const Instruction* inst = &**pos; DoComponentWiseOperation() local
[all...]
H A Dmodule.cpp42 for (auto& inst : types_values_) { in GetTypes()
43 if (IsTypeInst(inst.opcode())) type_insts.push_back(&inst); in GetTypes()
50 for (auto& inst : types_values_) { in GetTypes()
51 if (IsTypeInst(inst.opcode())) type_insts.push_back(&inst); in GetTypes()
58 for (auto& inst : types_values_) { in GetConstants()
59 if (IsConstantInst(inst.opcode())) const_insts.push_back(&inst); in GetConstants()
66 for (auto& inst in GetConstants()
[all...]
/third_party/skia/third_party/externals/tint/src/reader/spirv/
H A Dparser_impl.cc76 for (const auto& inst : bb) { in Visit()
77 if (inst.opcode() != SpvOpFunctionCall) { in Visit()
80 const auto* callee = id_to_func_[inst.GetSingleWordInOperand(0)]; in Visit()
392 for (const auto* inst : decorations) { in GetDecorationsFor()
393 if (inst->opcode() != SpvOpDecorate) { in GetDecorationsFor()
399 inst->ToBinaryWithoutAttachedDebugInsts(&inst_as_words); in GetDecorationsFor()
411 for (const auto* inst : decorations) { in GetDecorationsForMember()
412 if ((inst->opcode() != SpvOpMemberDecorate) || in GetDecorationsForMember()
413 (inst->GetSingleWordInOperand(1) != member_index)) { in GetDecorationsForMember()
418 inst in GetDecorationsForMember()
994 const auto* inst = def_use_mgr_->GetDef(type_id); ConvertType() local
1222 const auto* inst = def_use_mgr_->GetDef(type_id); ConvertType() local
1844 const auto* inst = def_use_mgr_->GetDef(id); CanMakeConstantExpression() local
1890 const auto* inst = def_use_mgr_->GetDef(id); MakeConstantExpression() local
2077 RectifyOperandSignedness( const spvtools::opt::Instruction& inst, TypedExpression&& expr) RectifyOperandSignedness() argument
2124 RectifySecondOperandSignedness( const spvtools::opt::Instruction& inst, const Type* first_operand_type, TypedExpression&& second_operand_expr) RectifySecondOperandSignedness() argument
2140 ForcedResultType(const spvtools::opt::Instruction& inst, const Type* first_operand_type) ForcedResultType() argument
2187 RectifyForcedResultType( TypedExpression expr, const spvtools::opt::Instruction& inst, const Type* first_operand_type) RectifyForcedResultType() argument
2284 const auto* inst = def_use_mgr_->GetDef(id); GetMemoryObjectDeclarationForHandle() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/parser/
H A Dparser.go426 inst := &Instruction{}
430 inst.Opcode = p.opcode(i)
431 inst.Tokens = []*Token{p.tok(i)}
432 p.mappings[p.tok(i)] = inst
435 inst.Result, inst.Opcode = p.pident(i), p.opcode(i+2)
436 if inst.Result == nil || p.operator(i+1) != "=" {
440 inst.Tokens = []*Token{p.tok(i), p.tok(i + 1), p.tok(i + 2)}
441 p.mappings[p.tok(i+2)] = inst
446 expectsResult := len(inst
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/
H A Dbinary.cpp107 // expected_operands parameter, and the scalar members of the inst parameter.
111 spv_result_t parseOperand(size_t inst_offset, spv_parsed_instruction_t* inst,
129 const spv_parsed_instruction_t* inst);
288 spv_parsed_instruction_t inst = {};
298 // After a successful parse of the instruction, the inst.operands member
305 spvOpcodeSplit(first_word, &inst_word_count, &inst.opcode);
311 if (grammar_.lookupOpcode(static_cast<SpvOp>(inst.opcode), &opcode_desc))
312 return diagnostic() << "Invalid opcode: " << inst.opcode;
346 parseOperand(inst_offset, &inst, type, &_.endian_converted_words,
378 recordNumberType(inst_offset, &inst);
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/
H A Dbinary.cpp107 // expected_operands parameter, and the scalar members of the inst parameter.
111 spv_result_t parseOperand(size_t inst_offset, spv_parsed_instruction_t* inst,
129 const spv_parsed_instruction_t* inst);
288 spv_parsed_instruction_t inst = {};
298 // After a successful parse of the instruction, the inst.operands member
305 spvOpcodeSplit(first_word, &inst_word_count, &inst.opcode);
311 if (grammar_.lookupOpcode(static_cast<SpvOp>(inst.opcode), &opcode_desc))
312 return diagnostic() << "Invalid opcode: " << inst.opcode;
346 parseOperand(inst_offset, &inst, type, &_.endian_converted_words,
378 recordNumberType(inst_offset, &inst);
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/parser/
H A Dparser.go426 inst := &Instruction{}
430 inst.Opcode = p.opcode(i)
431 inst.Tokens = []*Token{p.tok(i)}
432 p.mappings[p.tok(i)] = inst
435 inst.Result, inst.Opcode = p.pident(i), p.opcode(i+2)
436 if inst.Result == nil || p.operator(i+1) != "=" {
440 inst.Tokens = []*Token{p.tok(i), p.tok(i + 1), p.tok(i + 2)}
441 p.mappings[p.tok(i+2)] = inst
446 expectsResult := len(inst
[all...]

Completed in 14 milliseconds

1...<<11121314151617181920>>...59