Home
last modified time | relevance | path

Searched refs:MlirOperation (Results 1 – 9 of 9) sorted by relevance

/external/llvm-project/mlir/include/mlir-c/
DIR.h53 DEFINE_C_API_STRUCT(MlirOperation, void);
195 MLIR_CAPI_EXPORTED MlirOperation mlirModuleGetOperation(MlirModule module);
292 MLIR_CAPI_EXPORTED MlirOperation
296 MLIR_CAPI_EXPORTED void mlirOperationDestroy(MlirOperation op);
299 static inline bool mlirOperationIsNull(MlirOperation op) { return !op.ptr; } in mlirOperationIsNull()
303 MLIR_CAPI_EXPORTED bool mlirOperationEqual(MlirOperation op,
304 MlirOperation other);
307 MLIR_CAPI_EXPORTED MlirIdentifier mlirOperationGetName(MlirOperation op);
311 MLIR_CAPI_EXPORTED MlirBlock mlirOperationGetBlock(MlirOperation op);
315 MLIR_CAPI_EXPORTED MlirOperation
[all …]
/external/llvm-project/mlir/lib/CAPI/IR/
DIR.cpp165 MlirOperation mlirModuleGetOperation(MlirModule module) { in mlirModuleGetOperation()
222 MlirOperation mlirOperationCreate(const MlirOperationState *state) { in mlirOperationCreate()
242 MlirOperation result = wrap(Operation::create(cppState)); in mlirOperationCreate()
251 void mlirOperationDestroy(MlirOperation op) { unwrap(op)->erase(); } in mlirOperationDestroy()
253 bool mlirOperationEqual(MlirOperation op, MlirOperation other) { in mlirOperationEqual()
257 MlirIdentifier mlirOperationGetName(MlirOperation op) { in mlirOperationGetName()
261 MlirBlock mlirOperationGetBlock(MlirOperation op) { in mlirOperationGetBlock()
265 MlirOperation mlirOperationGetParentOperation(MlirOperation op) { in mlirOperationGetParentOperation()
269 intptr_t mlirOperationGetNumRegions(MlirOperation op) { in mlirOperationGetNumRegions()
273 MlirRegion mlirOperationGetRegion(MlirOperation op, intptr_t pos) { in mlirOperationGetRegion()
[all …]
/external/llvm-project/mlir/test/CAPI/
Dir.c41 MlirOperation loadLHS = mlirOperationCreate(&loadLHSState); in populateLoopBody()
49 MlirOperation loadRHS = mlirOperationCreate(&loadRHSState); in populateLoopBody()
58 MlirOperation add = mlirOperationCreate(&addState); in populateLoopBody()
65 MlirOperation store = mlirOperationCreate(&storeState); in populateLoopBody()
70 MlirOperation yield = mlirOperationCreate(&yieldState); in populateLoopBody()
100 MlirOperation func = mlirOperationCreate(&funcState); in makeAndDumpAdd()
113 MlirOperation constZero = mlirOperationCreate(&constZeroState); in makeAndDumpAdd()
123 MlirOperation dim = mlirOperationCreate(&dimState); in makeAndDumpAdd()
138 MlirOperation constOne = mlirOperationCreate(&constOneState); in makeAndDumpAdd()
148 MlirOperation loop = mlirOperationCreate(&loopState); in makeAndDumpAdd()
[all …]
/external/llvm-project/mlir/include/mlir-c/Bindings/Python/
DInterop.h168 static inline PyObject *mlirPythonOperationToCapsule(MlirOperation operation) { in mlirPythonOperationToCapsule()
176 static inline MlirOperation mlirPythonCapsuleToOperation(PyObject *capsule) { in mlirPythonCapsuleToOperation()
178 MlirOperation op = {ptr}; in mlirPythonCapsuleToOperation()
/external/llvm-project/mlir/lib/Bindings/Python/
DIRModules.h418 forOperation(PyMlirContextRef contextRef, MlirOperation operation,
424 createDetached(PyMlirContextRef contextRef, MlirOperation operation,
428 operator MlirOperation() const { return get(); } in MlirOperation() function
429 MlirOperation get() const { in get()
466 PyOperation(PyMlirContextRef contextRef, MlirOperation operation);
468 MlirOperation operation,
471 MlirOperation operation;
DIRModules.cpp317 PyOperationIterator(PyOperationRef parentOperation, MlirOperation next) in PyOperationIterator()
342 MlirOperation next;
363 MlirOperation childOp = mlirBlockGetFirstOperation(block); in dunderLen()
377 MlirOperation childOp = mlirBlockGetFirstOperation(block); in dunderGetItem()
735 PyOperation::PyOperation(PyMlirContextRef contextRef, MlirOperation operation) in PyOperation()
749 MlirOperation operation, in createInstance()
769 MlirOperation operation, in forOperation()
785 MlirOperation operation, in createDetached()
857 MlirOperation operation = mlirOperationGetParentOperation(get()); in getParentOperation()
983 MlirOperation operation = mlirOperationCreate(&state); in create()
[all …]
/external/llvm-project/mlir/include/mlir/CAPI/
DIR.h26 DEFINE_C_API_PTR_METHODS(MlirOperation, mlir::Operation)
/external/llvm-project/mlir/docs/
DCAPI.md44 `MlirOperation`, which it takes as its first operand.
142 several such components. For example, an `MlirOperation` has attributes,
/external/llvm-project/mlir/docs/Bindings/
DPython.md183 `MlirOperation`, regardless of how it is obtained.