From 3a5a26a28d5f7158940209a418f1df30368b9584 Mon Sep 17 00:00:00 2001
From: Elena Demikhovsky <elena.demikhovsky@intel.com>
Date: Tue, 22 Jul 2014 12:08:25 +0000
Subject: [PATCH] AVX-512: I added new headers to makefiles. It should resolve
 tests fail. If it will not, I'm reverting the both commits.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213645 91177308-0d34-0410-b5e6-96231b3b80d8
---
 lib/Headers/CMakeLists.txt   |  2 ++
 lib/Headers/module.modulemap | 11 +++++++++++
 2 files changed, 13 insertions(+)

diff --git a/lib/Headers/CMakeLists.txt b/lib/Headers/CMakeLists.txt
index edee7d76425..5b3b49f9ad8 100644
--- a/lib/Headers/CMakeLists.txt
+++ b/lib/Headers/CMakeLists.txt
@@ -4,6 +4,8 @@ set(files
   arm_acle.h
   avxintrin.h
   avx2intrin.h
+  avx512fintrin.h
+  avx512erintrin.h
   bmiintrin.h
   bmi2intrin.h
   emmintrin.h
diff --git a/lib/Headers/module.modulemap b/lib/Headers/module.modulemap
index 9f7944dedbb..64b28892975 100644
--- a/lib/Headers/module.modulemap
+++ b/lib/Headers/module.modulemap
@@ -96,6 +96,17 @@ module _Builtin_intrinsics [system] {
       header "avx2intrin.h"
     }
 
+    explicit module avx512f {
+      requires avx512f
+      export avx2
+      header "avx512fintrin.h"
+    }
+
+    explicit module avx512er {
+      requires avx512er
+      header "avx512erintrin.h"
+    }
+
     explicit module bmi {
       requires bmi
       header "bmiintrin.h"
-- 
GitLab