This is an archive of the discontinued LLVM Phabricator instance.

[AsmParser][SystemZ][z/OS] Support for emitting labels in upper case
ClosedPublic

Authored by anirudhp on Jun 22 2021, 7:49 AM.

Details

Summary
  • Currently, the emitting of labels in the parsePrimaryExpr function is case independent. It just takes the identifier and emits it.
  • However, for HLASM the emitting of labels is case independent. We are emitting them in the upper case only, to enforce case independency. So we need to ensure that at the time of parsing the label we are emitting the upper case (in parseAsHLASMLabel), but also, when we are processing a PC-relative relocatable expression, we need to ensure we emit it in upper case (in parsePrimaryExpr)
  • To achieve this a new MCAsmInfo attribute has been introduced which corresponding targets can override if needed.

Diff Detail