mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +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;
|
||||
if (Rec->isSubClassOf("RegisterClass"))
|
||||
Ty = getValueType(Rec->getValueAsDef("RegType"));
|
||||
else if (Rec->getName() == "i8imm")
|
||||
Ty = MVT::i8;
|
||||
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 if (Rec->isSubClassOf("Operand"))
|
||||
Ty = getValueType(Rec->getValueAsDef("Type"));
|
||||
else
|
||||
throw "Unknown operand class '" + Rec->getName() +
|
||||
"' in instruction '" + R->getName() + "' instruction!";
|
||||
|
Loading…
x
Reference in New Issue
Block a user