[PATCH] D113707: [clang] Make -masm=intel affect inline asm style
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 12 12:56:57 PST 2021
rnk added a comment.
One alternative would be to control this setting with a pragma stack, like we do for warnings, struct packing, etc. Something like:
// foo.h
#pragma clang asm_dialect push "att"
static inline ... foo { asm("..."); }
#pragma clang asm_dialect pop
The pragma really would just control the dialect on the inline asm blob, not the output assembly.
It seems more user friendly since they don't have to write two variants of their inline asm, but it is new and not compatible with any existing code.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113707/new/
https://reviews.llvm.org/D113707
More information about the cfe-commits
mailing list