Home | History | Annotate | Download | only in Analysis

Lines Matching full:instruction

25 static bool CanPHITrans(Instruction *Inst) {
34 if (Inst->getOpcode() == Instruction::Add &&
58 SmallVectorImpl<Instruction*> &InstInputs) {
59 // If this is a non-instruction value, there is nothing to do.
60 Instruction *I = dyn_cast<Instruction>(Expr);
63 // If it's an instruction, it is either in Tmp or its operands recursively
65 SmallVectorImpl<Instruction*>::iterator Entry =
75 errs() << "Non phi translatable instruction found in PHITransAddr:\n";
81 // Validate the operands of the instruction.
95 SmallVector<Instruction*, 8> Tmp(InstInputs.begin(), InstInputs.end());
116 // If the input value is not an instruction, or if it is not defined in CurBB,
118 Instruction *Inst = dyn_cast<Instruction>(Addr);
124 SmallVectorImpl<Instruction*> &InstInputs) {
125 Instruction *I = dyn_cast<Instruction>(V);
128 // If the instruction is in the InstInputs list, remove it.
129 SmallVectorImpl<Instruction*>::iterator Entry =
138 // Otherwise, it must have instruction inputs itself. Zap them recursively.
140 if (Instruction *Op = dyn_cast<Instruction>(I->getOperand(i)))
148 // If this is a non-instruction value, it can't require PHI translation.
149 Instruction *Inst = dyn_cast<Instruction>(V);
166 // In either case, the instruction itself isn't an input any longer.
174 // into the expression by making all instruction operands be inputs.
178 // All instruction operands are now inputs (and of course, they may also be
181 if (Instruction *Op = dyn_cast<Instruction>(Inst->getOperand(i)))
262 if (Inst->getOpcode() == Instruction::Add &&
274 if (BOp->getOpcode() == Instruction::Add)
303 if (BO->getOpcode() == Instruction::Add &&
330 if (Instruction *Inst = dyn_cast_or_null<Instruction>(Addr))
348 SmallVectorImpl<Instruction*> &NewInsts) {
372 SmallVectorImpl<Instruction*> &NewInsts) {
380 // instruction.
381 Instruction *Inst = cast<Instruction>(InVal);
425 if (Inst->getOpcode() == Instruction::Add &&