summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/module.modulemap
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2015-07-30 14:10:43 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2015-07-30 14:10:43 +0000
commitca25643a05d3d85ef9f0f2f931b30fd83e2c21a6 (patch)
treebdb44019cabb3c4920fb6458f0e49c6a07e18cd6 /clang/lib/Headers/module.modulemap
parent3c5038a535c8a70a23ee8259efab875233732163 (diff)
downloadbcm5719-llvm-ca25643a05d3d85ef9f0f2f931b30fd83e2c21a6.tar.gz
bcm5719-llvm-ca25643a05d3d85ef9f0f2f931b30fd83e2c21a6.zip
[SystemZ] Add support for vecintrin.h vector built-in functions
This patch adds support for the System Z vector built-in functions. The API-defined header file has the name vecintrin.h. The user-level functions are defined in the same style as the clang version of altivec.h, making heavy use of the __overloadable__ and __always_inline__ attributes. Where possible the functions expand to generic operations rather than specific built-in functions, in the hope that that form can be optimised better. Where a built-in routine is specified to require an immediate integer argument, the __enable_if__ attribute is used to verify the argument is in fact constant and in the appropriate range. Based on a patch by Richard Sandiford. llvm-svn: 243643
Diffstat (limited to 'clang/lib/Headers/module.modulemap')
-rw-r--r--clang/lib/Headers/module.modulemap5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Headers/module.modulemap b/clang/lib/Headers/module.modulemap
index 0fc70a8c9b0..b147e891dce 100644
--- a/clang/lib/Headers/module.modulemap
+++ b/clang/lib/Headers/module.modulemap
@@ -158,6 +158,11 @@ module _Builtin_intrinsics [system] [extern_c] {
header "htmintrin.h"
header "htmxlintrin.h"
}
+
+ explicit module zvector {
+ requires zvector, vx
+ header "vecintrin.h"
+ }
}
}
OpenPOWER on IntegriCloud