mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-17 12:40:40 +00:00
Add support or other operand types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5291f5e0e
commit
e4108ae577
@ -34,6 +34,26 @@ struct MInstructionBuilder {
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// addSImm - Add a new sign extended immediate operand...
|
||||
///
|
||||
MInstructionBuilder &addSImm(int Val) {
|
||||
MI->addOperand(Val, MOperand::SignExtImmediate);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// addZImm - Add a new zero extended immediate operand...
|
||||
///
|
||||
MInstructionBuilder &addZImm(unsigned Val) {
|
||||
MI->addOperand(Val, MOperand::ZeroExtImmediate);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// addPCDisp - Add a PC Relative Displacement operand...
|
||||
///
|
||||
MInstructionBuilder &addPCDisp(int Disp) {
|
||||
MI->addOperand(Disp, MOperand::PCRelativeDisp);
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
/// BuildMInst - Builder interface. Specify how to create the initial
|
||||
|
Loading…
x
Reference in New Issue
Block a user