Skip to content

Commit ca6fe58

Browse files
wsmosesZuseZ4vchuravy
authored
Sample Tablegen for non-memory math-like, non-calling code (rust-lang#608)
* Investigate memory error from lstm * Initial tablegen * More tblgen * cmake * Add first call emission * Working atan2 rev * Handle calls to self * Add same type func * Fix lower LLVM build * Remove prints * Cleanup tablegen * Cleanup * LLVM-14 support * fix formating * fix llvm-9/10 build * fix llvm-7/8 build * fix llvm7-10 test failures * test Julia cmake fix * add missing tg dependency * fix cmake for older versions Co-authored-by: Manuel Drehwald <[email protected]> Co-authored-by: Valentin Churavy <[email protected]>
1 parent 8e87377 commit ca6fe58

File tree

18 files changed

+752
-612
lines changed

18 files changed

+752
-612
lines changed

enzyme/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb -fno-omit-frame-pointer")
2323
set(CMAKE_CXX_STANDARD 17)
2424
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2525

26+
if(${CMAKE_VERSION} VERSION_GREATER "3.20.0")
27+
cmake_policy(SET CMP0116 OLD)
28+
endif()
2629

2730
option(ENZYME_CLANG "Build enzyme clang plugin" ON)
2831
option(ENZYME_EXTERNAL_SHARED_LIB "Build external shared library" OFF)
@@ -175,6 +178,7 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/include/SCEV/ScalarEvolutionExpander.h"
175178

176179
include_directories("${CMAKE_CURRENT_BINARY_DIR}/include")
177180

181+
add_subdirectory(tools)
178182
add_subdirectory(Enzyme)
179183
add_subdirectory(BCLoad)
180184
add_subdirectory(test)

0 commit comments

Comments
 (0)