[all-commits] [llvm/llvm-project] 1bc0e8: [SystemZ][z/OS] Enable the AllowAtInName attribute...

Anirudh Prasad via All-commits all-commits at lists.llvm.org
Wed May 26 07:50:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bc0e857bfd4d5a10675b5b75494c2ea6cff7c78
      https://github.com/llvm/llvm-project/commit/1bc0e857bfd4d5a10675b5b75494c2ea6cff7c78
  Author: Anirudh Prasad <anirudh_prasad at hotmail.com>
  Date:   2021-05-26 (Wed, 26 May 2021)

  Changed paths:
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp

  Log Message:
  -----------
  [SystemZ][z/OS] Enable the AllowAtInName attribute for the HLASM dialect

- 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.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D103111




More information about the All-commits mailing list