File tree Expand file tree Collapse file tree 3 files changed +306
-48
lines changed Expand file tree Collapse file tree 3 files changed +306
-48
lines changed Original file line number Diff line number Diff line change @@ -368,26 +368,17 @@ extern "C" MLIR_CAPI_EXPORTED MlirType enzymeTraceTypeGet(MlirContext ctx) {
368
368
return wrap (mlir::enzyme::TraceType::get (unwrap (ctx)));
369
369
}
370
370
371
+ extern " C" MLIR_CAPI_EXPORTED MlirType
372
+ enzymeConstraintTypeGet (MlirContext ctx) {
373
+ return wrap (mlir::enzyme::ConstraintType::get (unwrap (ctx)));
374
+ }
375
+
371
376
extern " C" MLIR_CAPI_EXPORTED MlirAttribute
372
377
enzymeSymbolAttrGet (MlirContext ctx, uint64_t symbol) {
373
378
mlir::Attribute attr = mlir::enzyme::SymbolAttr::get (unwrap (ctx), symbol);
374
379
return wrap (attr);
375
380
}
376
381
377
- extern " C" MLIR_CAPI_EXPORTED MlirAttribute enzymeConstraintAttrGet (
378
- MlirContext ctx, uint64_t symbol, MlirAttribute values) {
379
- mlir::Attribute vals = unwrap (values);
380
- auto arr = llvm::dyn_cast<mlir::ArrayAttr>(vals);
381
- if (!arr) {
382
- ReactantThrowError (
383
- " enzymeConstraintAttrGet: `values` must be an ArrayAttr" );
384
- return MlirAttribute{nullptr };
385
- }
386
- mlir::Attribute attr =
387
- mlir::enzyme::ConstraintAttr::get (unwrap (ctx), symbol, arr);
388
- return wrap (attr);
389
- }
390
-
391
382
// Create profiler session and start profiling
392
383
extern " C" tsl::ProfilerSession *
393
384
CreateProfilerSession (uint32_t device_tracer_level,
You can’t perform that action at this time.
0 commit comments