diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-02-13 01:01:59 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-02-13 01:01:59 +0000 |
commit | a48e15c6cbfac45df26f778402e4a972a7199fbe (patch) | |
tree | e1027cdf6bf978147065c8b9c2a0c42f829ebfd8 /libclc/configure.py | |
parent | 0a5e166a0ba60dff9f004f6721c5476f29386169 (diff) | |
download | bcm5719-llvm-a48e15c6cbfac45df26f778402e4a972a7199fbe.tar.gz bcm5719-llvm-a48e15c6cbfac45df26f778402e4a972a7199fbe.zip |
Split sources for amdgcn and r600
Most files remain in a common amdgpu directory.
Also switches barriers to to use convergent,
and use llvm.amdgcn.s.barrier.
This now requires 3.9/trunk to build amdgcn.
llvm-svn: 260777
Diffstat (limited to 'libclc/configure.py')
-rwxr-xr-x | libclc/configure.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libclc/configure.py b/libclc/configure.py index d591ef8251b..2663212a3cf 100755 --- a/libclc/configure.py +++ b/libclc/configure.py @@ -69,8 +69,8 @@ llvm_version = string.split(string.replace(llvm_config(['--version']), 'svn', '' 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" +if llvm_int_version < 390: + print "libclc requires LLVM >= 3.9" sys.exit(1) llvm_system_libs = llvm_config(['--system-libs']) @@ -175,8 +175,8 @@ for target in targets: subdirs.append("%s-%s-%s" % (arch, t_vendor, t_os)) subdirs.append("%s-%s" % (arch, t_os)) subdirs.append(arch) - if arch == 'amdgcn': - subdirs.append('r600') + if arch == 'amdgcn' or arch == 'r600': + subdirs.append('amdgpu') incdirs = filter(os.path.isdir, [os.path.join(srcdir, subdir, 'include') for subdir in subdirs]) |