[all-commits] [llvm/llvm-project] bf6421: [AIX] Add dummy XCOFF MCAsmParserExtension

jsji via All-commits all-commits at lists.llvm.org
Fri Jul 2 09:12:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf64210fd88f4f3fe920376861b418be1834add6
      https://github.com/llvm/llvm-project/commit/bf64210fd88f4f3fe920376861b418be1834add6
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2021-07-02 (Fri, 02 Jul 2021)

  Changed paths:
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/lib/MC/MCParser/CMakeLists.txt
    A llvm/lib/MC/MCParser/XCOFFAsmParser.cpp
    A llvm/test/MC/XCOFF/inlineasm.s
    A llvm/test/MC/XCOFF/lit.local.cfg

  Log Message:
  -----------
  [AIX] Add dummy XCOFF MCAsmParserExtension

Implement XCOFFMCAsmParser so that we can use MC to parse inline asm.

The directives and storage mapping classes will be added later
iteratively.

Reviewed By: xgupta

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


  Commit: 03e9dcfd41d461633536690d1cc281e5f7300a3e
      https://github.com/llvm/llvm-project/commit/03e9dcfd41d461633536690d1cc281e5f7300a3e
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2021-07-02 (Fri, 02 Jul 2021)

  Changed paths:
    M llvm/include/llvm/MC/MCAsmInfo.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
    M llvm/lib/CodeGen/LLVMTargetMachine.cpp
    M llvm/lib/MC/MCAsmInfo.cpp
    M llvm/lib/MC/MCAsmInfoXCOFF.cpp
    A llvm/test/CodeGen/PowerPC/inline-asm-label.ll
    M llvm/test/CodeGen/PowerPC/inline-asm-physical-fpr.ll

  Log Message:
  -----------
  [AIX] Use AsmParser to do inline asm parsing

Add a flag so that target can choose to use AsmParser for parsing inline asm.
And set the flag by default for AIX.

-no-intergrated-as will override this default if specified explicitly.

Reviewed By: #powerpc, shchenz

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


Compare: https://github.com/llvm/llvm-project/compare/78309ebef4a3...03e9dcfd41d4


More information about the All-commits mailing list