Skip to content

Commit f6ee849

Browse files
committed
probprog attr mlir api
1 parent f40960f commit f6ee849

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

deps/ReactantExtra/API.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,16 @@ enzymeActivityAttrGet(MlirContext ctx, int32_t val) {
364364
(mlir::enzyme::Activity)val));
365365
}
366366

367+
extern "C" MLIR_CAPI_EXPORTED MlirType enzymeTraceTypeGet(MlirContext ctx) {
368+
return wrap(mlir::enzyme::TraceType::get(unwrap(ctx)));
369+
}
370+
371+
extern "C" MLIR_CAPI_EXPORTED MlirAttribute
372+
enzymeSymbolAttrGet(MlirContext ctx, uint64_t symbol) {
373+
mlir::Attribute attr = mlir::enzyme::SymbolAttr::get(unwrap(ctx), symbol);
374+
return wrap(attr);
375+
}
376+
367377
extern "C" MLIR_CAPI_EXPORTED MlirAttribute enzymeConstraintAttrGet(
368378
MlirContext ctx, uint64_t symbol, MlirAttribute values) {
369379
mlir::Attribute vals = unwrap(values);

0 commit comments

Comments
 (0)