[all-commits] [llvm/llvm-project] be08e4: [X86][MS-InlineAsm] Add constraint *m for memory a...
KanRobert via All-commits
all-commits at lists.llvm.org
Thu Nov 4 18:11:55 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: be08e452f36602cd73f816787bf16d1a0405ff09
https://github.com/llvm/llvm-project/commit/be08e452f36602cd73f816787bf16d1a0405ff09
Author: Shengchen Kan <shengchen.kan at intel.com>
Date: 2021-11-05 (Fri, 05 Nov 2021)
Changed paths:
M clang/test/CodeGen/X86/ms_fmul.c
A clang/test/CodeGen/ms-inline-asm-static-variable.c
M clang/test/CodeGen/ms-inline-asm-variables.c
M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
A llvm/test/CodeGen/X86/ms-inline-asm-array.ll
Log Message:
-----------
[X86][MS-InlineAsm] Add constraint *m for memory access w/ global var
Constraint `*m` should be used when the address of a variable is passed
as a value. And the constraint is missing for MS inline assembly when sth
is written to the address of the variable.
The missing would cause FE delete the definition of the static varible,
and then result in "undefined reference to xxx" issue.
Reviewed By: xiangzhangllvm
Differential Revision: https://reviews.llvm.org/D113096
More information about the All-commits
mailing list