/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | ssa_rewrite_pass.cpp | 91 SSARewriter::PhiCandidate& SSARewriter::CreatePhiCandidate(uint32_t var_id, in CreatePhiCandidate() argument 96 phi_result_id, PhiCandidate(var_id, phi_result_id, bb)); in CreatePhiCandidate() 203 ? GetReachingDef(phi_candidate->var_id(), pred_bb) in AddPhiOperands() 239 uint32_t SSARewriter::GetReachingDef(uint32_t var_id, BasicBlock* bb) { in GetReachingDef() argument 244 const auto& var_it = current_defs.find(var_id); in GetReachingDef() 256 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef() 261 PhiCandidate& phi_candidate = CreatePhiCandidate(var_id, bb); in GetReachingDef() 262 WriteVariable(var_id, bb, phi_candidate.result_id()); in GetReachingDef() 269 val_id = pass_->GetUndefVal(var_id); in GetReachingDef() 272 WriteVariable(var_id, bb, val_id); in GetReachingDef() [all …]
|
D | ssa_rewrite_pass.h | 65 uint32_t var_id() const { return var_id_; } in var_id() function 189 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() 211 uint32_t GetReachingDef(uint32_t var_id, BasicBlock* bb); 229 PhiCandidate& CreatePhiCandidate(uint32_t var_id, BasicBlock* bb);
|
D | ir_context.cpp | 637 void IRContext::AddVarToEntryPoints(uint32_t var_id) { in AddVarToEntryPoints() argument 641 e.ForEachInOperand([&ocnt, &found, &var_id](const uint32_t* idp) { in AddVarToEntryPoints() 643 if (*idp == var_id) found = true; in AddVarToEntryPoints() 648 e.AddOperand({SPV_OPERAND_TYPE_ID, {var_id}}); in AddVarToEntryPoints() 661 uint32_t var_id = FindBuiltinVar(builtin); in GetBuiltinVarId() local 662 if (var_id == 0) { in GetBuiltinVarId() 693 var_id = TakeNextId(); in GetBuiltinVarId() 695 new Instruction(this, SpvOpVariable, varTyPtrId, var_id, in GetBuiltinVarId() 700 get_decoration_mgr()->AddDecorationVal(var_id, SpvDecorationBuiltIn, in GetBuiltinVarId() 702 AddVarToEntryPoints(var_id); in GetBuiltinVarId() [all …]
|
D | mem_pass.h | 44 uint32_t GetUndefVal(uint32_t var_id) { in GetUndefVal() argument 45 return Type2Undef(GetPointeeTypeId(get_def_use_mgr()->GetDef(var_id))); in GetUndefVal()
|
D | merge_return_pass.cpp | 519 uint32_t var_id = TakeNextId(); in AddReturnValue() local 521 context(), SpvOpVariable, return_ptr_type, var_id, in AddReturnValue() 533 function_->result_id(), var_id, {SpvDecorationRelaxedPrecision}); in AddReturnValue() 554 uint32_t var_id = TakeNextId(); in AddReturnFlag() local 556 context(), SpvOpVariable, bool_ptr_id, var_id, in AddReturnFlag()
|
D | ir_context.h | 656 void AddVarToEntryPoints(uint32_t var_id);
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | ssa_rewrite_pass.cpp | 91 SSARewriter::PhiCandidate& SSARewriter::CreatePhiCandidate(uint32_t var_id, in CreatePhiCandidate() argument 96 phi_result_id, PhiCandidate(var_id, phi_result_id, bb)); in CreatePhiCandidate() 203 ? GetReachingDef(phi_candidate->var_id(), pred_bb) in AddPhiOperands() 239 uint32_t SSARewriter::GetReachingDef(uint32_t var_id, BasicBlock* bb) { in GetReachingDef() argument 244 const auto& var_it = current_defs.find(var_id); in GetReachingDef() 256 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef() 261 PhiCandidate& phi_candidate = CreatePhiCandidate(var_id, bb); in GetReachingDef() 262 WriteVariable(var_id, bb, phi_candidate.result_id()); in GetReachingDef() 269 val_id = pass_->GetUndefVal(var_id); in GetReachingDef() 272 WriteVariable(var_id, bb, val_id); in GetReachingDef() [all …]
|
D | ssa_rewrite_pass.h | 65 uint32_t var_id() const { return var_id_; } in var_id() function 189 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() 211 uint32_t GetReachingDef(uint32_t var_id, BasicBlock* bb); 229 PhiCandidate& CreatePhiCandidate(uint32_t var_id, BasicBlock* bb);
|
D | ir_context.cpp | 621 void IRContext::AddVarToEntryPoints(uint32_t var_id) { in AddVarToEntryPoints() argument 625 e.ForEachInOperand([&ocnt, &found, &var_id](const uint32_t* idp) { in AddVarToEntryPoints() 627 if (*idp == var_id) found = true; in AddVarToEntryPoints() 632 e.AddOperand({SPV_OPERAND_TYPE_ID, {var_id}}); in AddVarToEntryPoints() 645 uint32_t var_id = FindBuiltinVar(builtin); in GetBuiltinVarId() local 646 if (var_id == 0) { in GetBuiltinVarId() 677 var_id = TakeNextId(); in GetBuiltinVarId() 679 new Instruction(this, SpvOpVariable, varTyPtrId, var_id, in GetBuiltinVarId() 684 get_decoration_mgr()->AddDecorationVal(var_id, SpvDecorationBuiltIn, in GetBuiltinVarId() 686 AddVarToEntryPoints(var_id); in GetBuiltinVarId() [all …]
|
D | mem_pass.h | 44 uint32_t GetUndefVal(uint32_t var_id) { in GetUndefVal() argument 45 return Type2Undef(GetPointeeTypeId(get_def_use_mgr()->GetDef(var_id))); in GetUndefVal()
|
D | merge_return_pass.cpp | 503 uint32_t var_id = TakeNextId(); in AddReturnValue() local 505 context(), SpvOpVariable, return_ptr_type, var_id, in AddReturnValue() 517 function_->result_id(), var_id, {SpvDecorationRelaxedPrecision}); in AddReturnValue() 538 uint32_t var_id = TakeNextId(); in AddReturnFlag() local 540 context(), SpvOpVariable, bool_ptr_id, var_id, in AddReturnFlag()
|
D | ir_context.h | 638 void AddVarToEntryPoints(uint32_t var_id);
|
/external/deqp-deps/SPIRV-Tools/source/val/ |
D | validate_decorations.cpp | 81 bool isBuiltInVar(uint32_t var_id, ValidationState_t& vstate) { in isBuiltInVar() argument 82 const auto& decorations = vstate.id_decorations(var_id); in isBuiltInVar() 623 spv_result_t CheckBuiltInVariable(uint32_t var_id, ValidationState_t& vstate) { in CheckBuiltInVariable() argument 624 const auto& decorations = vstate.id_decorations(var_id); in CheckBuiltInVariable() 629 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckBuiltInVariable() 630 << "A BuiltIn variable (id " << var_id in CheckBuiltInVariable() 798 const auto var_id = inst.id(); in CheckDecorationsOfBuffers() local 812 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers() 816 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckDecorationsOfBuffers() 828 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers() [all …]
|
D | validate_instruction.cpp | 406 spv_result_t LimitCheckNumVars(ValidationState_t& _, const uint32_t var_id, in LimitCheckNumVars() argument 409 _.registerLocalVariable(var_id); in LimitCheckNumVars() 419 _.registerGlobalVariable(var_id); in LimitCheckNumVars()
|
/external/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_decorations.cpp | 81 bool isBuiltInVar(uint32_t var_id, ValidationState_t& vstate) { in isBuiltInVar() argument 82 const auto& decorations = vstate.id_decorations(var_id); in isBuiltInVar() 630 spv_result_t CheckBuiltInVariable(uint32_t var_id, ValidationState_t& vstate) { in CheckBuiltInVariable() argument 631 const auto& decorations = vstate.id_decorations(var_id); in CheckBuiltInVariable() 636 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckBuiltInVariable() 637 << "A BuiltIn variable (id " << var_id in CheckBuiltInVariable() 805 const auto var_id = inst.id(); in CheckDecorationsOfBuffers() local 819 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers() 823 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckDecorationsOfBuffers() 835 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers() [all …]
|
D | validate_instruction.cpp | 406 spv_result_t LimitCheckNumVars(ValidationState_t& _, const uint32_t var_id, in LimitCheckNumVars() argument 409 _.registerLocalVariable(var_id); in LimitCheckNumVars() 419 _.registerGlobalVariable(var_id); in LimitCheckNumVars()
|
/external/mesa3d/src/compiler/nir/ |
D | nir_algebraic.py | 320 def _set_var_bit_class(self, var_id, bit_class): argument 322 var_class = self._var_classes[var_id] 324 self._var_classes[var_id] = bit_class 329 self._var_classes[var_id] = var_class 331 def _get_var_bit_class(self, var_id): argument 332 return self._class_relation.get_canonical(self._var_classes[var_id])
|