mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Remove special case hacks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
52d2f14b3e
commit
552a8428fa
@ -138,14 +138,8 @@ CodeGenInstruction::CodeGenInstruction(Record *R) : TheDef(R) {
|
|||||||
MVT::ValueType Ty;
|
MVT::ValueType Ty;
|
||||||
if (Rec->isSubClassOf("RegisterClass"))
|
if (Rec->isSubClassOf("RegisterClass"))
|
||||||
Ty = getValueType(Rec->getValueAsDef("RegType"));
|
Ty = getValueType(Rec->getValueAsDef("RegType"));
|
||||||
else if (Rec->getName() == "i8imm")
|
else if (Rec->isSubClassOf("Operand"))
|
||||||
Ty = MVT::i8;
|
Ty = getValueType(Rec->getValueAsDef("Type"));
|
||||||
else if (Rec->getName() == "i16imm")
|
|
||||||
Ty = MVT::i16;
|
|
||||||
else if (Rec->getName() == "i32imm")
|
|
||||||
Ty = MVT::i32;
|
|
||||||
else if (Rec->getName() == "i64imm")
|
|
||||||
Ty = MVT::i64;
|
|
||||||
else
|
else
|
||||||
throw "Unknown operand class '" + Rec->getName() +
|
throw "Unknown operand class '" + Rec->getName() +
|
||||||
"' in instruction '" + R->getName() + "' instruction!";
|
"' in instruction '" + R->getName() + "' instruction!";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user