[all-commits] [llvm/llvm-project] 6ddd8c: [AsmParser][SystemZ][z/OS] Add support to AsmLexer...

Anirudh Prasad via All-commits all-commits at lists.llvm.org
Tue Apr 13 12:29:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ddd8c28b787b50a37df84890563d46dbfc3a81c
      https://github.com/llvm/llvm-project/commit/6ddd8c28b787b50a37df84890563d46dbfc3a81c
  Author: Anirudh Prasad <anirudh_prasad at hotmail.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M llvm/include/llvm/MC/MCParser/MCAsmLexer.h
    M llvm/lib/MC/MCParser/AsmLexer.cpp
    M llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp

  Log Message:
  -----------
  [AsmParser][SystemZ][z/OS] Add support to AsmLexer to accept HLASM style integers

- Add support for HLASM style integers. These are the decimal integers [0-9].
- HLASM does not support the additional prefixed integers like, `0b`, `0x`, octal integers and Masm style integers.
- To achieve this, a field `LexHLASMStyleIntegers` (similar to the `LexMasmStyleIntegers` field) is introduced in `MCAsmLexer.h` as well as a corresponding setter.

Note: This field could also go into MCAsmInfo.h. I used the previous precedent set by the `LexMasmIntegers` field.

Depends on https://reviews.llvm.org/D99286

Reviewed By: epastor

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




More information about the All-commits mailing list