mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-01-05 23:23:53 +00:00
Initial cut at an asm writer emitter. So far, this only handles emission of
instructions, and only instructions that take no operands at that! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -122,14 +122,23 @@ CodeGenInstruction::CodeGenInstruction(Record *R) : TheDef(R) {
|
||||
Namespace = R->getValueAsString("Namespace");
|
||||
AsmString = R->getValueAsString("AsmString");
|
||||
|
||||
//TODO: Parse OperandList
|
||||
|
||||
isReturn = R->getValueAsBit("isReturn");
|
||||
isBranch = R->getValueAsBit("isBranch");
|
||||
isBarrier = R->getValueAsBit("isBarrier");
|
||||
isCall = R->getValueAsBit("isCall");
|
||||
isTwoAddress = R->getValueAsBit("isTwoAddress");
|
||||
isTerminator = R->getValueAsBit("isTerminator");
|
||||
|
||||
|
||||
//TODO: Parse OperandList
|
||||
try {
|
||||
DagInit *DI = R->getValueAsDag("OperandList");
|
||||
|
||||
// Cannot handle instructions with operands yet.
|
||||
if (DI->getNumArgs())
|
||||
AsmString.clear();
|
||||
} catch (...) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user