• Home
  • Raw
  • Download

Lines Matching refs:Instr

80     for (const Inst &Instr : Node->getInsts()) {  in reset()  local
81 if (Instr.isDeleted()) in reset()
83 for (SizeT i = 0; i < Instr.getSrcSize(); ++i) { in reset()
84 if (auto *SrcVar = llvm::dyn_cast<Variable>(Instr.getSrc(i))) { in reset()
86 Map[VarNum].LastUseInst = &Instr; in reset()
141 bool isInstLastUseOfVar(const Variable *Var, const Inst *Instr) { in isInstLastUseOfVar() argument
142 return Map[getVarNum(Var)].LastUseInst == Instr; in isInstLastUseOfVar()
190 Instr = CurInst; in setInst()
191 Dest = Instr->getDest(); in setInst()
221 Instr->getNumber())) { in handleUnwantedInstruction()
224 if (!llvm::isa<InstTarget>(Instr)) { in handleUnwantedInstruction()
233 if (!Instr->isLabel()) in handleLabel()
238 assert(Instr->getSrcSize() == 0); in handleLabel()
239 if (Instr == WaitingForLabel) { in handleLabel()
246 WaitingForBranchTo = Instr; in handleLabel()
256 const Inst *Label = Instr->getIntraBlockBranchTarget(); in handleIntraBlockBranch()
262 assert(Instr->getSrcSize() == 0); in handleIntraBlockBranch()
278 if (!Instr->isVarAssign()) in handleSimpleVarAssign()
282 auto *SrcVar = llvm::cast<Variable>(Instr->getSrc(0)); in handleSimpleVarAssign()
310 Instr->replaceSource(0, OldMapped); in handleSimpleVarAssign()
314 if (!VarMap.isInstLastUseOfVar(SrcVar, Instr)) { in handleSimpleVarAssign()
359 assert(llvm::isa<InstPhi>(Instr)); in handlePhi()
388 for (SizeT i = 0; i < Instr->getSrcSize(); ++i) { in handleGeneralInst()
393 if (auto *SrcVar = llvm::dyn_cast<Variable>(Instr->getSrc(i))) { in handleGeneralInst()
398 if (!VarMap.isInstLastUseOfVar(SrcVar, Instr)) { in handleGeneralInst()
404 Instr->replaceSource(i, OldMapped); in handleGeneralInst()
427 Inst *Instr = nullptr; member in Ice::__anon4d0e651c0111::LocalVariableSplitter
528 for (Inst &Instr : Node->getPhis()) { in splitBlockLocalVariables()
529 if (Instr.isDeleted()) in splitBlockLocalVariables()
531 Splitter.setInst(&Instr, Iter, Iter); in splitBlockLocalVariables()
540 Inst *Instr = iteratorToInst(Iter); in splitBlockLocalVariables() local
541 if (Instr->isDeleted()) in splitBlockLocalVariables()
543 Splitter.setInst(Instr, Iter, NextIter); in splitBlockLocalVariables()