mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-06 21:27:23 +00:00
Add new helper method addRegDef
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5289 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -43,13 +43,11 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// addClobber - Assert that this MI is going to clobber a specific
|
/// addRegDef - Add an LLVM value that is to be defined as a register... this
|
||||||
/// register. Useful for instructions that always clobber certain hard regs.
|
/// is the same as addReg(V, MOTy::Def).
|
||||||
/// (Same as addReg(RegNo, true) but shorter and more obvious).
|
|
||||||
///
|
///
|
||||||
const MachineInstrBuilder &addClobber(int RegNo) const {
|
const MachineInstrBuilder &addRegDef(Value *V) const {
|
||||||
MI->addRegOperand(RegNo, MOTy::Def);
|
return addReg(V, MOTy::Def);
|
||||||
return *this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// addPCDisp - Add an LLVM value to be treated as a PC relative
|
/// addPCDisp - Add an LLVM value to be treated as a PC relative
|
||||||
|
Reference in New Issue
Block a user