Skip to content

Commit

Permalink
[SYCL-PTX] Fix geometric and common builtin categories (#1832)
Browse files Browse the repository at this point in the history
Remove old forward declared SPIR-V builtin from the geometric and common categories.
Update the binding file using the header generator.
Add relevant binding test.
Remove XFAIL from related SYCL tests.

Signed-off-by: Victor Lomuller <[email protected]>
Co-authored-by: David Wood <[email protected]>
  • Loading branch information
Naghasan and davidtwco authored Jun 25, 2020
1 parent f998e6b commit d9bad0b
Show file tree
Hide file tree
Showing 85 changed files with 3,210 additions and 535 deletions.
4 changes: 2 additions & 2 deletions libclc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ install( DIRECTORY generic/include/clc DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )

if( ENABLE_RUNTIME_SUBNORMAL )
add_library( subnormal_use_default STATIC
generic/lib/subnormal_use_default.ll )
generic/libspirv/subnormal_use_default.ll )
add_library( subnormal_disable STATIC
generic/lib/subnormal_disable.ll )
generic/libspirv/subnormal_disable.ll )
install( TARGETS subnormal_use_default subnormal_disable ARCHIVE
DESTINATION ${CMAKE_INSTALL_DATADIR}/clc )
endif()
Expand Down
8 changes: 8 additions & 0 deletions libclc/generic/include/clc/geometric/floatn.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#define __CLC_FLOAT float
#define __CLC_FPSIZE 32

Expand Down
10 changes: 0 additions & 10 deletions libclc/generic/include/spirv/common/mix.h

This file was deleted.

13 changes: 0 additions & 13 deletions libclc/generic/include/spirv/common/mix.inc

This file was deleted.

11 changes: 0 additions & 11 deletions libclc/generic/include/spirv/common/radians.h

This file was deleted.

13 changes: 0 additions & 13 deletions libclc/generic/include/spirv/common/sign.h

This file was deleted.

11 changes: 0 additions & 11 deletions libclc/generic/include/spirv/common/smoothstep.h

This file was deleted.

14 changes: 0 additions & 14 deletions libclc/generic/include/spirv/common/smoothstep.inc

This file was deleted.

11 changes: 0 additions & 11 deletions libclc/generic/include/spirv/common/step.h

This file was deleted.

14 changes: 0 additions & 14 deletions libclc/generic/include/spirv/common/step.inc

This file was deleted.

15 changes: 0 additions & 15 deletions libclc/generic/include/spirv/geometric/cross.h

This file was deleted.

10 changes: 0 additions & 10 deletions libclc/generic/include/spirv/geometric/distance.h

This file was deleted.

10 changes: 0 additions & 10 deletions libclc/generic/include/spirv/geometric/dot.h

This file was deleted.

9 changes: 0 additions & 9 deletions libclc/generic/include/spirv/geometric/dot.inc

This file was deleted.

12 changes: 0 additions & 12 deletions libclc/generic/include/spirv/geometric/fast_length.h

This file was deleted.

9 changes: 0 additions & 9 deletions libclc/generic/include/spirv/geometric/fast_length.inc

This file was deleted.

12 changes: 0 additions & 12 deletions libclc/generic/include/spirv/geometric/fast_normalize.h

This file was deleted.

9 changes: 0 additions & 9 deletions libclc/generic/include/spirv/geometric/fast_normalize.inc

This file was deleted.

95 changes: 0 additions & 95 deletions libclc/generic/include/spirv/geometric/floatn.inc

This file was deleted.

10 changes: 0 additions & 10 deletions libclc/generic/include/spirv/geometric/length.h

This file was deleted.

9 changes: 0 additions & 9 deletions libclc/generic/include/spirv/geometric/length.inc

This file was deleted.

10 changes: 0 additions & 10 deletions libclc/generic/include/spirv/geometric/normalize.h

This file was deleted.

9 changes: 0 additions & 9 deletions libclc/generic/include/spirv/geometric/normalize.inc

This file was deleted.

15 changes: 0 additions & 15 deletions libclc/generic/include/spirv/math/copysign.h

This file was deleted.

15 changes: 0 additions & 15 deletions libclc/generic/include/spirv/math/half_rsqrt.h

This file was deleted.

Loading

0 comments on commit d9bad0b

Please sign in to comment.