• Home
  • Raw
  • Download

Lines Matching refs:replacements

78   std::vector<Instruction*> replacements;  in ReplaceVariable()  local
79 if (!CreateReplacementVariables(inst, &replacements)) { in ReplaceVariable()
85 inst, [this, &replacements, &dead](Instruction* user) { in ReplaceVariable()
87 if (ReplaceWholeDebugDeclare(user, replacements)) { in ReplaceVariable()
94 if (ReplaceWholeDebugValue(user, replacements)) { in ReplaceVariable()
103 if (ReplaceWholeLoad(user, replacements)) { in ReplaceVariable()
110 if (ReplaceWholeStore(user, replacements)) { in ReplaceVariable()
118 if (ReplaceAccessChain(user, replacements)) in ReplaceVariable()
151 for (auto var : replacements) { in ReplaceVariable()
165 Instruction* dbg_decl, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugDeclare() argument
174 for (const auto* var : replacements) { in ReplaceWholeDebugDeclare()
195 Instruction* dbg_value, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugValue() argument
198 for (auto var : replacements) { in ReplaceWholeDebugValue()
220 Instruction* load, const std::vector<Instruction*>& replacements) { in ReplaceWholeLoad() argument
225 loads.reserve(replacements.size()); in ReplaceWholeLoad()
227 for (auto var : replacements) { in ReplaceWholeLoad()
278 Instruction* store, const std::vector<Instruction*>& replacements) { in ReplaceWholeStore() argument
285 for (auto var : replacements) { in ReplaceWholeStore()
328 Instruction* chain, const std::vector<Instruction*>& replacements) { in ReplaceAccessChain() argument
338 indexValue >= static_cast<int64_t>(replacements.size())) { in ReplaceAccessChain()
343 const Instruction* var = replacements[static_cast<size_t>(indexValue)]; in ReplaceAccessChain()
375 Instruction* inst, std::vector<Instruction*>* replacements) { in CreateReplacementVariables() argument
385 [this, inst, &elem, replacements, &components_used](uint32_t* id) { in CreateReplacementVariables()
387 CreateVariable(*id, inst, elem, replacements); in CreateReplacementVariables()
389 replacements->push_back(CreateNullConstant(*id)); in CreateReplacementVariables()
398 replacements); in CreateReplacementVariables()
400 replacements->push_back( in CreateReplacementVariables()
409 CreateVariable(type->GetSingleWordInOperand(0u), inst, i, replacements); in CreateReplacementVariables()
418 TransferAnnotations(inst, replacements); in CreateReplacementVariables()
419 return std::find(replacements->begin(), replacements->end(), nullptr) == in CreateReplacementVariables()
420 replacements->end(); in CreateReplacementVariables()
424 const Instruction* source, std::vector<Instruction*>* replacements) { in TransferAnnotations() argument
433 for (auto var : *replacements) { in TransferAnnotations()
456 std::vector<Instruction*>* replacements) { in CreateVariable() argument
461 replacements->push_back(nullptr); in CreateVariable()
510 replacements->push_back(inst); in CreateVariable()