[PATCH] D103320: [AsmParser][SystemZ][z/OS] Introducing HLASM Parser support to AsmParser - Part 2
Anirudh Prasad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 28 08:05:46 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.
- This patch is the second (and hopefully final) part of providing HLASM syntax for inline asm statements for z/OS to LLVM (continuing on from https://reviews.llvm.org/D98276)
- This second part deals with providing label support
- As mentioned in https://reviews.llvm.org/D98276, if the first token is not a space we process the first token as a label, and the remaining tokens as a possible machine instruction
- To achieve this, a new `parseAsHLASMLabel` function is introduced. This function processes the first token, validates whether it is an "acceptable" label according to HLASM standards, and then emits it
- After handling and emitting the label, call the `parseAsMachineInstruction` instruction to process the remaining tokens as a machine instruction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103320
Files:
llvm/lib/MC/MCParser/AsmParser.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103320.348527.patch
Type: text/x-patch
Size: 5611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210528/7c2d5813/attachment.bin>
More information about the llvm-commits
mailing list