[SystemZ][z/OS] Introduce initial support for GOFF asm parser
authorAnirudh Prasad <anirudh_prasad@hotmail.com>
Fri, 1 Oct 2021 14:29:02 +0000 (10:29 -0400)
committerAnirudh Prasad <anirudh_prasad@hotmail.com>
Fri, 1 Oct 2021 14:29:14 +0000 (10:29 -0400)
commitfb99424a6f65b5a68902a59e0b84d72607f8884d
treeecec0cea700f9f8eb7b50bfb98833609b4f13e0b
parent2372249d8689928a8d4a59baed3671613743653a
[SystemZ][z/OS] Introduce initial support for GOFF asm parser

- Introduce a skeleton outline for the GOFFAsmParser
- Before instantiating AsmParser/HLASMAsmParser, target specific asm parsers are attempted to be initialized first before proceeding. If it doesn't exist for a particular file type, we report a fatal error.
- This patch allows to properly instantiate the HLASMAsmParser on z/OS, and ensures we can write lit tests and unit tests which will involve the instantiation of asm parsers, without an assert / fatal error.

Reviewed By: uweigand, Kai

Differential Revision: https://reviews.llvm.org/D110730
llvm/lib/MC/MCParser/AsmParser.cpp
llvm/lib/MC/MCParser/CMakeLists.txt
llvm/lib/MC/MCParser/GOFFAsmParser.cpp [new file with mode: 0644]
llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp