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:
Chris Lattner 2002-10-27 21:17:45 +00:00
parent c5291f5e0e
commit e4108ae577

View File

@ -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