This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Emit Tag_conformance.
Needs ReviewPublic

Authored by chatur01 on Dec 12 2014, 9:22 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Emit the build attribute Tag_conformance.

Claim conformance to version 2.09 of the ARM ABI.

This build attribute must be emitted first amongst the build attributes when
written to an object file. This is to simplify conformance detection by
consumers.

Diff Detail

Event Timeline

chatur01 retitled this revision from to [ARM] Emit Tag_conformance..
chatur01 updated this object.
chatur01 edited the test plan for this revision. (Show Details)
chatur01 set the repository for this revision to rL LLVM.
chatur01 added a subscriber: Unknown Object (MLST).

Noticed a bug, sorry. Will prepare a new patch.

lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
974–975

Will prepare a new revision here, I should be computing the length of the ConformanceValue string here, rather than assuming it will be a sane version number.

chatur01 updated this object.

Review requested.

Fixed a bug in the computation of the conformance value length.

Hi Charlie,

Couldn't this be achieved more simply by just changing the definition of AttributeItem::LessTag?

lib/Target/ARM/ARMAsmPrinter.cpp
843

Tiny niggle, but if this is going to be emitted first, why put this line here rather than at the beginning?

chatur01 updated this object.
chatur01 edited the test plan for this revision. (Show Details)

Thanks very much for reviewing Tim, your suggestion to modify the LessTag predicate cleaned this patch up a lot!

Hi Charlie,

Thanks for updating the patch. This looks fine to me.

Tim.

Thanks Tim, committed r225166.

Kind regards,
Charlie.