TableGen: PointerLikeRegClass can be accepted to operand.
llvm-svn: 124271
This commit is contained in:
parent
9d29eff198
commit
31aafbd501
|
@ -94,7 +94,8 @@ CGIOperandList::CGIOperandList(Record *R) : TheDef(R) {
|
|||
isVariadic = true;
|
||||
continue;
|
||||
} else if (!Rec->isSubClassOf("RegisterClass") &&
|
||||
Rec->getName() != "ptr_rc" && Rec->getName() != "unknown")
|
||||
!Rec->isSubClassOf("PointerLikeRegClass") &&
|
||||
Rec->getName() != "unknown")
|
||||
throw "Unknown operand class '" + Rec->getName() +
|
||||
"' in '" + R->getName() + "' instruction!";
|
||||
|
||||
|
|
|
@ -354,7 +354,8 @@ static void X86PopulateOperands(
|
|||
const CGIOperandList::OperandInfo &operandInfo = inst.Operands[index];
|
||||
Record &rec = *operandInfo.Rec;
|
||||
|
||||
if (X86TypeFromOpName(operandTypes[index], rec.getName())) {
|
||||
if (X86TypeFromOpName(operandTypes[index], rec.getName()) &&
|
||||
!rec.isSubClassOf("PointerLikeRegClass")) {
|
||||
errs() << "Operand type: " << rec.getName().c_str() << "\n";
|
||||
errs() << "Operand name: " << operandInfo.Name.c_str() << "\n";
|
||||
errs() << "Instruction name: " << inst.TheDef->getName().c_str() << "\n";
|
||||
|
|
Loading…
Reference in New Issue