aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-26 23:19:23 +0000
committerDan Gohman <gohman@apple.com>2008-08-26 23:19:23 +0000
commit82597c0676d1b2ce03d53f57a35abc8d1d9f9bcf (patch)
treecd49b9fc164ec7b8dac0639eed9c8f83acfea03e
parent7c3dd1f2cead8b5e37024f352716b1e7df6d231e (diff)
downloadexternal_llvm-82597c0676d1b2ce03d53f57a35abc8d1d9f9bcf.zip
external_llvm-82597c0676d1b2ce03d53f57a35abc8d1d9f9bcf.tar.gz
external_llvm-82597c0676d1b2ce03d53f57a35abc8d1d9f9bcf.tar.bz2
Add a MachineInstrBuilder method for adding floating-point
immediate operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55397 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineInstrBuilder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
index 0b1f2f7..3c0dcfe 100644
--- a/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -52,6 +52,11 @@ public:
return *this;
}
+ const MachineInstrBuilder &addFPImm(ConstantFP *Val) const {
+ MI->addOperand(MachineOperand::CreateFPImm(Val));
+ return *this;
+ }
+
const MachineInstrBuilder &addMBB(MachineBasicBlock *MBB) const {
MI->addOperand(MachineOperand::CreateMBB(MBB));
return *this;