diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2016-02-09 22:17:46 +0000 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2016-02-09 22:17:46 +0000 |
commit | 46b7dd99e062cf44f0e56a91402c9ba4f76c7707 (patch) | |
tree | 2a553d1ee1f9b08fde745b4bafc2e435e1424acf | |
parent | 4f38142feb90e3ea08372311854d952b9126f116 (diff) | |
download | llvm-46b7dd99e062cf44f0e56a91402c9ba4f76c7707.tar.gz |
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@rutgers.edu>
llvm-svn: 260303
-rwxr-xr-x | libclc/configure.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libclc/configure.py b/libclc/configure.py index b47951e93ac9..8b005ad17b57 100755 --- a/libclc/configure.py +++ b/libclc/configure.py @@ -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' : [], |