aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-11-15 15:27:42 -0500
committerNico Weber <thakis@chromium.org>2021-11-17 13:31:59 -0500
commitbf834b26292e58d86bc289a3eb0c736c400e600a (patch)
tree4e5bc0107f2a14c7bb6ea32da5e99284356b396b /clang/lib/Frontend/CompilerInvocation.cpp
parent0274be28d7f8266e441a45adc1a208fc0ca04dd4 (diff)
downloadllvm-bf834b26292e58d86bc289a3eb0c736c400e600a.zip
llvm-bf834b26292e58d86bc289a3eb0c736c400e600a.tar.gz
llvm-bf834b26292e58d86bc289a3eb0c736c400e600a.tar.bz2
[x86/asm] Let EmitMSInlineAsmStr() handle variants too
This is preparation for D113707, where I want to make `-masm=intel` emit `asm inteldialect` instructions. `{movq %rbx, %rax|mov rax, rbx}` is supposed to evaluate to the bit between { and | for att and to the bit between | and } for intel. Since intel will become `asm inteldialect`, which alls EmitMSInlineAsmStr(), EmitMSInlineAsmStr() has to support variants as well. (clang translates `{...|...}` to `$(...$|...$)`. I'm not sure why it doesn't just send along only the first `...` or the second `...` to LLVM, but given the notes in PR23933 let's not do a big reorganization in this codepath.) Differential Revision: https://reviews.llvm.org/D113932
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions