File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -603,6 +603,7 @@ cc_library(
603603 "@llvm-project//mlir:VectorToLLVM" ,
604604 "@llvm-project//mlir:VectorToSCF" ,
605605 "@llvm-project//mlir:ViewLikeInterface" ,
606+ "@llvm-project//mlir:CAPIIR" ,
606607 "@shardy//shardy/dialect/sdy/ir:dialect" ,
607608 "@shardy//shardy/dialect/sdy/transforms/propagation:op_sharding_rule_builder" ,
608609 "@stablehlo//:base" ,
Original file line number Diff line number Diff line change 8080
8181#include " mlir/Target/LLVMIR/Export.h"
8282
83+ #include " mlir-c/Support.h"
84+
8385#define DEBUG_TYPE " lower-jit"
8486
8587namespace mlir {
@@ -274,7 +276,8 @@ bool initJIT() {
274276 return true ;
275277}
276278
277- extern " C" void EnzymeJaXMapSymbol (const char *name, void *symbol) {
279+ extern " C" MLIR_CAPI_EXPORTED void EnzymeJaXMapSymbol (const char *name,
280+ void *symbol) {
278281 initJIT ();
279282 MappedSymbols[JIT->mangleAndIntern (name)] = llvm::orc::ExecutorSymbolDef (
280283 llvm::orc::ExecutorAddr::fromPtr (symbol), llvm::JITSymbolFlags ());
You can’t perform that action at this time.
0 commit comments