Home
last modified time | relevance | path

Searched refs:val_id (Results 1 – 16 of 16) sorted by relevance

/third_party/spirv-tools/source/opt/
Dssa_rewrite_pass.cpp260 uint32_t val_id = GetValueAtBlock(var_id, bb); in GetReachingDef() local
261 if (val_id != 0) return val_id; in GetReachingDef()
268 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
277 val_id = AddPhiOperands(&phi_candidate); in GetReachingDef()
282 if (val_id == 0) { in GetReachingDef()
283 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
284 if (val_id == 0) { in GetReachingDef()
289 WriteVariable(var_id, bb, val_id); in GetReachingDef()
291 return val_id; in GetReachingDef()
307 uint32_t val_id = 0; in ProcessStore() local
[all …]
Dssa_rewrite_pass.h188 void WriteVariable(uint32_t var_id, BasicBlock* bb, uint32_t val_id) { in WriteVariable() argument
189 defs_at_block_[bb][var_id] = val_id; in WriteVariable()
190 if (auto* pc = GetPhiCandidate(val_id)) { in WriteVariable()
Dinstrument_pass.cpp136 uint32_t InstrumentPass::Gen32BitCvtCode(uint32_t val_id, in Gen32BitCvtCode() argument
140 uint32_t val_ty_id = get_def_use_mgr()->GetDef(val_id)->type_id(); in Gen32BitCvtCode()
142 if (val_ty->width() == 32) return val_id; in Gen32BitCvtCode()
148 return builder->AddUnaryOp(val_32b_reg_ty_id, SpvOpSConvert, val_id) in Gen32BitCvtCode()
151 return builder->AddUnaryOp(val_32b_reg_ty_id, SpvOpUConvert, val_id) in Gen32BitCvtCode()
155 uint32_t InstrumentPass::GenUintCastCode(uint32_t val_id, in GenUintCastCode() argument
158 uint32_t val_32b_id = Gen32BitCvtCode(val_id, builder); in GenUintCastCode()
173 uint32_t val_id = GenUintCastCode(field_value_id, builder); in GenDebugOutputFieldCode() local
184 (void)builder->AddBinaryOp(0, SpvOpStore, achain_inst->result_id(), val_id); in GenDebugOutputFieldCode()
Dinline_pass.cpp86 void InlinePass::AddStore(uint32_t ptr_id, uint32_t val_id, in AddStore() argument
93 {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {val_id}}})); in AddStore()
312 uint32_t val_id = callee_itr->GetSingleWordInOperand(1); in AddStoresForVariableInitializers() local
313 AddStore(new_var_id, val_id, new_blk_ptr, callee_itr->dbg_line_inst(), in AddStoresForVariableInitializers()
Dconvert_to_half_pass.cpp230 uint32_t val_id = inst->GetSingleWordInOperand(0); in ProcessConvert() local
231 Instruction* val_inst = get_def_use_mgr()->GetDef(val_id); in ProcessConvert()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dssa_rewrite_pass.cpp261 uint32_t val_id = GetValueAtBlock(var_id, bb); in GetReachingDef() local
262 if (val_id != 0) return val_id; in GetReachingDef()
269 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
278 val_id = AddPhiOperands(&phi_candidate); in GetReachingDef()
283 if (val_id == 0) { in GetReachingDef()
284 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
285 if (val_id == 0) { in GetReachingDef()
290 WriteVariable(var_id, bb, val_id); in GetReachingDef()
292 return val_id; in GetReachingDef()
308 uint32_t val_id = 0; in ProcessStore() local
[all …]
Dssa_rewrite_pass.h188 void WriteVariable(uint32_t var_id, BasicBlock* bb, uint32_t val_id) { in WriteVariable() argument
189 defs_at_block_[bb][var_id] = val_id; in WriteVariable()
190 if (auto* pc = GetPhiCandidate(val_id)) { in WriteVariable()
Dinstrument_pass.cpp91 uint32_t InstrumentPass::Gen32BitCvtCode(uint32_t val_id, in Gen32BitCvtCode() argument
95 uint32_t val_ty_id = get_def_use_mgr()->GetDef(val_id)->type_id(); in Gen32BitCvtCode()
97 if (val_ty->width() == 32) return val_id; in Gen32BitCvtCode()
103 return builder->AddUnaryOp(val_32b_reg_ty_id, SpvOpSConvert, val_id) in Gen32BitCvtCode()
106 return builder->AddUnaryOp(val_32b_reg_ty_id, SpvOpUConvert, val_id) in Gen32BitCvtCode()
110 uint32_t InstrumentPass::GenUintCastCode(uint32_t val_id, in GenUintCastCode() argument
113 uint32_t val_32b_id = Gen32BitCvtCode(val_id, builder); in GenUintCastCode()
128 uint32_t val_id = GenUintCastCode(field_value_id, builder); in GenDebugOutputFieldCode() local
139 (void)builder->AddBinaryOp(0, SpvOpStore, achain_inst->result_id(), val_id); in GenDebugOutputFieldCode()
Dinline_pass.cpp86 void InlinePass::AddStore(uint32_t ptr_id, uint32_t val_id, in AddStore() argument
93 {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {val_id}}})); in AddStore()
312 uint32_t val_id = callee_itr->GetSingleWordInOperand(1); in AddStoresForVariableInitializers() local
313 AddStore(new_var_id, val_id, new_blk_ptr, callee_itr->dbg_line_inst(), in AddStoresForVariableInitializers()
Dconvert_to_half_pass.cpp230 uint32_t val_id = inst->GetSingleWordInOperand(0); in ProcessConvert() local
231 Instruction* val_inst = get_def_use_mgr()->GetDef(val_id); in ProcessConvert()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dssa_rewrite_pass.cpp261 uint32_t val_id = GetValueAtBlock(var_id, bb); in GetReachingDef() local
262 if (val_id != 0) return val_id; in GetReachingDef()
269 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
278 val_id = AddPhiOperands(&phi_candidate); in GetReachingDef()
283 if (val_id == 0) { in GetReachingDef()
284 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
285 if (val_id == 0) { in GetReachingDef()
290 WriteVariable(var_id, bb, val_id); in GetReachingDef()
292 return val_id; in GetReachingDef()
308 uint32_t val_id = 0; in ProcessStore() local
[all …]
Dssa_rewrite_pass.h188 void WriteVariable(uint32_t var_id, BasicBlock* bb, uint32_t val_id) { in WriteVariable() argument
189 defs_at_block_[bb][var_id] = val_id; in WriteVariable()
190 if (auto* pc = GetPhiCandidate(val_id)) { in WriteVariable()
Dinstrument_pass.cpp91 uint32_t InstrumentPass::Gen32BitCvtCode(uint32_t val_id, in Gen32BitCvtCode() argument
95 uint32_t val_ty_id = get_def_use_mgr()->GetDef(val_id)->type_id(); in Gen32BitCvtCode()
97 if (val_ty->width() == 32) return val_id; in Gen32BitCvtCode()
103 return builder->AddUnaryOp(val_32b_reg_ty_id, SpvOpSConvert, val_id) in Gen32BitCvtCode()
106 return builder->AddUnaryOp(val_32b_reg_ty_id, SpvOpUConvert, val_id) in Gen32BitCvtCode()
110 uint32_t InstrumentPass::GenUintCastCode(uint32_t val_id, in GenUintCastCode() argument
113 uint32_t val_32b_id = Gen32BitCvtCode(val_id, builder); in GenUintCastCode()
128 uint32_t val_id = GenUintCastCode(field_value_id, builder); in GenDebugOutputFieldCode() local
139 (void)builder->AddBinaryOp(0, SpvOpStore, achain_inst->result_id(), val_id); in GenDebugOutputFieldCode()
Dinline_pass.cpp86 void InlinePass::AddStore(uint32_t ptr_id, uint32_t val_id, in AddStore() argument
93 {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {val_id}}})); in AddStore()
312 uint32_t val_id = callee_itr->GetSingleWordInOperand(1); in AddStoresForVariableInitializers() local
313 AddStore(new_var_id, val_id, new_blk_ptr, callee_itr->dbg_line_inst(), in AddStoresForVariableInitializers()
Dconvert_to_half_pass.cpp230 uint32_t val_id = inst->GetSingleWordInOperand(0); in ProcessConvert() local
231 Instruction* val_inst = get_def_use_mgr()->GetDef(val_id); in ProcessConvert()
/third_party/skia/third_party/externals/tint/src/writer/spirv/
Dbuilder.cc1206 auto val_id = GenerateExpression(expr->expr); in GenerateUnaryOpExpression() local
1207 if (val_id == 0) { in GenerateUnaryOpExpression()
1231 return val_id; in GenerateUnaryOpExpression()
1234 val_id = GenerateLoadIfNeeded(TypeOf(expr->expr), val_id); in GenerateUnaryOpExpression()
1242 op, {Operand::Int(type_id), result, Operand::Int(val_id)})) { in GenerateUnaryOpExpression()
1526 auto val_id = GenerateExpression(from_expr); in GenerateCastOrCopyOrPassthrough() local
1527 if (val_id == 0) { in GenerateCastOrCopyOrPassthrough()
1530 val_id = GenerateLoadIfNeeded(TypeOf(from_expr), val_id); in GenerateCastOrCopyOrPassthrough()
1555 return val_id; in GenerateCastOrCopyOrPassthrough()
1574 Operand::Int(val_id), Operand::Int(zero)})) { in GenerateCastOrCopyOrPassthrough()
[all …]