Skip to content

Commit

Permalink
Add clang++ mangling for simple-executor
Browse files Browse the repository at this point in the history
Also add it to the CI.
  • Loading branch information
keryell committed Feb 13, 2024
1 parent 180bd52 commit 33d7f20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function(declare_trisycl_test)
endif(DEFINED declare_trisycl_test_SOURCES)

# Needed because of sloppy file naming in multiple_compilation_units test
set_source_files_properties(${Files_SRCS} PROPERTIES LANGUAGE CXX )
set_source_files_properties(${Files_SRCS} PROPERTIES LANGUAGE CXX)

# Variable to hold ALL files to build and be visible in IDE
set(Files_BUILD ${Files_HDRS} ${Files_SRCS})
Expand Down Expand Up @@ -101,6 +101,7 @@ add_subdirectory(acap)
add_subdirectory(accessor)
add_subdirectory(address_spaces)
add_subdirectory(aie-axi-stream)
add_subdirectory(air)
add_subdirectory(array_partition)
add_subdirectory(buffer)
add_subdirectory(detail)
Expand Down
7 changes: 4 additions & 3 deletions tests/air/simple_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ template <auto x, auto y>
TRISYCL_WEAK_ATTRIB_PREFIX void TRISYCL_WEAK_ATTRIB_SUFFIX
air_tile(void* self, void (*out0_write)(void* self, unsigned int value)) {
/* By linking with some AIR code such as _Z8air_tileILi6ELi4EEvPvPFvS0_jE
for air_tile for X=6 and Y=4, this weak symbol will be replaced
by the provided function instead
*/
(g++) or _Z8air_tileITnDaLi6ETnDaLi4EEvPvPFvS0_jE (clang) for air_tile for
X=6 and Y=4, this weak symbol will be replaced by the provided function
instead.
*/
// To write some value to out 0 port
out0_write(self, 42);
}
Expand Down

0 comments on commit 33d7f20

Please sign in to comment.