Skip to content
Open
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
662 changes: 217 additions & 445 deletions code/AST.h

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
add_executable (compiler
main.cpp
code_generator.cpp
lexer.cpp
parser.cpp
semantic.cpp
error.cpp
optimizer.cpp
)
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(HandleLLVMOptions)
include(AddLLVM)

llvm_map_components_to_libnames(llvm_libs
Core
IRReader
Support
AsmPrinter
)

target_link_libraries(compiler PRIVATE ${llvm_libs})
Loading