[all-commits] [llvm/llvm-project] 720234: Add a `mlirModuleGetBody()` accessor to the C API ...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Wed Oct 28 10:54:20 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 72023442c1eb3169389f469d4b804aff93497758
https://github.com/llvm/llvm-project/commit/72023442c1eb3169389f469d4b804aff93497758
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2020-10-28 (Wed, 28 Oct 2020)
Changed paths:
M mlir/include/mlir-c/IR.h
M mlir/lib/Bindings/Python/IRModules.cpp
M mlir/lib/CAPI/IR/IR.cpp
M mlir/test/Bindings/Python/dialects.py
M mlir/test/CAPI/ir.c
Log Message:
-----------
Add a `mlirModuleGetBody()` accessor to the C API and bind it in Python
Getting the body of a Module is a common need which justifies a
dedicated accessor instead of forcing users to go through the
region->blocks->front unwrapping manually.
Differential Revision: https://reviews.llvm.org/D90287
More information about the All-commits
mailing list