This is an archive of the discontinued LLVM Phabricator instance.

[AsmParser][SystemZ][z/OS] Reject character and string literals for HLASM
ClosedPublic

Authored by anirudhp on Apr 30 2021, 1:18 PM.

Details

Summary
  • As per the HLASM support we are providing, i.e. support only for the first parameter of the inline asm block, only pertaining to Z machine instructions defined in LLVM, character literals and string literals are not supported (see Figure 4 - https://www-01.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R3sc264940/$file/asmr1023.pdf for more information)
  • This patch explicitly rejects the usage of char literals and string literals (for example "abc 'a'") when the relevant field is set
  • This is achieved by introducing a field called LexHLASMStrings in MCAsmLexer similar to LexMasmStrings

Diff Detail