The [1/3] Patch (Current Patch) revert 2 history commits:
[InlineAsm] Connect InlineAsm Memory Operand with its real value not just name 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.
Back Ground
I encounter serval problems about using Global Value (GV) in inline asm. ( both today and before)
I think it is may be a right time to discuss/fix it.
Simply speaking:
We encounter a mangle problem in inlineasm when it directly use Global Value's name.
D113096 once fix the mangle problem. But it cause some other problems.
D115225 and D116090 reverted the D113096 to fix the new fails.
But it didn't fix the mangle problem in inline asm.
So I create 2 patches to fix it.
One is current patch (only do revert). The other is D120887
More details and Back Ground please refer [2/3] Patch at D120887
The [3/3] Patch will mainly fix some PIC problem