summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-25 05:01:18 +0000
committerChris Lattner <sabre@nondot.org>2002-12-25 05:01:18 +0000
commit05ec1f9369ddf42d8bc1fd68a02309b58041f2c2 (patch)
tree0b58e276874266be67deaf5e11fac5702ab3dcaf
parent9d8350939a7412dac2c78091116423f479855a91 (diff)
downloadbcm5719-llvm-05ec1f9369ddf42d8bc1fd68a02309b58041f2c2.tar.gz
bcm5719-llvm-05ec1f9369ddf42d8bc1fd68a02309b58041f2c2.zip
Add abstract frame index capability
llvm-svn: 5140
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstrBuilder.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstrBuilder.h b/llvm/include/llvm/CodeGen/MachineInstrBuilder.h
index 68580badae2..05bece330cb 100644
--- a/llvm/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/llvm/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
OpenPOWER on IntegriCloud