Home
last modified time | relevance | path

Searched refs:ir_builder (Results 1 – 25 of 60) sorted by relevance

123

/third_party/spirv-tools/source/opt/
Damd_ext_to_khr.cpp71 InstructionBuilder ir_builder( in ReplaceTrinaryMinMax() local
79 Instruction* temp = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMinMax()
108 InstructionBuilder ir_builder( in ReplaceTrinaryMid() local
116 Instruction* min = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMid()
119 Instruction* max = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMid()
221 InstructionBuilder ir_builder( in ReplaceSwizzleInvocations() local
237 Instruction* id = ir_builder.AddLoad(uint_type_id, var_id); in ReplaceSwizzleInvocations()
239 uint32_t quad_mask = ir_builder.GetUintConstantId(3); in ReplaceSwizzleInvocations()
242 Instruction* quad_idx = ir_builder.AddBinaryOp(uint_type_id, SpvOpBitwiseAnd, in ReplaceSwizzleInvocations()
246 Instruction* quad_ldr = ir_builder.AddBinaryOp( in ReplaceSwizzleInvocations()
[all …]
Dwrap_opkill.cpp62 InstructionBuilder ir_builder( in ReplaceWithFunctionCall() local
70 ir_builder.AddFunctionCall(GetVoidTypeId(), func_id, {}); in ReplaceWithFunctionCall()
79 Instruction* undef = ir_builder.AddNullaryOp(return_type_id, SpvOpUndef); in ReplaceWithFunctionCall()
84 ir_builder.AddUnaryOp(0, SpvOpReturnValue, undef->result_id()); in ReplaceWithFunctionCall()
86 return_inst = ir_builder.AddNullaryOp(0, SpvOpReturn); in ReplaceWithFunctionCall()
Dpass.cpp97 InstructionBuilder ir_builder( in GenerateCopy() local
119 Instruction* extract = ir_builder.AddCompositeExtract( in GenerateCopy()
125 return ir_builder.AddCompositeConstruct(new_type_id, element_ids) in GenerateCopy()
137 Instruction* extract = ir_builder.AddCompositeExtract( in GenerateCopy()
142 return ir_builder.AddCompositeConstruct(new_type_id, element_ids) in GenerateCopy()
Dreduce_load_size.cpp93 InstructionBuilder ir_builder( in ReplaceExtract() local
112 Instruction* new_access_chain = ir_builder.AddAccessChain( in ReplaceExtract()
116 ir_builder.AddLoad(inst->type_id(), new_access_chain->result_id()); in ReplaceExtract()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Damd_ext_to_khr.cpp71 InstructionBuilder ir_builder( in ReplaceTrinaryMinMax() local
79 Instruction* temp = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMinMax()
108 InstructionBuilder ir_builder( in ReplaceTrinaryMid() local
116 Instruction* min = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMid()
119 Instruction* max = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMid()
221 InstructionBuilder ir_builder( in ReplaceSwizzleInvocations() local
237 Instruction* id = ir_builder.AddLoad(uint_type_id, var_id); in ReplaceSwizzleInvocations()
239 uint32_t quad_mask = ir_builder.GetUintConstantId(3); in ReplaceSwizzleInvocations()
242 Instruction* quad_idx = ir_builder.AddBinaryOp(uint_type_id, SpvOpBitwiseAnd, in ReplaceSwizzleInvocations()
246 Instruction* quad_ldr = ir_builder.AddBinaryOp( in ReplaceSwizzleInvocations()
[all …]
Dwrap_opkill.cpp62 InstructionBuilder ir_builder( in ReplaceWithFunctionCall() local
70 ir_builder.AddFunctionCall(GetVoidTypeId(), func_id, {}); in ReplaceWithFunctionCall()
79 Instruction* undef = ir_builder.AddNullaryOp(return_type_id, SpvOpUndef); in ReplaceWithFunctionCall()
84 ir_builder.AddUnaryOp(0, SpvOpReturnValue, undef->result_id()); in ReplaceWithFunctionCall()
86 return_inst = ir_builder.AddNullaryOp(0, SpvOpReturn); in ReplaceWithFunctionCall()
Dpass.cpp97 InstructionBuilder ir_builder( in GenerateCopy() local
119 Instruction* extract = ir_builder.AddCompositeExtract( in GenerateCopy()
125 return ir_builder.AddCompositeConstruct(new_type_id, element_ids) in GenerateCopy()
137 Instruction* extract = ir_builder.AddCompositeExtract( in GenerateCopy()
142 return ir_builder.AddCompositeConstruct(new_type_id, element_ids) in GenerateCopy()
Dreduce_load_size.cpp92 InstructionBuilder ir_builder( in ReplaceExtract() local
111 Instruction* new_access_chain = ir_builder.AddAccessChain( in ReplaceExtract()
115 ir_builder.AddLoad(inst->type_id(), new_access_chain->result_id()); in ReplaceExtract()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Damd_ext_to_khr.cpp71 InstructionBuilder ir_builder( in ReplaceTrinaryMinMax() local
79 Instruction* temp = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMinMax()
108 InstructionBuilder ir_builder( in ReplaceTrinaryMid() local
116 Instruction* min = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMid()
119 Instruction* max = ir_builder.AddNaryExtendedInstruction( in ReplaceTrinaryMid()
221 InstructionBuilder ir_builder( in ReplaceSwizzleInvocations() local
237 Instruction* id = ir_builder.AddLoad(uint_type_id, var_id); in ReplaceSwizzleInvocations()
239 uint32_t quad_mask = ir_builder.GetUintConstantId(3); in ReplaceSwizzleInvocations()
242 Instruction* quad_idx = ir_builder.AddBinaryOp(uint_type_id, SpvOpBitwiseAnd, in ReplaceSwizzleInvocations()
246 Instruction* quad_ldr = ir_builder.AddBinaryOp( in ReplaceSwizzleInvocations()
[all …]
Dwrap_opkill.cpp62 InstructionBuilder ir_builder( in ReplaceWithFunctionCall() local
70 ir_builder.AddFunctionCall(GetVoidTypeId(), func_id, {}); in ReplaceWithFunctionCall()
79 Instruction* undef = ir_builder.AddNullaryOp(return_type_id, SpvOpUndef); in ReplaceWithFunctionCall()
84 ir_builder.AddUnaryOp(0, SpvOpReturnValue, undef->result_id()); in ReplaceWithFunctionCall()
86 return_inst = ir_builder.AddNullaryOp(0, SpvOpReturn); in ReplaceWithFunctionCall()
Dpass.cpp97 InstructionBuilder ir_builder( in GenerateCopy() local
119 Instruction* extract = ir_builder.AddCompositeExtract( in GenerateCopy()
125 return ir_builder.AddCompositeConstruct(new_type_id, element_ids) in GenerateCopy()
137 Instruction* extract = ir_builder.AddCompositeExtract( in GenerateCopy()
142 return ir_builder.AddCompositeConstruct(new_type_id, element_ids) in GenerateCopy()
Dreduce_load_size.cpp92 InstructionBuilder ir_builder( in ReplaceExtract() local
111 Instruction* new_access_chain = ir_builder.AddAccessChain( in ReplaceExtract()
115 ir_builder.AddLoad(inst->type_id(), new_access_chain->result_id()); in ReplaceExtract()
/third_party/mesa3d/src/compiler/glsl/
Dlower_vertex_id.cpp114 ir_builder::assign(VertexID, in visit()
115 ir_builder::add(gl_VertexID, gl_BaseVertex)); in visit()
Dgenerate_ir.cpp27 using namespace ir_builder;
Dir_optimization.h181 namespace ir_builder { class ir_factory; };
183 ir_variable *compare_index_block(ir_builder::ir_factory &body,
Dopt_flatten_nested_if_blocks.cpp45 using namespace ir_builder;
Dlower_offset_array.cpp40 using namespace ir_builder;
Dlower_subroutine.cpp35 using namespace ir_builder;
Dmeson.build110 'ir_builder.cpp',
111 'ir_builder.h',
Dlower_vector_insert.cpp28 using namespace ir_builder;
Dlower_cs_derived.cpp48 using namespace ir_builder;
Dlower_vector_derefs.cpp29 using namespace ir_builder;
/third_party/spirv-tools/test/opt/
DCMakeLists.txt61 ir_builder.cpp
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
DCMakeLists.txt64 ir_builder.cpp
/third_party/skia/third_party/externals/spirv-tools/test/opt/
DCMakeLists.txt64 ir_builder.cpp

123