mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 13:08:00 +00:00
add a method
llvm-svn: 25884
This commit is contained in:
parent
8004ba8a2b
commit
d202c4d3cc
@ -83,7 +83,7 @@ namespace {
|
||||
void printMachineInstruction(const MachineInstr *MI);
|
||||
void printOp(const MachineOperand &MO);
|
||||
|
||||
void printOperand(const MachineInstr *MI, unsigned OpNo){
|
||||
void printOperand(const MachineInstr *MI, unsigned OpNo) {
|
||||
const MachineOperand &MO = MI->getOperand(OpNo);
|
||||
if (MO.getType() == MachineOperand::MO_MachineRegister) {
|
||||
assert(MRegisterInfo::isPhysicalRegister(MO.getReg())&&"Not physreg??");
|
||||
@ -94,7 +94,13 @@ namespace {
|
||||
printOp(MO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
unsigned AsmVariant) {
|
||||
printOperand(MI, OpNo);
|
||||
return false;
|
||||
}
|
||||
|
||||
void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo) {
|
||||
unsigned char value = MI->getOperand(OpNo).getImmedValue();
|
||||
assert(value <= 31 && "Invalid u5imm argument!");
|
||||
|
Loading…
Reference in New Issue
Block a user