Skip to content

Commit

Permalink
done!
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanradanov committed Jun 14, 2024
1 parent 4745dae commit d4e6e05
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions lib/Conversion/PolygeistToLLVM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ add_mlir_conversion_library(MLIRPolygeistToLLVM
MLIRSCFToControlFlow
MLIRVectorToLLVM
)

target_compile_definitions(obj.MLIRPolygeistToLLVM
PRIVATE
POLYGEIST_PGO_DEFAULT_DATA_DIR="${POLYGEIST_PGO_DEFAULT_DATA_DIR}"
POLYGEIST_PGO_ALTERNATIVE_ENV_VAR="${POLYGEIST_PGO_ALTERNATIVE_ENV_VAR}"
POLYGEIST_PGO_DATA_DIR_ENV_VAR="${POLYGEIST_PGO_DATA_DIR_ENV_VAR}"
)
2 changes: 2 additions & 0 deletions lib/Conversion/PolygeistToLLVM/PolygeistToLLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
// a generic parallel for representation
//===----------------------------------------------------------------------===//

#include "PassDetails.h"

#include "mlir/../../lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp"
#include "mlir/Analysis/DataLayoutAnalysis.h"
#include "mlir/Conversion/ArithToLLVM/ArithToLLVM.h"
Expand Down
1 change: 1 addition & 0 deletions tools/cgeist/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ target_compile_definitions(cgeist PUBLIC -DLLVM_OBJ_ROOT="${LLVM_BINARY_DIR}")
target_link_libraries(cgeist PRIVATE
MLIRSCFTransforms
MLIRPolygeistDialect
MLIRPolygeistToLLVM

MLIRSupport
MLIRIR
Expand Down
3 changes: 2 additions & 1 deletion tools/polygeist-opt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set(LIBS
${dialect_libs}
${conversion_libs}
MLIROptLib
MLIRPolygeist
MLIRPolygeistDialect
MLIRPolygeistToLLVM
MLIRPolygeistTransforms
MLIRFuncAllExtensions
)
Expand Down
2 changes: 1 addition & 1 deletion tools/polygeist-opt/polygeist-opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main(int argc, char **argv) {
registry.insert<mlir::polygeist::PolygeistDialect>();
registry.insert<DLTIDialect>();

mlir::registerpolygeistPasses();
mlir::registerPolygeistPasses();
mlir::func::registerInlinerExtension(registry);

// Register the standard passes we want.
Expand Down

0 comments on commit d4e6e05

Please sign in to comment.