[all-commits] [llvm/llvm-project] 64c0c9: [mlir] Expose Dialect class and registration/loadi...
ftynse via All-commits
all-commits at lists.llvm.org
Tue Sep 29 07:30:29 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 64c0c9f01511dc300b29e7a20a13958c5932e314
https://github.com/llvm/llvm-project/commit/64c0c9f01511dc300b29e7a20a13958c5932e314
Author: Alex Zinenko <zinenko at google.com>
Date: 2020-09-29 (Tue, 29 Sep 2020)
Changed paths:
M mlir/include/mlir-c/IR.h
A mlir/include/mlir-c/StandardDialect.h
M mlir/include/mlir/CAPI/IR.h
M mlir/lib/CAPI/CMakeLists.txt
M mlir/lib/CAPI/IR/IR.cpp
A mlir/lib/CAPI/Standard/CMakeLists.txt
A mlir/lib/CAPI/Standard/StandardDialect.cpp
M mlir/test/CAPI/CMakeLists.txt
M mlir/test/CAPI/ir.c
Log Message:
-----------
[mlir] Expose Dialect class and registration/loading to C API
- Add a minimalist C API for mlir::Dialect.
- Allow one to query the context about registered and loaded dialects.
- Add API for loading dialects.
- Provide functions to register the Standard dialect.
When used naively, this will require to separately register each dialect. When
we have more than one exposed, we can add variadic macros that expand to
individual calls.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D88162
More information about the All-commits
mailing list