diff options
author | Shengchen Kan <shengchen.kan@intel.com> | 2021-11-03 16:52:55 +0800 |
---|---|---|
committer | Shengchen Kan <shengchen.kan@intel.com> | 2021-11-05 09:11:41 +0800 |
commit | be08e452f36602cd73f816787bf16d1a0405ff09 (patch) | |
tree | b2b3d45d6462ab0113ebbbc59737093057adf032 /llvm/lib/IR/Module.cpp | |
parent | 0bce3e3b843f205e085b635c0e1ebc28c5c6d708 (diff) | |
download | llvm-be08e452f36602cd73f816787bf16d1a0405ff09.zip llvm-be08e452f36602cd73f816787bf16d1a0405ff09.tar.gz llvm-be08e452f36602cd73f816787bf16d1a0405ff09.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions