This is an archive of the discontinued LLVM Phabricator instance.

[AsmParser][SystemZ][z/OS] Reject "Dot" as current PC on z/OS
ClosedPublic

Authored by anirudhp on Apr 21 2021, 10:13 AM.

Details

Summary
  • Currently, the "." (Dot) character, when not identifying an Identifier or a Constant, refers to the current PC (Program Counter)
  • However, in z/OS, for the HLASM dialect, it strictly accepts only the "*" as the current PC (Support for this will be put up in a follow-up patch)
  • The changes in this patch allow individual platforms to choose whether they would like to use the "." (Dot) character as a marker for the current PC or not.
  • It is achieved by introducing a new field in MCAsmInfo.h called DotIsPC (similar to DollarIsPC)

Diff Detail

Event Timeline

anirudhp created this revision.Apr 21 2021, 10:13 AM
anirudhp requested review of this revision.Apr 21 2021, 10:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2021, 10:13 AM
anirudhp updated this revision to Diff 339655.Apr 22 2021, 8:27 AM
  • Rebase on latest master
jordan_rose resigned from this revision.Apr 22 2021, 10:38 AM
Kai added inline comments.Apr 22 2021, 12:05 PM
llvm/include/llvm/MC/MCAsmInfo.h
122

Comment is in contradiction with code below.

anirudhp updated this revision to Diff 339750.Apr 22 2021, 12:10 PM
  • Fixed misleading comment.
anirudhp marked an inline comment as done.Apr 22 2021, 12:10 PM
This revision is now accepted and ready to land.Apr 23 2021, 6:17 AM