[llvm-branch-commits] [llvm-branch] r100575 - /llvm/branches/ggreif/CallInst-operands/lib/Target/X86/X86FastISel.cpp
Gabor Greif
ggreif at gmail.com
Tue Apr 6 15:30:13 PDT 2010
Author: ggreif
Date: Tue Apr 6 17:30:13 2010
New Revision: 100575
URL: http://llvm.org/viewvc/llvm-project?rev=100575&view=rev
Log:
shift operands
Modified:
llvm/branches/ggreif/CallInst-operands/lib/Target/X86/X86FastISel.cpp
Modified: llvm/branches/ggreif/CallInst-operands/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Target/X86/X86FastISel.cpp?rev=100575&r1=100574&r2=100575&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Target/X86/X86FastISel.cpp Tue Apr 6 17:30:13 2010
@@ -1170,8 +1170,8 @@
// Emit code inline code to store the stack guard onto the stack.
EVT PtrTy = TLI.getPointerTy();
- Value *Op1 = I.getOperand(1); // The guard's value.
- AllocaInst *Slot = cast<AllocaInst>(I.getOperand(2));
+ Value *Op1 = I.getOperand(0); // The guard's value.
+ AllocaInst *Slot = cast<AllocaInst>(I.getOperand(1));
// Grab the frame index.
X86AddressMode AM;
@@ -1182,7 +1182,7 @@
return true;
}
case Intrinsic::objectsize: {
- ConstantInt *CI = dyn_cast<ConstantInt>(I.getOperand(2));
+ ConstantInt *CI = dyn_cast<ConstantInt>(I.getOperand(1));
const Type *Ty = I.getCalledFunction()->getReturnType();
assert(CI && "Non-constant type in Intrinsic::objectsize?");
@@ -1237,8 +1237,8 @@
if (!isTypeLegal(RetTy, VT))
return false;
- Value *Op1 = I.getOperand(1);
- Value *Op2 = I.getOperand(2);
+ Value *Op1 = I.getOperand(0);
+ Value *Op2 = I.getOperand(1);
unsigned Reg1 = getRegForValue(Op1);
unsigned Reg2 = getRegForValue(Op2);
@@ -1281,7 +1281,7 @@
bool X86FastISel::X86SelectCall(Instruction *I) {
CallInst *CI = cast<CallInst>(I);
- Value *Callee = I->getOperand(0);
+ Value *Callee = CI->getCalledValue();
// Can't handle inline asm yet.
if (isa<InlineAsm>(Callee))
More information about the llvm-branch-commits
mailing list