[all-commits] [llvm/llvm-project] e52007: [SystemZ][z/OS] Stricter condition for HLASM class...

Anirudh Prasad via All-commits all-commits at lists.llvm.org
Tue Jun 1 12:57:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e52007cac4faf07ad2776136015fcbfc076ddd84
      https://github.com/llvm/llvm-project/commit/e52007cac4faf07ad2776136015fcbfc076ddd84
  Author: Anirudh Prasad <anirudh_prasad at hotmail.com>
  Date:   2021-06-01 (Tue, 01 Jun 2021)

  Changed paths:
    M llvm/lib/MC/MCParser/AsmParser.cpp

  Log Message:
  -----------
  [SystemZ][z/OS] Stricter condition for HLASM class instantiation

- A lot of lit tests simply specify the arch minus the triple. On z/OS, this could result in a scenario of some-other-triple-unknown-ibm-zos. This points to an incorrect triple + arch combo.
- To prevent this, isOSzOS change is switched in favour of isOSBinFormatGOFF.
- This is because, the GOFF format is set only if the triple is systemz and if the operating system is GOFF. And currently, there are no other architectures/os's using the GOFF file format.
- An argument could be made that the problematic tests be fixed to explicitly specify the arch-vendor-triple string, but there's a large number of these tests, and adding this stricter scope ensures that we aren't instantiating the incorrect instance of the AsmParser for other platforms when run on z/OS.

Reviewed By: uweigand

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




More information about the All-commits mailing list