#include "llvm/CodeGen/InstrSelection.h"
#include "llvm/CodeGen/InstrSelectionSupport.h"
#include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/CodeGen/MachineCodeForMethod.h"
#include "llvm/Method.h"
#include "llvm/ConstantVals.h"
#include "llvm/DerivedTypes.h"
-#include "llvm/Type.h"
//************************ Internal Functions ******************************/
uint64_t absC = (C >= 0)? C : -C;
if (absC > (unsigned int) ~0)
{ // C does not fit in 32 bits
- TmpInstruction* tmpReg =
- new TmpInstruction(Instruction::UserOp1, Type::IntTy, NULL, NULL);
+ TmpInstruction* tmpReg = new TmpInstruction(Type::IntTy);
tempVec.push_back(tmpReg);
minstr = new MachineInstr(SETX);
MachineInstr* minstr;
if (C > (unsigned int) ~0)
{ // C does not fit in 32 bits
- TmpInstruction* tmpReg =
- new TmpInstruction(Instruction::UserOp1, Type::IntTy, NULL, NULL);
+ TmpInstruction *tmpReg = new TmpInstruction(Type::IntTy);
tempVec.push_back(tmpReg);
minstr = new MachineInstr(SETX);
int64_t zeroOffset = 0; // to avoid ambiguity with (Value*) 0
TmpInstruction* tmpReg =
- new TmpInstruction(Instruction::UserOp1,
- PointerType::get(val->getType()), val, NULL);
+ new TmpInstruction(PointerType::get(val->getType()), val);
tempVec.push_back(tmpReg);
if (isa<Constant>(val))
{
// Create another TmpInstruction for the hidden integer register
TmpInstruction* addrReg =
- new TmpInstruction(Instruction::UserOp1,
- PointerType::get(val->getType()), val, NULL);
+ new TmpInstruction(PointerType::get(val->getType()), val);
tempVec.push_back(addrReg);
addrVal = addrReg;
}