aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2005-04-10 09:18:55 +0000
committerDuraid Madina <duraid@octopus.com.au>2005-04-10 09:18:55 +0000
commit9696a90ee66e1c6c818c8de3d9ffc32732d9d82f (patch)
tree6605061ba61370c8ccb9986e1ab17b252feca8de /include/llvm/CodeGen/MachineInstrBuilder.h
parent709c806a1e1f4905466af2bf282d6bc7adb93f43 (diff)
* store immediate values as int64_t, not int. come on, we should be happy
when there are immediates, let's not worry about the memory overhead of this :) * add addU64Imm(uint64_t val) to machineinstrbuilder (seriously: this seems required to support 64-bit immediates cleanly. if it _really_ gets on your nerves, feel free to pull it out ;) ) coming up next week: "all your floating point constants are belong to us" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r--include/llvm/CodeGen/MachineInstrBuilder.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
index e6264e256b..ded06fc7d1 100644
--- a/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -108,6 +108,13 @@ public:
return *this;
}
+ /// addU64Imm - Add a new 64-bit immediate operand...
+ ///
+ const MachineInstrBuilder &addU64Imm(uint64_t Val) const {
+ MI->addZeroExtImm64Operand(Val);
+ return *this;
+ }
+
const MachineInstrBuilder &addMBB(MachineBasicBlock *MBB) const {
MI->addMachineBasicBlockOperand(MBB);
return *this;