projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97e2568
)
Add a MachineInstrBuilder method for adding floating-point
author
Dan Gohman
<gohman@apple.com>
Tue, 26 Aug 2008 23:19:23 +0000
(23:19 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineInstrBuilder.h
b/include/llvm/CodeGen/MachineInstrBuilder.h
index 0b1f2f71b29e2fa53d3353923c04ca5f00f78858..3c0dcfe9ef7df323f69f87d30ca22f361c1fdbbc 100644
(file)
--- 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;