r239925 - Update comments on HLE, RTM, and ADX support for intrinsics.
Eric Christopher
echristo at gmail.com
Wed Jun 17 11:42:04 PDT 2015
Author: echristo
Date: Wed Jun 17 13:42:03 2015
New Revision: 239925
URL: http://llvm.org/viewvc/llvm-project?rev=239925&view=rev
Log:
Update comments on HLE, RTM, and ADX support for intrinsics.
Modified:
cfe/trunk/lib/Headers/immintrin.h
Modified: cfe/trunk/lib/Headers/immintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/immintrin.h?rev=239925&r1=239924&r2=239925&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/immintrin.h (original)
+++ cfe/trunk/lib/Headers/immintrin.h Wed Jun 17 13:42:03 2015
@@ -136,7 +136,10 @@ _writegsbase_u64(unsigned long long __V)
#include <rtmintrin.h>
-/* FIXME: check __HLE__ as well when HLE is supported. */
+/* xtest returns non-zero if the instruction is executed within an RTM or active
+ * HLE region. */
+/* FIXME: This can be an either or for RTM/HLE. Deal with this when HLE is
+ * supported. */
static __inline__ int __attribute__((__always_inline__, __nodebug__, __target__("rtm")))
_xtest(void)
{
@@ -145,8 +148,8 @@ _xtest(void)
#include <shaintrin.h>
-/* Some intrinsics inside adxintrin.h are available only if __ADX__ defined,
- * whereas others are also available if __ADX__ undefined */
+/* Some intrinsics inside adxintrin.h are available only on processors with ADX,
+ * whereas others are also available at all times. */
#include <adxintrin.h>
#endif /* __IMMINTRIN_H */
More information about the cfe-commits
mailing list