[all-commits] [llvm/llvm-project] 8a6b64: [Inline asm] Fix mangle problem when variable used...

xiangzh1 via All-commits all-commits at lists.llvm.org
Wed Mar 23 18:41:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a6b644c79234a276fbdc840f7091d490a8cc0d7
      https://github.com/llvm/llvm-project/commit/8a6b644c79234a276fbdc840f7091d490a8cc0d7
  Author: Xiang1 Zhang <xiang1.zhang at intel.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M clang/test/CodeGen/X86/ms_fmul.c
    M clang/test/CodeGen/ms-inline-asm-static-variable.c
    M clang/test/CodeGen/ms-inline-asm-variables.c
    M llvm/include/llvm/MC/MCParser/MCParsedAsmOperand.h
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86Operand.h
    M llvm/test/CodeGen/X86/ms-inline-asm-array.ll

  Log Message:
  -----------
  [Inline asm] Fix mangle problem when variable used in inline asm.
(Connect InlineAsm Memory Operand with its real value not just name)
Revert 2 history bugfix patch:

Revert "[X86][MS-InlineAsm] Make the constraint *m to be simple place holder"
This patch revert https://reviews.llvm.org/D115225 which mainly
fix problems intrduced by https://reviews.llvm.org/D113096

This reverts commit d7c07f60b35f901f5bd9153b11807124a9bdde60.

Revert "Reland "[X86][MS-InlineAsm] Use exact conditions to recognize MS global variables""
This patch revert https://reviews.llvm.org/D116090 which fix problem
intrduced by https://reviews.llvm.org/D115225

This reverts commit 24c68ea1eb4fc0d0e782424ddb02da9e8c53ddf5.

Reviewed By: skan

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


  Commit: 287dad13abba934db5f4a62a968263eea2693b4f
      https://github.com/llvm/llvm-project/commit/287dad13abba934db5f4a62a968263eea2693b4f
  Author: Xiang1 Zhang <xiang1.zhang at intel.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M clang/test/CodeGen/ms-inline-asm-variables.c
    M llvm/include/llvm/MC/MCParser/MCParsedAsmOperand.h
    M llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86Operand.h

  Log Message:
  -----------
  [InlineAsm] Fix mangle problem when global variable used in inline asm
(Add modifier P for ARR[BaseReg+IndexReg+..])

Reviewed By: skan

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


  Commit: 95664050201dbe595d5749bf0212f3847e1d9403
      https://github.com/llvm/llvm-project/commit/95664050201dbe595d5749bf0212f3847e1d9403
  Author: Xiang1 Zhang <xiang1.zhang at intel.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/lib/Target/X86/X86AsmPrinter.cpp
    A llvm/test/CodeGen/X86/ms-inline-asm-variables-x64-1-reg.ll
    A llvm/test/CodeGen/X86/ms-inline-asm-variables-x64-2-regs.ll
    A llvm/test/CodeGen/X86/ms-inline-asm-variables-x64-nopic.ll
    A llvm/test/CodeGen/X86/ms-inline-asm-variables-x86-1-reg.ll
    A llvm/test/CodeGen/X86/ms-inline-asm-variables-x86-2-regs.ll

  Log Message:
  -----------
  [Inline asm] Fix mangle problem when variable used in inline asm.
(Correct 'Mem symbol + IntelExpr' output in PIC model)

Reviewed By: skan

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


Compare: https://github.com/llvm/llvm-project/compare/64902d335c21...95664050201d


More information about the All-commits mailing list