12#include "mlir/CAPI/IR.h"
13#include "mlir/CAPI/Support.h"
14#include "mlir/CAPI/Utils.h"
25 reinterpret_cast<igraph::InstanceOpInterface *
>(instancePath.
ptr),
31 const_cast<igraph::InstanceOpInterface *
>(instancePath.data()),
40 return unwrap(instancePath).size();
46 auto path =
unwrap(instancePath);
47 Operation *operation = path[index];
48 return wrap(operation);
ArrayRef< igraph::InstanceOpInterface > unwrap(IgraphInstancePath instancePath)
size_t igraphInstancePathSize(IgraphInstancePath instancePath)
MlirOperation igraphInstancePathGet(IgraphInstancePath instancePath, size_t index)
IgraphInstancePath wrap(ArrayRef< igraph::InstanceOpInterface > instancePath)
assert(baseType &&"element must be base type")
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.