summaryrefslogtreecommitdiff
path: root/mlir/lib/CAPI/Debug/Debug.cpp
AgeCommit message (Collapse)Author
2025-07-04[mlir][python] Add debug helpersusers/nico/python-2Nicolas Vasilache
This PR lets users provide --debug-only flags with python decorators. This greatly simplifies the debugging experience in python. Co-authored-by: Tres <tpopp@users.noreply.github.com>
2024-05-24[mlir] expose -debug-only equivalent to C and Python (#93175)Oleksandr "Alex" Zinenko
These are useful for finer-grain debugging and complement the already exposed global debug flag.
2021-04-19[mlir] Improve debug flag management in Python bindingsAlex Zinenko
Expose the debug flag as a readable and assignable property of a dedicated class instead of a write-only function. Actually test the fact of setting the flag. Move test to a dedicated file, it has zero relation to context_managers.py where it was added. Arguably, it should be promoted from mlir.ir to mlir module, but we are not re-exporting the latter and this functionality is purposefully hidden so can stay in IR for now. Drop unnecessary export code. Refactor C API and put Debug into a separate library, fix it to actually set the flag to the given value. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D100757