[PATCH] D120887: The [2/2] Fix mangle problem when variable used in inline asm (non-rip for ARR[BaseReg+IndexReg+..])

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 02:48:17 PST 2022


xiangzhangllvm updated this revision to Diff 414049.
xiangzhangllvm added a comment.

Generate IR for Mem symbol + IntelExpr in inline asm

Still need to fix PIC problem.
The mem ARR in asm(ARR[...]) can not transfer to PC-related style in PIC model.
Because the Parser and Printer will both share inline-asm Parser which can not handle "[ARR-BaseSymbol][...]".


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120887/new/

https://reviews.llvm.org/D120887

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120887.414049.patch
Type: text/x-patch
Size: 8510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220309/29992ef8/attachment.bin>


More information about the llvm-commits mailing list