[Libclc-dev] [PATCH] require LLVM >= 3.7 and bump version to 0.2.0
EdB
edb+libclc at sigluy.net
Wed Jul 29 07:25:44 PDT 2015
---
configure.py | 9 +++++----
generic/lib/LLVM3.6/subnormal_helper_func.ll | 8 --------
generic/lib/SOURCES_LLVM3.6 | 1 -
3 files changed, 5 insertions(+), 13 deletions(-)
delete mode 100644 generic/lib/LLVM3.6/subnormal_helper_func.ll
delete mode 100644 generic/lib/SOURCES_LLVM3.6
diff --git a/configure.py b/configure.py
index 1072ca8..f54f96b 100755
--- a/configure.py
+++ b/configure.py
@@ -66,12 +66,13 @@ def llvm_config(args):
sys.exit(1)
llvm_version = string.split(string.replace(llvm_config(['--version']), 'svn', ''), '.')
-if (int(llvm_version[0]) != 3 and int(llvm_version[1]) != 6):
- print "libclc requires LLVM 3.6"
- sys.exit(1)
-
+llvm_int_version = int(llvm_version[0]) * 100 + int(llvm_version[1]) * 10
llvm_string_version = 'LLVM' + llvm_version[0] + '.' + llvm_version[1]
+if llvm_int_version < 370:
+ print "libclc requires LLVM >= 3.7"
+ sys.exit(1)
+
llvm_system_libs = llvm_config(['--system-libs'])
llvm_bindir = llvm_config(['--bindir'])
llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' ' + \
diff --git a/generic/lib/LLVM3.6/subnormal_helper_func.ll b/generic/lib/LLVM3.6/subnormal_helper_func.ll
deleted file mode 100644
index 0e9764b..0000000
--- a/generic/lib/LLVM3.6/subnormal_helper_func.ll
+++ /dev/null
@@ -1,8 +0,0 @@
- at __CLC_SUBNORMAL_DISABLE = external global i1
-
-define i1 @__clc_subnormals_disabled() #0 {
- %disable = load i1* @__CLC_SUBNORMAL_DISABLE
- ret i1 %disable
-}
-
-attributes #0 = { alwaysinline }
diff --git a/generic/lib/SOURCES_LLVM3.6 b/generic/lib/SOURCES_LLVM3.6
deleted file mode 100644
index ee09f01..0000000
--- a/generic/lib/SOURCES_LLVM3.6
+++ /dev/null
@@ -1 +0,0 @@
-subnormal_helper_func.ll
--
2.5.0.rc2
More information about the Libclc-dev
mailing list