aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-03 07:49:49 +0000
committerChris Lattner <sabre@nondot.org>2002-02-03 07:49:49 +0000
commitcb0a1202af5369bc88a01a36aba6d4e801df676d (patch)
tree04cb56e05bf4bf238dff083a844ec5ced1067182 /lib/Target
parentcf4525bd204c44df281b2db23e1e69a2d9eb3d56 (diff)
downloadexternal_llvm-cb0a1202af5369bc88a01a36aba6d4e801df676d.zip
external_llvm-cb0a1202af5369bc88a01a36aba6d4e801df676d.tar.gz
external_llvm-cb0a1202af5369bc88a01a36aba6d4e801df676d.tar.bz2
* Switch to new TmpInstruction model
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/SparcV9InstrInfo.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
index e00c871..cca9ac2 100644
--- a/lib/Target/SparcV9/SparcV9InstrInfo.cpp
+++ b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
@@ -16,10 +16,10 @@
#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 ******************************/
@@ -33,8 +33,7 @@ CreateIntSetInstruction(int64_t C, Value* dest,
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);
@@ -60,8 +59,7 @@ CreateUIntSetInstruction(uint64_t C, Value* dest,
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);
@@ -152,16 +150,14 @@ UltraSparcInstrInfo::CreateCodeToLoadConst(Value* val,
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;
}