]> granicus.if.org Git - clang/commitdiff
[SystemZ] Add header files to Makefile / module.modulemap
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 1 Apr 2015 14:15:35 +0000 (14:15 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 1 Apr 2015 14:15:35 +0000 (14:15 +0000)
This should fix build-bot failures after r233804.

The patch also adds a "systemz" feature, and renames the
"transactional-execution" feature to "htm", since it turns
out "-" is not a legal character in module feature names.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233807 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
lib/Headers/CMakeLists.txt
lib/Headers/module.modulemap

index 48a3a7c1cbf3707cf3558555b322d8fe3252fad7..96dda54edb92058c21da1601b84c3b42c3c2f768 100644 (file)
@@ -5487,7 +5487,8 @@ public:
 
   bool hasFeature(StringRef Feature) const override {
     return llvm::StringSwitch<bool>(Feature)
-        .Case("transactional-execution", HasTransactionalExecution)
+        .Case("systemz", true)
+        .Case("htm", HasTransactionalExecution)
         .Default(false);
   }
 };
index 080550f7c77ffe88c9f66f9785df78748dbe7c0e..54290925b10dcd9e998877b321b6e81039a5ddc5 100644 (file)
@@ -18,6 +18,8 @@ set(files
   float.h
   fma4intrin.h
   fmaintrin.h
+  htmintrin.h
+  htmxlintrin.h
   ia32intrin.h
   immintrin.h
   Intrin.h
@@ -34,6 +36,7 @@ set(files
   prfchwintrin.h
   rdseedintrin.h
   rtmintrin.h
+  s390intrin.h
   shaintrin.h
   smmintrin.h
   stdalign.h
index 062464ed2e53dce66580fd12d5bd44e81dcfa44a..bb2ca95212d81d519afc997898f46db7c7a823e8 100644 (file)
@@ -169,6 +169,19 @@ module _Builtin_intrinsics [system] [extern_c] {
       header "__wmmintrin_pclmul.h"
     }
   }
+
+  explicit module systemz {
+    requires systemz
+    export *
+
+    header "s390intrin.h"
+
+    explicit module htm {
+      requires htm
+      header "htmintrin.h"
+      header "htmxlintrin.h"
+    }
+  }
 }
 
 module _Builtin_stddef_max_align_t [system] [extern_c] {