[LLVMdev] RFC: Adding __INTEGRATED_ASSEMLER__ macro

Saleem Abdulrasool compnerd at compnerd.org
Sun Feb 23 16:11:07 PST 2014


This seems to be a slightly contentious suggestion, so it seems fitting to
bring it up on cfe-dev.

Given that -fintegrated-as and -fno-integrated-as are available to the
user, and that the integrated assembler can be a bit stringent (as compared
to GAS at least, which, for example, supports deprecated syntax), it might
be nice to permit the user to detect that an integrated assembler is in use.

The flag is intentionally generic so that if another compiler were to
implement an integrated assembler, the same flag could be used.  The
variant could be detected similar to how the compiler is detected (e.g.
defined(__clang__) && defined(__INTEGRATED_ASSEMBLER__) would indicate the
LLVM IAS).

This would allow for also checking the version of the assembler which is
currently not possible.  Doing would enable using newer features of the
assembler over time, while not breaking compatibility will slightly older
toolchains.

-- 
Saleem Abdulrasool
compnerd (at) compnerd (dot) org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140223/f2f1faf0/attachment.html>


More information about the llvm-dev mailing list