diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-25 05:01:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-25 05:01:18 +0000 |
commit | aa0e277f310fab67df6a8bd8dfb45b6f2730c17e (patch) | |
tree | a4d38cd50e9d03754691424d287a0e165f4d9e20 /include/llvm/CodeGen/MachineInstrBuilder.h | |
parent | 7c56bf694e1e72e7262d6bb7a23273f71268c782 (diff) |
Add abstract frame index capability
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstrBuilder.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 68580badae..05bece330c 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -48,7 +48,7 @@ struct MachineInstrBuilder { /// (Same as addReg(RegNo, true) but shorter and more obvious). /// const MachineInstrBuilder &addClobber(int RegNo) const { - MI->addRegOperand(RegNo, true); + MI->addRegOperand(RegNo, MOTy::Def); return *this; } @@ -86,6 +86,11 @@ struct MachineInstrBuilder { MI->addMachineBasicBlockOperand(MBB); return *this; } + + const MachineInstrBuilder &addFrameIndex(unsigned Idx) const { + MI->addFrameIndexOperand(Idx); + return *this; + } }; /// BuildMI - Builder interface. Specify how to create the initial instruction |