Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
llvm: ["15", "16", "17", "18", "19", "20"]
llvm: ["15", "16", "17", "18", "19", "20", "21"]
build: ["Release"] # "RelWithDebInfo"
os: [ubuntu-22.04]

Expand Down
6 changes: 5 additions & 1 deletion enzyme/BCLoad/BCLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ bool provideDefinitions(Module &M, std::set<std::string> ignoreFunctions,
}
toReplace.push_back(name.str());
}
BC->setTargetTriple("");
#if LLVM_VERSION_MAJOR >= 21
BC->setTargetTriple(llvm::Triple(""));
#else
BC->setTargetTriple("");
#endif
Linker L(M);
L.linkInModule(std::move(BC));
for (auto name : toReplace) {
Expand Down
5 changes: 4 additions & 1 deletion enzyme/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

option(ENZYME_ENABLE_PLUGINS "Enable Clang/LLD/Opt plugins" ON)
option(ENZYME_BC_LOADER "Enable bitcode loader" ON)
option(ENZYME_CLANG "Build enzyme clang plugin" ON)
option(ENZYME_FLANG "Build enzyme flang symlink" OFF)
option(ENZYME_MLIR "Build enzyme mlir plugin" OFF)
Expand Down Expand Up @@ -286,7 +287,9 @@ include_directories("${CMAKE_CURRENT_BINARY_DIR}/include")

add_subdirectory(tools)
add_subdirectory(Enzyme)
add_subdirectory(BCLoad)
if (ENZYME_BC_LOADER)
add_subdirectory(BCLoad)
endif()
if (ENZYME_ENABLE_PLUGINS)
add_subdirectory(test)
endif()
Expand Down
4 changes: 3 additions & 1 deletion enzyme/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ endif()
if (ENZYME_IFX)
add_subdirectory(Fortran)
endif()
add_subdirectory(BCLoader)
if (ENZYME_BC_LOADER)
add_subdirectory(BCLoader)
endif()
if (ENZYME_MLIR)
add_subdirectory(MLIR)
endif()
Loading