Home
last modified time | relevance | path

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

/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dssa_rewrite_pass.cpp251 uint32_t val_id = 0; in GetReachingDef() local
256 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
263 val_id = AddPhiOperands(&phi_candidate); in GetReachingDef()
268 if (val_id == 0) { in GetReachingDef()
269 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
272 WriteVariable(var_id, bb, val_id); in GetReachingDef()
274 return val_id; in GetReachingDef()
290 uint32_t val_id = 0; in ProcessStore() local
293 val_id = inst->GetSingleWordInOperand(kStoreValIdInIdx); in ProcessStore()
296 val_id = inst->GetSingleWordInOperand(kVariableInitIdInIdx); in ProcessStore()
[all …]
Dssa_rewrite_pass.h189 void WriteVariable(uint32_t var_id, BasicBlock* bb, uint32_t val_id) { in WriteVariable() argument
190 defs_at_block_[bb][var_id] = val_id; in WriteVariable()
Dinstrument_pass.cpp91 uint32_t InstrumentPass::GenUintCastCode(uint32_t val_id, in GenUintCastCode() argument
94 if (get_def_use_mgr()->GetDef(val_id)->type_id() == GetUintId()) in GenUintCastCode()
95 return val_id; in GenUintCastCode()
96 return builder->AddUnaryOp(GetUintId(), SpvOpBitcast, val_id)->result_id(); in GenUintCastCode()
104 uint32_t val_id = GenUintCastCode(field_value_id, builder); in GenDebugOutputFieldCode() local
115 (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
91 {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {val_id}}})); in AddStore()
338 uint32_t val_id = cpi->GetSingleWordInOperand(1); in GenInlineCode() local
339 AddStore(new_var_id, val_id, &new_blk_ptr); in GenInlineCode()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dssa_rewrite_pass.cpp251 uint32_t val_id = 0; in GetReachingDef() local
256 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
263 val_id = AddPhiOperands(&phi_candidate); in GetReachingDef()
268 if (val_id == 0) { in GetReachingDef()
269 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
272 WriteVariable(var_id, bb, val_id); in GetReachingDef()
274 return val_id; in GetReachingDef()
290 uint32_t val_id = 0; in ProcessStore() local
293 val_id = inst->GetSingleWordInOperand(kStoreValIdInIdx); in ProcessStore()
296 val_id = inst->GetSingleWordInOperand(kVariableInitIdInIdx); in ProcessStore()
[all …]
Dssa_rewrite_pass.h189 void WriteVariable(uint32_t var_id, BasicBlock* bb, uint32_t val_id) { in WriteVariable() argument
190 defs_at_block_[bb][var_id] = val_id; in WriteVariable()
Dinstrument_pass.cpp91 uint32_t InstrumentPass::GenUintCastCode(uint32_t val_id, in GenUintCastCode() argument
94 if (get_def_use_mgr()->GetDef(val_id)->type_id() == GetUintId()) in GenUintCastCode()
95 return val_id; in GenUintCastCode()
96 return builder->AddUnaryOp(GetUintId(), SpvOpBitcast, val_id)->result_id(); in GenUintCastCode()
104 uint32_t val_id = GenUintCastCode(field_value_id, builder); in GenDebugOutputFieldCode() local
115 (void)builder->AddBinaryOp(0, SpvOpStore, achain_inst->result_id(), val_id); in GenDebugOutputFieldCode()
Dinline_pass.cpp82 void InlinePass::AddStore(uint32_t ptr_id, uint32_t val_id, in AddStore() argument
87 {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {val_id}}})); in AddStore()
298 uint32_t val_id = cpi->GetSingleWordInOperand(1); in GenInlineCode() local
299 AddStore(new_var_id, val_id, &new_blk_ptr); in GenInlineCode()