Home
last modified time | relevance | path

Searched refs:new_operands (Results 1 – 25 of 45) sorted by relevance

12

/third_party/spirv-tools/source/opt/
Deliminate_dead_members_pass.cpp345 Instruction::OperandList new_operands; in UpdateOpTypeStruct() local
347 new_operands.emplace_back(inst->GetInOperand(idx)); in UpdateOpTypeStruct()
350 inst->SetInOperands(std::move(new_operands)); in UpdateOpTypeStruct()
386 Instruction::OperandList new_operands; in UpdateOpGroupMemberDecorate() local
387 new_operands.emplace_back(inst->GetInOperand(0)); in UpdateOpGroupMemberDecorate()
398 new_operands.emplace_back(inst->GetOperand(i)); in UpdateOpGroupMemberDecorate()
400 new_operands.emplace_back( in UpdateOpGroupMemberDecorate()
404 new_operands.emplace_back(inst->GetOperand(i + 1)); in UpdateOpGroupMemberDecorate()
412 if (new_operands.size() == 1) { in UpdateOpGroupMemberDecorate()
417 inst->SetInOperands(std::move(new_operands)); in UpdateOpGroupMemberDecorate()
[all …]
Damd_ext_to_khr.cpp82 Instruction::OperandList new_operands; in ReplaceTrinaryMinMax() local
83 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl405_ext_inst_id}}); in ReplaceTrinaryMinMax()
84 new_operands.push_back({SPV_OPERAND_TYPE_EXTENSION_INSTRUCTION_NUMBER, in ReplaceTrinaryMinMax()
86 new_operands.push_back({SPV_OPERAND_TYPE_ID, {temp->result_id()}}); in ReplaceTrinaryMinMax()
87 new_operands.push_back({SPV_OPERAND_TYPE_ID, {op3}}); in ReplaceTrinaryMinMax()
89 inst->SetInOperands(std::move(new_operands)); in ReplaceTrinaryMinMax()
123 Instruction::OperandList new_operands; in ReplaceTrinaryMid() local
124 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl405_ext_inst_id}}); in ReplaceTrinaryMid()
125 new_operands.push_back({SPV_OPERAND_TYPE_EXTENSION_INSTRUCTION_NUMBER, in ReplaceTrinaryMid()
127 new_operands.push_back({SPV_OPERAND_TYPE_ID, {op1}}); in ReplaceTrinaryMid()
[all …]
Dinterp_fixup_pass.cpp68 Instruction::OperandList new_operands; in ReplaceInternalInterpolate() local
69 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl450_ext_inst_id}}); in ReplaceInternalInterpolate()
70 new_operands.push_back( in ReplaceInternalInterpolate()
72 new_operands.push_back({SPV_OPERAND_TYPE_ID, {ptr_id}}); in ReplaceInternalInterpolate()
73 if (op2_id != 0) new_operands.push_back({SPV_OPERAND_TYPE_ID, {op2_id}}); in ReplaceInternalInterpolate()
75 inst->SetInOperands(std::move(new_operands)); in ReplaceInternalInterpolate()
Dcombine_access_chains.cpp122 std::vector<Operand>* new_operands) { in CombineIndices() argument
165 new_operands->push_back({SPV_OPERAND_TYPE_ID, {new_value_id}}); in CombineIndices()
171 std::vector<Operand>* new_operands) { in CreateNewInputOperands() argument
174 new_operands->push_back(ptr_input->GetInOperand(i)); in CreateNewInputOperands()
181 if (!CombineIndices(ptr_input, inst, new_operands)) return false; in CreateNewInputOperands()
185 new_operands->push_back( in CreateNewInputOperands()
192 new_operands->push_back(inst->GetInOperand(i)); in CreateNewInputOperands()
247 std::vector<Operand> new_operands; in CombineAccessChain() local
248 if (!CreateNewInputOperands(ptr_input, inst, &new_operands)) return false; in CombineAccessChain()
252 inst->SetInOperands(std::move(new_operands)); in CombineAccessChain()
Dprivate_to_local_pass.cpp72 std::vector<Operand> new_operands; in Process() local
77 new_operands.push_back(entry.GetInOperand(i)); in Process()
80 if (new_operands.size() != entry.NumInOperands()) { in Process()
81 entry.SetInOperands(std::move(new_operands)); in Process()
Dlocal_access_chain_convert_pass.cpp106 Instruction::OperandList new_operands; in ReplaceAccessChainLoad() local
109 new_operands.emplace_back(original_load->GetOperand(0)); in ReplaceAccessChainLoad()
110 new_operands.emplace_back(original_load->GetOperand(1)); in ReplaceAccessChainLoad()
112 new_operands.emplace_back( in ReplaceAccessChainLoad()
114 AppendConstantOperands(address_inst, &new_operands); in ReplaceAccessChainLoad()
116 original_load->ReplaceOperands(new_operands); in ReplaceAccessChainLoad()
Ddesc_sroa.cpp187 Instruction::OperandList new_operands; in ReplaceAccessChain() local
190 new_operands.emplace_back(use->GetOperand(0)); in ReplaceAccessChain()
191 new_operands.emplace_back(use->GetOperand(1)); in ReplaceAccessChain()
194 new_operands.push_back({SPV_OPERAND_TYPE_ID, {replacement_var}}); in ReplaceAccessChain()
199 new_operands.emplace_back(use->GetOperand(i)); in ReplaceAccessChain()
202 use->ReplaceOperands(new_operands); in ReplaceAccessChain()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Deliminate_dead_members_pass.cpp354 Instruction::OperandList new_operands; in UpdateOpTypeStruct() local
356 new_operands.emplace_back(inst->GetInOperand(idx)); in UpdateOpTypeStruct()
359 inst->SetInOperands(std::move(new_operands)); in UpdateOpTypeStruct()
395 Instruction::OperandList new_operands; in UpdateOpGroupMemberDecorate() local
396 new_operands.emplace_back(inst->GetInOperand(0)); in UpdateOpGroupMemberDecorate()
407 new_operands.emplace_back(inst->GetOperand(i)); in UpdateOpGroupMemberDecorate()
409 new_operands.emplace_back( in UpdateOpGroupMemberDecorate()
413 new_operands.emplace_back(inst->GetOperand(i + 1)); in UpdateOpGroupMemberDecorate()
421 if (new_operands.size() == 1) { in UpdateOpGroupMemberDecorate()
426 inst->SetInOperands(std::move(new_operands)); in UpdateOpGroupMemberDecorate()
[all …]
Damd_ext_to_khr.cpp82 Instruction::OperandList new_operands; in ReplaceTrinaryMinMax() local
83 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl405_ext_inst_id}}); in ReplaceTrinaryMinMax()
84 new_operands.push_back({SPV_OPERAND_TYPE_EXTENSION_INSTRUCTION_NUMBER, in ReplaceTrinaryMinMax()
86 new_operands.push_back({SPV_OPERAND_TYPE_ID, {temp->result_id()}}); in ReplaceTrinaryMinMax()
87 new_operands.push_back({SPV_OPERAND_TYPE_ID, {op3}}); in ReplaceTrinaryMinMax()
89 inst->SetInOperands(std::move(new_operands)); in ReplaceTrinaryMinMax()
123 Instruction::OperandList new_operands; in ReplaceTrinaryMid() local
124 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl405_ext_inst_id}}); in ReplaceTrinaryMid()
125 new_operands.push_back({SPV_OPERAND_TYPE_EXTENSION_INSTRUCTION_NUMBER, in ReplaceTrinaryMid()
127 new_operands.push_back({SPV_OPERAND_TYPE_ID, {op1}}); in ReplaceTrinaryMid()
[all …]
Dinterp_fixup_pass.cpp68 Instruction::OperandList new_operands; in ReplaceInternalInterpolate() local
69 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl450_ext_inst_id}}); in ReplaceInternalInterpolate()
70 new_operands.push_back( in ReplaceInternalInterpolate()
72 new_operands.push_back({SPV_OPERAND_TYPE_ID, {ptr_id}}); in ReplaceInternalInterpolate()
73 if (op2_id != 0) new_operands.push_back({SPV_OPERAND_TYPE_ID, {op2_id}}); in ReplaceInternalInterpolate()
75 inst->SetInOperands(std::move(new_operands)); in ReplaceInternalInterpolate()
Dcombine_access_chains.cpp126 std::vector<Operand>* new_operands) { in CombineIndices() argument
169 new_operands->push_back({SPV_OPERAND_TYPE_ID, {new_value_id}}); in CombineIndices()
175 std::vector<Operand>* new_operands) { in CreateNewInputOperands() argument
178 new_operands->push_back(ptr_input->GetInOperand(i)); in CreateNewInputOperands()
185 if (!CombineIndices(ptr_input, inst, new_operands)) return false; in CreateNewInputOperands()
189 new_operands->push_back( in CreateNewInputOperands()
196 new_operands->push_back(inst->GetInOperand(i)); in CreateNewInputOperands()
251 std::vector<Operand> new_operands; in CombineAccessChain() local
252 if (!CreateNewInputOperands(ptr_input, inst, &new_operands)) return false; in CombineAccessChain()
256 inst->SetInOperands(std::move(new_operands)); in CombineAccessChain()
Dprivate_to_local_pass.cpp72 std::vector<Operand> new_operands; in Process() local
77 new_operands.push_back(entry.GetInOperand(i)); in Process()
80 if (new_operands.size() != entry.NumInOperands()) { in Process()
81 entry.SetInOperands(std::move(new_operands)); in Process()
Dlocal_access_chain_convert_pass.cpp106 Instruction::OperandList new_operands; in ReplaceAccessChainLoad() local
109 new_operands.emplace_back(original_load->GetOperand(0)); in ReplaceAccessChainLoad()
110 new_operands.emplace_back(original_load->GetOperand(1)); in ReplaceAccessChainLoad()
112 new_operands.emplace_back( in ReplaceAccessChainLoad()
114 AppendConstantOperands(address_inst, &new_operands); in ReplaceAccessChainLoad()
116 original_load->ReplaceOperands(new_operands); in ReplaceAccessChainLoad()
Ddesc_sroa.cpp129 Instruction::OperandList new_operands; in ReplaceAccessChain() local
132 new_operands.emplace_back(use->GetOperand(0)); in ReplaceAccessChain()
133 new_operands.emplace_back(use->GetOperand(1)); in ReplaceAccessChain()
136 new_operands.push_back({SPV_OPERAND_TYPE_ID, {replacement_var}}); in ReplaceAccessChain()
141 new_operands.emplace_back(use->GetOperand(i)); in ReplaceAccessChain()
144 use->ReplaceOperands(new_operands); in ReplaceAccessChain()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Deliminate_dead_members_pass.cpp354 Instruction::OperandList new_operands; in UpdateOpTypeStruct() local
356 new_operands.emplace_back(inst->GetInOperand(idx)); in UpdateOpTypeStruct()
359 inst->SetInOperands(std::move(new_operands)); in UpdateOpTypeStruct()
395 Instruction::OperandList new_operands; in UpdateOpGroupMemberDecorate() local
396 new_operands.emplace_back(inst->GetInOperand(0)); in UpdateOpGroupMemberDecorate()
407 new_operands.emplace_back(inst->GetOperand(i)); in UpdateOpGroupMemberDecorate()
409 new_operands.emplace_back( in UpdateOpGroupMemberDecorate()
413 new_operands.emplace_back(inst->GetOperand(i + 1)); in UpdateOpGroupMemberDecorate()
421 if (new_operands.size() == 1) { in UpdateOpGroupMemberDecorate()
426 inst->SetInOperands(std::move(new_operands)); in UpdateOpGroupMemberDecorate()
[all …]
Damd_ext_to_khr.cpp82 Instruction::OperandList new_operands; in ReplaceTrinaryMinMax() local
83 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl405_ext_inst_id}}); in ReplaceTrinaryMinMax()
84 new_operands.push_back({SPV_OPERAND_TYPE_EXTENSION_INSTRUCTION_NUMBER, in ReplaceTrinaryMinMax()
86 new_operands.push_back({SPV_OPERAND_TYPE_ID, {temp->result_id()}}); in ReplaceTrinaryMinMax()
87 new_operands.push_back({SPV_OPERAND_TYPE_ID, {op3}}); in ReplaceTrinaryMinMax()
89 inst->SetInOperands(std::move(new_operands)); in ReplaceTrinaryMinMax()
123 Instruction::OperandList new_operands; in ReplaceTrinaryMid() local
124 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl405_ext_inst_id}}); in ReplaceTrinaryMid()
125 new_operands.push_back({SPV_OPERAND_TYPE_EXTENSION_INSTRUCTION_NUMBER, in ReplaceTrinaryMid()
127 new_operands.push_back({SPV_OPERAND_TYPE_ID, {op1}}); in ReplaceTrinaryMid()
[all …]
Dinterp_fixup_pass.cpp68 Instruction::OperandList new_operands; in ReplaceInternalInterpolate() local
69 new_operands.push_back({SPV_OPERAND_TYPE_ID, {glsl450_ext_inst_id}}); in ReplaceInternalInterpolate()
70 new_operands.push_back( in ReplaceInternalInterpolate()
72 new_operands.push_back({SPV_OPERAND_TYPE_ID, {ptr_id}}); in ReplaceInternalInterpolate()
73 if (op2_id != 0) new_operands.push_back({SPV_OPERAND_TYPE_ID, {op2_id}}); in ReplaceInternalInterpolate()
75 inst->SetInOperands(std::move(new_operands)); in ReplaceInternalInterpolate()
Dcombine_access_chains.cpp126 std::vector<Operand>* new_operands) { in CombineIndices() argument
169 new_operands->push_back({SPV_OPERAND_TYPE_ID, {new_value_id}}); in CombineIndices()
175 std::vector<Operand>* new_operands) { in CreateNewInputOperands() argument
178 new_operands->push_back(ptr_input->GetInOperand(i)); in CreateNewInputOperands()
185 if (!CombineIndices(ptr_input, inst, new_operands)) return false; in CreateNewInputOperands()
189 new_operands->push_back( in CreateNewInputOperands()
196 new_operands->push_back(inst->GetInOperand(i)); in CreateNewInputOperands()
251 std::vector<Operand> new_operands; in CombineAccessChain() local
252 if (!CreateNewInputOperands(ptr_input, inst, &new_operands)) return false; in CombineAccessChain()
256 inst->SetInOperands(std::move(new_operands)); in CombineAccessChain()
Dprivate_to_local_pass.cpp72 std::vector<Operand> new_operands; in Process() local
77 new_operands.push_back(entry.GetInOperand(i)); in Process()
80 if (new_operands.size() != entry.NumInOperands()) { in Process()
81 entry.SetInOperands(std::move(new_operands)); in Process()
Dlocal_access_chain_convert_pass.cpp106 Instruction::OperandList new_operands; in ReplaceAccessChainLoad() local
109 new_operands.emplace_back(original_load->GetOperand(0)); in ReplaceAccessChainLoad()
110 new_operands.emplace_back(original_load->GetOperand(1)); in ReplaceAccessChainLoad()
112 new_operands.emplace_back( in ReplaceAccessChainLoad()
114 AppendConstantOperands(address_inst, &new_operands); in ReplaceAccessChainLoad()
116 original_load->ReplaceOperands(new_operands); in ReplaceAccessChainLoad()
Ddesc_sroa.cpp129 Instruction::OperandList new_operands; in ReplaceAccessChain() local
132 new_operands.emplace_back(use->GetOperand(0)); in ReplaceAccessChain()
133 new_operands.emplace_back(use->GetOperand(1)); in ReplaceAccessChain()
136 new_operands.push_back({SPV_OPERAND_TYPE_ID, {replacement_var}}); in ReplaceAccessChain()
141 new_operands.emplace_back(use->GetOperand(i)); in ReplaceAccessChain()
144 use->ReplaceOperands(new_operands); in ReplaceAccessChain()
Dcombine_access_chains.h63 std::vector<Operand>* new_operands);
68 std::vector<Operand>* new_operands);
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dtransformation_set_loop_control.cpp119 opt::Instruction::OperandList new_operands; in Apply() local
121 new_operands.push_back(merge_inst->GetInOperand(0)); in Apply()
122 new_operands.push_back(merge_inst->GetInOperand(1)); in Apply()
124 new_operands.push_back( in Apply()
144 new_operands.push_back( in Apply()
158 new_operands.push_back( in Apply()
164 new_operands.push_back( in Apply()
170 merge_inst->SetInOperands(std::move(new_operands)); in Apply()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_set_loop_control.cpp119 opt::Instruction::OperandList new_operands; in Apply() local
121 new_operands.push_back(merge_inst->GetInOperand(0)); in Apply()
122 new_operands.push_back(merge_inst->GetInOperand(1)); in Apply()
124 new_operands.push_back( in Apply()
144 new_operands.push_back( in Apply()
158 new_operands.push_back( in Apply()
164 new_operands.push_back( in Apply()
170 merge_inst->SetInOperands(std::move(new_operands)); in Apply()
/third_party/spirv-tools/source/fuzz/
Dtransformation_set_loop_control.cpp119 opt::Instruction::OperandList new_operands; in Apply() local
121 new_operands.push_back(merge_inst->GetInOperand(0)); in Apply()
122 new_operands.push_back(merge_inst->GetInOperand(1)); in Apply()
124 new_operands.push_back( in Apply()
144 new_operands.push_back( in Apply()
158 new_operands.push_back( in Apply()
164 new_operands.push_back( in Apply()
170 merge_inst->SetInOperands(std::move(new_operands)); in Apply()

12