This is an archive of the discontinued LLVM Phabricator instance.

[AAP] (5) Add AAP MC layer support
AbandonedPublic

Authored by edward-jones on Aug 22 2016, 8:04 AM.

Details

Summary

This build on D23770, adding support for the MC layer. There is not yet any support for the AsmParser however.

Diff Detail

Event Timeline

edward-jones retitled this revision from to [AAP] (5) Add AAP MC layer support.
edward-jones updated this object.
edward-jones added reviewers: rengolin, asb.
edward-jones added subscribers: llvm-commits, simoncook.
rengolin edited edge metadata.Aug 23 2016, 4:12 AM

Nothing new here, looks good, but as with the rest, I'll let other people review and approve.

simoncook requested changes to this revision.Nov 1 2016, 3:46 PM
simoncook added a reviewer: simoncook.
simoncook added inline comments.
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

This revision now requires changes to proceed.Nov 1 2016, 3:46 PM
edward-jones edited edge metadata.

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.

edward-jones edited edge metadata.

Update to incorporate latest LLVM changes.

edward-jones edited edge metadata.

Updated to reflect latest LLVM changes.

edward-jones abandoned this revision.Sep 7 2021, 9:47 AM