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(
603
603
"@llvm-project//mlir:VectorToLLVM" ,
604
604
"@llvm-project//mlir:VectorToSCF" ,
605
605
"@llvm-project//mlir:ViewLikeInterface" ,
606
+ "@llvm-project//mlir:CAPIIR" ,
606
607
"@shardy//shardy/dialect/sdy/ir:dialect" ,
607
608
"@shardy//shardy/dialect/sdy/transforms/propagation:op_sharding_rule_builder" ,
608
609
"@stablehlo//:base" ,
Original file line number Diff line number Diff line change 80
80
81
81
#include " mlir/Target/LLVMIR/Export.h"
82
82
83
+ #include " mlir-c/Support.h"
84
+
83
85
#define DEBUG_TYPE " lower-jit"
84
86
85
87
namespace mlir {
@@ -274,7 +276,8 @@ bool initJIT() {
274
276
return true ;
275
277
}
276
278
277
- extern " C" void EnzymeJaXMapSymbol (const char *name, void *symbol) {
279
+ extern " C" MLIR_CAPI_EXPORTED void EnzymeJaXMapSymbol (const char *name,
280
+ void *symbol) {
278
281
initJIT ();
279
282
MappedSymbols[JIT->mangleAndIntern (name)] = llvm::orc::ExecutorSymbolDef (
280
283
llvm::orc::ExecutorAddr::fromPtr (symbol), llvm::JITSymbolFlags ());
You can’t perform that action at this time.
0 commit comments