Home
last modified time | relevance | path

Searched refs:val_id (Results 1 - 19 of 19) sorted by relevance

/third_party/spirv-tools/source/opt/
H A Dssa_rewrite_pass.cpp258 uint32_t val_id = GetValueAtBlock(var_id, bb); in GetReachingDef() local
259 if (val_id != 0) return val_id; in GetReachingDef()
266 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
275 val_id = AddPhiOperands(&phi_candidate); in GetReachingDef()
280 if (val_id == 0) { in GetReachingDef()
281 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
282 if (val_id == 0) { in GetReachingDef()
287 WriteVariable(var_id, bb, val_id); in GetReachingDef()
289 return val_id; in GetReachingDef()
305 uint32_t val_id = 0; ProcessStore() local
368 uint32_t val_id = 0; ProcessLoad() local
412 << " (replacement for %" << load_id << " is %" << val_id << ")\\n"; ProcessLoad() local
466 uint32_t val_id = repl.second; GetReplacement() local
581 uint32_t val_id = GetReplacement(repl); ApplyReplacements() local
589 << " (%" << load_id << " -> %" << val_id << ")\\n"; ApplyReplacements() local
[all...]
H A Dssa_rewrite_pass.h152 // replacement pair |repl|. The replacement is a pair (|load_id|, |val_id|).
153 // If |val_id| is itself replaced by another value in the table, this function
154 // will look the replacement for |val_id| until it finds one that is not
187 // value |val_id|.
188 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()
263 // where the variable is stored. defs_at_block_[block][var_id] = val_id
265 // basic block |block| with value |val_id|.
H A Dinstrument_pass.cpp134 uint32_t InstrumentPass::Gen32BitCvtCode(uint32_t val_id, in Gen32BitCvtCode() argument
138 uint32_t val_ty_id = get_def_use_mgr()->GetDef(val_id)->type_id(); in Gen32BitCvtCode()
140 if (val_ty->width() == 32) return val_id; in Gen32BitCvtCode()
146 return builder->AddUnaryOp(val_32b_reg_ty_id, spv::Op::OpSConvert, val_id) in Gen32BitCvtCode()
149 return builder->AddUnaryOp(val_32b_reg_ty_id, spv::Op::OpUConvert, val_id) in Gen32BitCvtCode()
153 uint32_t InstrumentPass::GenUintCastCode(uint32_t val_id, in GenUintCastCode() argument
156 uint32_t val_32b_id = Gen32BitCvtCode(val_id, builder); in GenUintCastCode()
H A 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()
314 uint32_t val_id = callee_itr->GetSingleWordInOperand(1); in AddStoresForVariableInitializers() local
315 AddStore(new_var_id, val_id, new_blk_ptr, callee_itr->dbg_line_inst(), in AddStoresForVariableInitializers()
H A Dconvert_to_half_pass.cpp241 uint32_t val_id = inst->GetSingleWordInOperand(0); in ProcessConvert() local
242 Instruction* val_inst = get_def_use_mgr()->GetDef(val_id); in ProcessConvert()
H A Dinst_debug_printf_pass.cpp287 uint32_t val_id = GenUintCastCode(field_value_id, builder); in GenDebugOutputFieldCode() local
297 (void)builder->AddStore(achain_inst->result_id(), val_id); in GenDebugOutputFieldCode()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A 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; ProcessStore() local
371 uint32_t val_id = 0; ProcessLoad() local
415 << " (replacement for %" << load_id << " is %" << val_id << ")\\n"; ProcessLoad() local
469 uint32_t val_id = repl.second; GetReplacement() local
584 uint32_t val_id = GetReplacement(repl); ApplyReplacements() local
592 << " (%" << load_id << " -> %" << val_id << ")\\n"; ApplyReplacements() local
[all...]
H A Dssa_rewrite_pass.h152 // replacement pair |repl|. The replacement is a pair (|load_id|, |val_id|).
153 // If |val_id| is itself replaced by another value in the table, this function
154 // will look the replacement for |val_id| until it finds one that is not
187 // value |val_id|.
188 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()
268 // where the variable is stored. defs_at_block_[block][var_id] = val_id
270 // basic block |block| with value |val_id|.
H A 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()
H A 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()
H A 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/
H A 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; ProcessStore() local
371 uint32_t val_id = 0; ProcessLoad() local
415 << " (replacement for %" << load_id << " is %" << val_id << ")\\n"; ProcessLoad() local
469 uint32_t val_id = repl.second; GetReplacement() local
584 uint32_t val_id = GetReplacement(repl); ApplyReplacements() local
592 << " (%" << load_id << " -> %" << val_id << ")\\n"; ApplyReplacements() local
[all...]
H A Dssa_rewrite_pass.h152 // replacement pair |repl|. The replacement is a pair (|load_id|, |val_id|).
153 // If |val_id| is itself replaced by another value in the table, this function
154 // will look the replacement for |val_id| until it finds one that is not
187 // value |val_id|.
188 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()
268 // where the variable is stored. defs_at_block_[block][var_id] = val_id
270 // basic block |block| with value |val_id|.
H A 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()
H A 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()
H A 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/backends/backend/
H A Dhs2p-scsi.h668 struct val_id struct
676 struct val_id noisematrix[] = {
685 struct val_id grayfilter[] = {
699 struct val_id paddingtype[] = {
710 struct val_id auto_separation[] = {
723 struct val_id auto_binarization[] = {
752 struct val_id halftone[] = {
H A Dhs2p.c187 get_val_id_strndx (struct val_id *vi, int len, SANE_Int val) in get_val_id_strndx()
/third_party/skia/third_party/externals/tint/src/writer/spirv/
H A 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()
2483 auto val_id = get_arg_as_value_id(0); GenerateIntrinsicCall() local
2515 auto val_id = get_arg_as_value_id(0); GenerateIntrinsicCall() local
3452 auto val_id = GenerateExpression(expr->expr); GenerateBitcastExpression() local
3712 auto val_id = GenerateExpression(stmt->value); GenerateReturnStatement() local
[all...]

Completed in 26 milliseconds