Home | History | Annotate | Download | only in src

Lines Matching refs:Variable

154 // This does part 1 of Phi lowering, by creating a new dest variable for each
155 // Phi instruction, replacing the Phi instruction's dest with that variable,
181 // as there may be assignments to the dest variable in multiple blocks.
233 // Keep track of the dest variable of a compare instruction, so that we
236 Variable *CmpInstDest = nullptr;
262 Variable *Dest = I.getDest();
343 PhiDesc(InstPhi *Phi, Variable *Dest) : Phi(Phi), Dest(Dest) {}
346 Variable *Dest = nullptr;
365 bool sameVarOrReg(TargetLowering *Target, const Variable *Var1,
369 const auto *Var2 = llvm::dyn_cast<Variable>(Opnd);
390 // Update NumPred for all Phi assignments using Var as their Dest variable.
392 void updatePreds(PhiDescList &Desc, TargetLowering *Target, Variable *Var) {
457 Variable *Dest = Phi->getDest();
460 // marking the phi dest variable as live on entry.
481 Variable *Dest = Item.Dest;
503 const Variable *Dest = Item.Dest;
507 // There shouldn't be two different Phis with the same Dest variable or
524 if (auto *Var = llvm::dyn_cast<Variable>(Item.Src))
550 Variable *Dest = BestItem->Dest;
565 Variable *Tmp = Func->makeVariable(OtherSrc->getType());
570 updatePreds(Desc, Target, llvm::cast<Variable>(OtherSrc));
581 if (auto *Var = llvm::dyn_cast<Variable>(Src))
683 // Mark the beginning and ending of each variable's live range with the
810 << Start->second << " & " << Next->second << ", variable "
819 << Start->second << " & " << Next->second << ", variable "
861 // i1 is the Variable number of the next MapBegin entry, and i2 is the
862 // Variable number of the next MapEnd entry. If i1==i2, then the Variable's
871 Variable *Var = Liveness->getVariable(i, this);
875 // Assert that Var is a global variable by checking that its liveness
891 Variable *Var = Liveness->getVariable(i, this);
990 CfgVector<Variable *> LiveRegs;
994 Variable *Var = Liveness->getVariable(i, Node);
1007 [](const Variable *V1, const Variable *V2) {
1011 for (Variable *Var : LiveRegs) {
1028 Variable *Dest = Instr->getDest();
1033 // variable's live range.
1061 // Update emitted instruction count, plus fill/spill count for Variable
1065 if (Variable *Dest = I->getDest()) {
1070 if (auto *Src = llvm::dyn_cast<Variable>(I->getSrc(S))) {
1122 // Usually, redundant assignments end the live range of the src variable
1123 // and begin the live range of the dest variable, with no net effect on
1126 // assignment that does not end the src variable's live range, in which
1127 // case the active variable count for that register needs to be bumped.
1130 Variable *Dest = I.getDest();
1134 --LiveRegCount[llvm::cast<Variable>(I.getSrc(0))->getRegNum()];
1415 Variable *Var = Liveness->getVariable(i, this);
1441 Variable *Var = Liveness->getVariable(i, this);
1501 Variable *Condition = nullptr;
1505 Condition = llvm::dyn_cast<Variable>(Br->getCondition());