[all-commits] [llvm/llvm-project] 2aa125: [mlir][python] Don't emit diagnostics when printin...
rk via All-commits
all-commits at lists.llvm.org
Sun Feb 26 20:50:31 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2aa12583e6ace921a1e58f39d54a35296273758e
https://github.com/llvm/llvm-project/commit/2aa12583e6ace921a1e58f39d54a35296273758e
Author: Rahul Kayaith <rkayaith at gmail.com>
Date: 2023-02-26 (Sun, 26 Feb 2023)
Changed paths:
M mlir/include/mlir-c/IR.h
M mlir/lib/Bindings/Python/IRCore.cpp
M mlir/lib/CAPI/IR/IR.cpp
M mlir/test/python/ir/operation.py
Log Message:
-----------
[mlir][python] Don't emit diagnostics when printing invalid ops
The asm printer grew the ability to automatically fall back to the
generic format for invalid ops, so this logic doesn't need to be in the
bindings anymore. The printer already handles supressing diagnostics
that get emitted while checking if the op is valid.
Reviewed By: mehdi_amini, stellaraccident
Differential Revision: https://reviews.llvm.org/D144805
More information about the All-commits
mailing list