From: Chris Lattner Date: Wed, 25 Dec 2002 05:01:18 +0000 (+0000) Subject: Add abstract frame index capability X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa0e277f310fab67df6a8bd8dfb45b6f2730c17e;p=oota-llvm.git Add abstract frame index capability git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5140 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 68580badae2..05bece330cb 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