OSDN Git Service

Add a MachineInstrBuilder method for adding floating-point
authorDan Gohman <gohman@apple.com>
Tue, 26 Aug 2008 23:19:23 +0000 (23:19 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 26 Aug 2008 23:19:23 +0000 (23:19 +0000)
immediate operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55397 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstrBuilder.h

index 0b1f2f7..3c0dcfe 100644 (file)
@@ -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;