• Home
  • Raw
  • Download

Lines Matching refs:Instr

231     for (auto &Instr : Node->getPhis()) {  in fixPhiNodes()  local
232 auto *Phi = llvm::cast<InstPhi>(&Instr); in fixPhiNodes()
463 size_t operator()(const Inst *Instr) const { in localCSE()
464 auto Kind = Instr->getKind(); in localCSE()
468 for (SizeT i = 0; i < Instr->getSrcSize(); ++i) { in localCSE()
469 Result ^= Instr->getSrc(i)->hashValue(); in localCSE()
521 for (Inst &Instr : Node->getInsts()) { in localCSE()
522 if (Instr.isDeleted() || !llvm::isa<InstArithmetic>(&Instr)) in localCSE()
526 auto Iter = Replacements.find(Instr.getDest()); in localCSE()
532 auto DepIter = Dependency.find(Instr.getDest()); in localCSE()
542 for (SizeT i = 0; i < Instr.getSrcSize(); ++i) { in localCSE()
543 auto *Opnd = Instr.getSrc(i); in localCSE()
546 Instr.replaceSource(i, Replacements[Var]); in localCSE()
552 auto SeenIter = Seen.find(&Instr); in localCSE()
555 Replacements[Instr.getDest()] = Found->getDest(); in localCSE()
557 Seen.insert(&Instr); in localCSE()
561 for (SizeT i = 0; i < Instr.getSrcSize(); ++i) { in localCSE()
562 auto *Opnd = Instr.getSrc(i); in localCSE()
564 Dependency[Var].push_back(&Instr); in localCSE()
833 for (Inst *Instr : Allocas) { in sortAndCombineAllocas()
834 auto *Alloca = llvm::cast<InstAlloca>(Instr); in sortAndCombineAllocas()
923 for (Inst &Instr : EntryNode->getInsts()) { in processAllocas()
924 if (Instr.isDeleted()) in processAllocas()
926 if (auto *Alloca = llvm::dyn_cast<InstAlloca>(&Instr)) { in processAllocas()
948 for (Inst &Instr : Node->getInsts()) { in processAllocas()
949 if (Instr.isDeleted()) in processAllocas()
951 if (llvm::isa<InstAlloca>(&Instr)) { in processAllocas()
972 for (Inst &Instr : EntryNode->getInsts()) { in processAllocas()
973 if (Instr.isDeleted()) in processAllocas()
975 if (auto *Alloca = llvm::dyn_cast<InstAlloca>(&Instr)) { in processAllocas()
1022 bool rematerializeArithmetic(const Inst *Instr) { in rematerializeArithmetic() argument
1024 auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr); in rematerializeArithmetic()
1040 bool rematerializeAssign(const Inst *Instr) { in rematerializeAssign() argument
1046 if (!llvm::isa<InstAssign>(Instr)) in rematerializeAssign()
1049 auto *Src0Var = llvm::dyn_cast<Variable>(Instr->getSrc(0)); in rematerializeAssign()
1052 Instr->getDest()->setRematerializable(Src0Var->getRegNum(), in rematerializeAssign()
1057 bool rematerializeCast(const Inst *Instr) { in rematerializeCast() argument
1062 auto *Cast = llvm::dyn_cast<InstCast>(Instr); in rematerializeCast()
1098 for (Inst &Instr : Node->getInsts()) { in findRematerializable()
1099 if (Instr.isDeleted()) in findRematerializable()
1101 Variable *Dest = Instr.getDest(); in findRematerializable()
1104 if (rematerializeArithmetic(&Instr) || rematerializeAssign(&Instr) || in findRematerializable()
1105 rematerializeCast(&Instr)) { in findRematerializable()
1333 for (auto &Instr : Node->getInsts()) { in materializeVectorShuffles() local
1334 if (!llvm::isa<InstInsertElement>(Instr)) { in materializeVectorShuffles()
1337 if (!ShuffleVectorUtils::insertsLastElement(Instr)) { in materializeVectorShuffles()
1344 Instr.dump(this); in materializeVectorShuffles()
1347 Inserts.resize(typeNumElements(Instr.getDest()->getType())); in materializeVectorShuffles()
1348 Inserts[0] = &Instr; in materializeVectorShuffles()
1397 InstShuffleVector::create(this, Instr.getDest(), Src0, Src1); in materializeVectorShuffles()
1417 Instr.setDeleted(); in materializeVectorShuffles()
1419 LoweringContext.setInsertPoint(instToIterator(&Instr)); in materializeVectorShuffles()
1546 for (Inst &Instr : Node->getInsts()) { in validateLiveness()
1547 if (Instr.isDeleted()) in validateLiveness()
1550 FirstInst = &Instr; in validateLiveness()
1551 InstNumberT InstNumber = Instr.getNumber(); in validateLiveness()
1552 if (Variable *Dest = Instr.getDest()) { in validateLiveness()
1564 if (&Instr != FirstInst && !Instr.isDestRedefined() && in validateLiveness()
1569 Str << "Liveness error: inst " << Instr.getNumber() << " dest "; in validateLiveness()
1575 FOREACH_VAR_IN_INST(Var, Instr) { in validateLiveness()
1580 Str << "Liveness error: inst " << Instr.getNumber() << " var "; in validateLiveness()
1771 for (const Inst *Instr : VMetadata->getLatterDefinitions(Var)) { in dump() local
1774 Str << Instr->getNumber(); in dump()