aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
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
commit4b6e7069c3ac98179e8cdc0a896f5f434670dafc (patch)
treecd49b9fc164ec7b8dac0639eed9c8f83acfea03e /include/llvm/CodeGen/MachineInstrBuilder.h
parent97e2568f46f66e67cfa6a61403bddaeba38a252f (diff)
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
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-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 0b1f2f71b2..3c0dcfe9ef 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;