mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Rename MO_VirtualRegister -> MO_Register. Clean up immediate handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28104 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,22 +42,22 @@ public:
|
||||
|
||||
/// addImm - Add a new immediate operand.
|
||||
///
|
||||
const MachineInstrBuilder &addImm(int Val) const {
|
||||
MI->addZeroExtImmOperand(Val);
|
||||
const MachineInstrBuilder &addImm(int64_t Val) const {
|
||||
MI->addImmOperand(Val);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// addZImm - Add a new zero extended immediate operand...
|
||||
///
|
||||
const MachineInstrBuilder &addZImm(unsigned Val) const {
|
||||
MI->addZeroExtImmOperand(Val);
|
||||
MI->addImmOperand(Val);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// addImm64 - Add a new 64-bit immediate operand...
|
||||
///
|
||||
const MachineInstrBuilder &addImm64(uint64_t Val) const {
|
||||
MI->addZeroExtImm64Operand(Val);
|
||||
MI->addImmOperand(Val);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user