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
This commit is contained in:
Dan Gohman 2008-08-26 23:19:23 +00:00
parent 97e2568f46
commit 4b6e7069c3

View 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;