This is an archive of the discontinued LLVM Phabricator instance.

[SPARC][IAS] Add named V9 ASI tag constants for memory instructions
ClosedPublic

Authored by koakuma on Aug 6 2023, 7:18 AM.

Details

Summary

This adds named ASI tag constants (such as #ASI_P and #ASI_P_L) for memory accesses.

This patch adds 64-bit/V9 tag names, given that currently the majority of SPARC software targets that arch.
Support for 32-bit/V8 tag names will be added in a future patch.

Depends on D157234

Diff Detail

Event Timeline

koakuma created this revision.Aug 6 2023, 7:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2023, 7:18 AM
koakuma requested review of this revision.Aug 6 2023, 7:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2023, 7:18 AM
koakuma updated this revision to Diff 549699.Aug 13 2023, 6:16 AM
koakuma retitled this revision from [SPARC][IAS] Add named ASI tag constants for memory instructions to [SPARC][IAS] Add named V9 ASI tag constants for memory instructions.
koakuma edited the summary of this revision. (Show Details)

Clarify error messages and make the tags available for V9 only (V8 has a different set of named tags).

Please add assembler / disassembler tests for all tag numbers and [alternative] names. It may make sense to put them into separate file.

koakuma updated this revision to Diff 555547.Sep 1 2023, 7:47 PM

Add tests for all the V9 named tags.

This revision is now accepted and ready to land.Sep 1 2023, 8:19 PM
This revision was landed with ongoing or failed builds.Sep 5 2023, 2:01 AM
This revision was automatically updated to reflect the committed changes.