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:
2f39426
)
Added CreateFrameIndex to create a FrameIndex MachineOperand without a MachineInstr.
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 30 Aug 2007 05:50:32 +0000
(
05:50
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 30 Aug 2007 05:50:32 +0000
(
05:50
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41596
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineInstr.h
b/include/llvm/CodeGen/MachineInstr.h
index 48cf62cfa77b660fa2a9d4dac9c80fdd3916df6b..8fe446f0e8bb307ef8577bfc13597def7ed7aa8d 100644
(file)
--- a/
include/llvm/CodeGen/MachineInstr.h
+++ b/
include/llvm/CodeGen/MachineInstr.h
@@
-102,6
+102,18
@@
public:
return Op;
}
+ static MachineOperand CreateFrameIndex(unsigned Idx) {
+ MachineOperand Op;
+ Op.opType = MachineOperand::MO_FrameIndex;
+ Op.contents.immedVal = Idx;
+ Op.IsDef = false;
+ Op.IsImp = false;
+ Op.IsKill = false;
+ Op.IsDead = false;
+ Op.auxInfo.offset = 0;
+ return Op;
+ }
+
const MachineOperand &operator=(const MachineOperand &MO) {
contents = MO.contents;
IsDef = MO.IsDef;