Skip to content

Commit d4e6e05

Browse files
committed
done!
1 parent 4745dae commit d4e6e05

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

lib/Conversion/PolygeistToLLVM/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ add_mlir_conversion_library(MLIRPolygeistToLLVM
2121
MLIRSCFToControlFlow
2222
MLIRVectorToLLVM
2323
)
24+
25+
target_compile_definitions(obj.MLIRPolygeistToLLVM
26+
PRIVATE
27+
POLYGEIST_PGO_DEFAULT_DATA_DIR="${POLYGEIST_PGO_DEFAULT_DATA_DIR}"
28+
POLYGEIST_PGO_ALTERNATIVE_ENV_VAR="${POLYGEIST_PGO_ALTERNATIVE_ENV_VAR}"
29+
POLYGEIST_PGO_DATA_DIR_ENV_VAR="${POLYGEIST_PGO_DATA_DIR_ENV_VAR}"
30+
)

lib/Conversion/PolygeistToLLVM/PolygeistToLLVM.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// a generic parallel for representation
1111
//===----------------------------------------------------------------------===//
1212

13+
#include "PassDetails.h"
14+
1315
#include "mlir/../../lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp"
1416
#include "mlir/Analysis/DataLayoutAnalysis.h"
1517
#include "mlir/Conversion/ArithToLLVM/ArithToLLVM.h"

tools/cgeist/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ target_compile_definitions(cgeist PUBLIC -DLLVM_OBJ_ROOT="${LLVM_BINARY_DIR}")
5959
target_link_libraries(cgeist PRIVATE
6060
MLIRSCFTransforms
6161
MLIRPolygeistDialect
62+
MLIRPolygeistToLLVM
6263

6364
MLIRSupport
6465
MLIRIR

tools/polygeist-opt/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set(LIBS
44
${dialect_libs}
55
${conversion_libs}
66
MLIROptLib
7-
MLIRPolygeist
7+
MLIRPolygeistDialect
8+
MLIRPolygeistToLLVM
89
MLIRPolygeistTransforms
910
MLIRFuncAllExtensions
1011
)

tools/polygeist-opt/polygeist-opt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int main(int argc, char **argv) {
6262
registry.insert<mlir::polygeist::PolygeistDialect>();
6363
registry.insert<DLTIDialect>();
6464

65-
mlir::registerpolygeistPasses();
65+
mlir::registerPolygeistPasses();
6666
mlir::func::registerInlinerExtension(registry);
6767

6868
// Register the standard passes we want.

0 commit comments

Comments
 (0)