This build on D23770, adding support for the MC layer. There is not yet any support for the AsmParser however.
Diff Detail
Event Timeline
Nothing new here, looks good, but as with the rest, I'll let other people review and approve.
lib/Target/AAP/MCTargetDesc/AAPAsmBackend.cpp | ||
---|---|---|
33 | instead want to populate? | |
90 | This should be an |= in case you want to add support for any non-default fixup. | |
105 | This seems suspicious, so any fixed 1/2/4/8 bit fixup is guaranteed to be known? | |
lib/Target/AAP/MCTargetDesc/AAPELFObjectWriter.cpp | ||
63 | Should these be aligned with the previous groups? | |
lib/Target/AAP/MCTargetDesc/AAPMCCodeEmitter.cpp | ||
76 | This could fail if you have an expression that either isn't binary (e.g. ~foo), or where the Symbol is on the RHS (e.g. 2+foo). For example, bal ~foo, $r0 In this case, I'd expect generic emission code to tell me it expected something relocatable later on. | |
lib/Target/AAP/MCTargetDesc/AAPMCTargetDesc.cpp | ||
2 | nitpic: This line is short | |
lib/Target/AAP/MCTargetDesc/AAPMCTargetDesc.h | ||
2 | nitpic: This line is short |
Updated the patch to address Simon's comments.
The code for getMachineOpValue was wrong, so I've removed it and replaced it with a basic implementation until proper handling is needed. I've also updated some of the formatting.
instead want to populate?