[clang] [llvm] [clang] Add cc1 --output-asm-variant= to set output syntax (PR #109360)
LIU Hao via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 24 10:50:49 PDT 2024
================
@@ -7209,6 +7209,9 @@ def fuse_ctor_homing: Flag<["-"], "fuse-ctor-homing">,
def as_secure_log_file : Separate<["-"], "as-secure-log-file">,
HelpText<"Emit .secure_log_unique directives to this filename.">,
MarshallingInfoString<CodeGenOpts<"AsSecureLogFile">>;
+def output_asm_variant : Joined<["--"], "output-asm-variant=">,
+ HelpText<"Select the asm variant (integer) to use for output">,
----------------
lhmouse wrote:
For a GNU inline asm statement, it's possible to specify multiple dialects, like in
```
__asm__ ("{ movl $1, %eax | mov eax, 1 }");
```
so index zero is AT&T and index one is Intel, hard-coded in source code like that.
A numeric argument is probably not too bad if it matches another tool.
https://github.com/llvm/llvm-project/pull/109360
More information about the cfe-commits
mailing list