This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Add support for the .inst directive.
ClosedPublic

Authored by mcrosier on Oct 21 2014, 12:29 PM.

Details

Summary

This has been implement using the MCTargetStreamer interface as is done in the ARM, Mips and PPC backends.

Addresses PR20964.

Chad

Diff Detail

Event Timeline

mcrosier updated this revision to Diff 15201.Oct 21 2014, 12:29 PM
mcrosier retitled this revision from to [AArch64] Add support for the .inst directive..
mcrosier updated this object.
mcrosier edited the test plan for this revision. (Show Details)
mcrosier added a subscriber: Unknown Object (MLST).
mcrosier updated this revision to Diff 15204.Oct 21 2014, 1:06 PM
mcrosier added a reviewer: hfinkel.

Removed unused header.
Remove tabs from test case.
Add Hal as a review.

t.p.northover edited edge metadata.Oct 21 2014, 1:11 PM

Hi Chad,

I think most of this looks fine. Just a couple of comments:

lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
50–51

These seem to be unused.

test/MC/AArch64/inst-directive.s
2–3

This looks like it's going to silently eat .inst directives on MachO. I don't think that's a good idea.

mcrosier updated this revision to Diff 15218.Oct 21 2014, 3:24 PM
mcrosier edited edge metadata.

Address Tim's comments:
-Remove unused variables.
-Don't silently accept the .inst directive when not targeting ELF.

Chad

t.p.northover accepted this revision.Oct 22 2014, 12:56 PM
t.p.northover edited edge metadata.

Hi Chad,

I think this looks reasonable now.

Cheers.

Tim.

This revision is now accepted and ready to land.Oct 22 2014, 12:56 PM
mcrosier closed this revision.Oct 22 2014, 1:57 PM

Thanks for the review, Tim!

Committed in r220422.