[PATCH] D103111: [SystemZ][z/OS] Enable the AllowAtInName attribute for the HLASM dialect
Anirudh Prasad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 25 13:15:09 PDT 2021
anirudhp created this revision.
Herald added a subscriber: hiraditya.
anirudhp requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
- Currently, LLVM supports symbols of the name "token1 at token2".
- "token2" is used to identify whether an appropriate symbol reference can be used for the symbol.
- Now, if the symbol reference couldn't be found, the AsmParser usually emits an error, unless the backend is configured to accept the "@" in a symbol name
- Thus, this patch aims to do that. It sets the `AllowAtInName` attribute in the SystemZ backend for the HLASM dialect.
- Setting this attribute ensures that, if a particular symbol reference is found, it uses that. If it doesn't, and there exists an "@" in the symbol name, it will use that instead of explicitly erroring out.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103111
Files:
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
Index: llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
===================================================================
--- llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
+++ llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
@@ -30,6 +30,7 @@
DotIsPC = (AssemblerDialect == AD_ATT);
StarIsPC = (AssemblerDialect == AD_HLASM);
EmitGNUAsmStartIndentationMarker = (AssemblerDialect == AD_ATT);
+ AllowAtInName = (AssemblerDialect == AD_HLASM);
ZeroDirective = "\t.space\t";
Data64bitsDirective = "\t.quad\t";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103111.347766.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210525/653e83e3/attachment.bin>
More information about the llvm-commits
mailing list