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 | ||
---|---|---|
32 | instead want to populate? | |
89 | This should be an |= in case you want to add support for any non-default fixup. | |
104 | This seems suspicious, so any fixed 1/2/4/8 bit fixup is guaranteed to be known? | |
lib/Target/AAP/MCTargetDesc/AAPELFObjectWriter.cpp | ||
62 | Should these be aligned with the previous groups? | |
lib/Target/AAP/MCTargetDesc/AAPMCCodeEmitter.cpp | ||
75 | 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 | ||
1 | nitpic: This line is short | |
lib/Target/AAP/MCTargetDesc/AAPMCTargetDesc.h | ||
1 | 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?