Enzyme main
Loading...
Searching...
No Matches
EnzymeMLIR.h
Go to the documentation of this file.
1#ifndef ENZYME_MLIR_INTEGRATIONS_C_ENZYMEMLIR_H_
2#define ENZYME_MLIR_INTEGRATIONS_C_ENZYMEMLIR_H_
3
4#include <stdbool.h>
5#include <stdint.h>
6
7#include "mlir-c/IR.h"
8#include "mlir-c/Support.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14//===----------------------------------------------------------------------===//
15// Probabilistic Programming Ops
16//===----------------------------------------------------------------------===//
17
23
24MLIR_CAPI_EXPORTED MlirAttribute
26
35
36MLIR_CAPI_EXPORTED MlirAttribute enzymeSupportAttrGet(
37 MlirContext ctx, EnzymeSupportKind kind, bool hasLowerBound,
38 double lowerBound, bool hasUpperBound, double upperBound);
39
40MLIR_CAPI_EXPORTED MlirAttribute enzymeHMCConfigAttrGet(MlirContext ctx,
41 double trajectoryLength,
42 bool adaptStepSize,
43 bool adaptMassMatrix);
44
45MLIR_CAPI_EXPORTED MlirAttribute enzymeNUTSConfigAttrGet(
46 MlirContext ctx, int64_t maxTreeDepth, bool hasMaxDeltaEnergy,
47 double maxDeltaEnergy, bool adaptStepSize, bool adaptMassMatrix);
48
49MLIR_CAPI_EXPORTED MlirAttribute enzymeSymbolAttrGet(MlirContext ctx,
50 uint64_t ptr);
51
52#ifdef __cplusplus
53} // extern "C"
54#endif
55
56#endif // ENZYME_MLIR_INTEGRATIONS_C_ENZYMEMLIR_H_
MLIR_CAPI_EXPORTED MlirAttribute enzymeSymbolAttrGet(MlirContext ctx, uint64_t ptr)
MLIR_CAPI_EXPORTED MlirAttribute enzymeHMCConfigAttrGet(MlirContext ctx, double trajectoryLength, bool adaptStepSize, bool adaptMassMatrix)
MLIR_CAPI_EXPORTED MlirAttribute enzymeNUTSConfigAttrGet(MlirContext ctx, int64_t maxTreeDepth, bool hasMaxDeltaEnergy, double maxDeltaEnergy, bool adaptStepSize, bool adaptMassMatrix)
MLIR_CAPI_EXPORTED MlirAttribute enzymeRngDistributionAttrGet(MlirContext ctx, EnzymeRngDistribution dist)
Definition EnzymeMLIR.cpp:9
EnzymeRngDistribution
Definition EnzymeMLIR.h:18
@ EnzymeRngDistribution_MultiNormal
Definition EnzymeMLIR.h:21
@ EnzymeRngDistribution_Uniform
Definition EnzymeMLIR.h:19
@ EnzymeRngDistribution_Normal
Definition EnzymeMLIR.h:20
EnzymeSupportKind
Definition EnzymeMLIR.h:27
@ EnzymeSupportKind_Real
Definition EnzymeMLIR.h:28
@ EnzymeSupportKind_UnitInterval
Definition EnzymeMLIR.h:30
@ EnzymeSupportKind_LessThan
Definition EnzymeMLIR.h:33
@ EnzymeSupportKind_Interval
Definition EnzymeMLIR.h:31
@ EnzymeSupportKind_GreaterThan
Definition EnzymeMLIR.h:32
@ EnzymeSupportKind_Positive
Definition EnzymeMLIR.h:29
MLIR_CAPI_EXPORTED MlirAttribute enzymeSupportAttrGet(MlirContext ctx, EnzymeSupportKind kind, bool hasLowerBound, double lowerBound, bool hasUpperBound, double upperBound)