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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to