[PATCH] D21959: [X86] Add xgetbv xsetbv intrinsics

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 17 08:07:53 PDT 2016


rnk added a comment.

The source isn't that interesting, it includes intrin.h and immintrin.h before using _xgetbv.

I think the issue is that Nico added the _MSC_VER check to intrin.h in http://reviews.llvm.org/D20291:

#if !defined(_MSC_VER) || __has_feature(modules) || defined(__XSAVE__)
#include <xsaveintrin.h>
#endif

Nico is on vacation right now, but we might want to reconsider that. We really only need to block the AVX512 intrinsics which are unreasonably large.


Repository:
  rL LLVM

https://reviews.llvm.org/D21959





More information about the cfe-commits mailing list