[libclc] r260303 - configure: Remove cl_khr_fp64 for device that don't support doubles
Jan Vesely via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 9 14:17:47 PST 2016
Author: jvesely
Date: Tue Feb 9 16:17:46 2016
New Revision: 260303
URL: http://llvm.org/viewvc/llvm-project?rev=260303&view=rev
Log:
configure: Remove cl_khr_fp64 for device that don't support doubles
Also remove definitions if provided by clang (3.7+)
This halves the size of builtin.opt.{cedar,barts}.bc
reviewer: tstellard
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Modified:
libclc/trunk/configure.py
Modified: libclc/trunk/configure.py
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/configure.py?rev=260303&r1=260302&r2=260303&view=diff
==============================================================================
--- libclc/trunk/configure.py (original)
+++ libclc/trunk/configure.py Tue Feb 9 16:17:46 2016
@@ -92,16 +92,16 @@ if not cxx_compiler:
available_targets = {
'r600--' : { 'devices' :
[{'gpu' : 'cedar', 'aliases' : ['palm', 'sumo', 'sumo2', 'redwood', 'juniper'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}},
+ 'defines' : {}},
{'gpu' : 'cypress', 'aliases' : ['hemlock'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}},
+ 'defines' : {'LLVM3.6':['cl_khr_fp64']}},
{'gpu' : 'barts', 'aliases' : ['turks', 'caicos'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}},
+ 'defines' : {}},
{'gpu' : 'cayman', 'aliases' : ['aruba'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}} ]},
+ 'defines' : {'LLVM3.6':['cl_khr_fp64']}} ]},
'amdgcn--': { 'devices' :
[{'gpu' : 'tahiti', 'aliases' : ['pitcairn', 'verde', 'oland', 'hainan', 'bonaire', 'kabini', 'kaveri', 'hawaii','mullins','tonga','carrizo','iceland','fiji','stoney'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}} ]},
+ 'defines' : {'LLVM3.6':['cl_khr_fp64']}} ]},
'nvptx--' : { 'devices' : [{'gpu' : '', 'aliases' : [],
'defines' : {'all' : ['cl_khr_fp64']}}]},
'nvptx64--' : { 'devices' : [{'gpu' : '', 'aliases' : [],
More information about the cfe-commits
mailing list