4acd8457d8
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
7 lines
92 B
CMake
7 lines
92 B
CMake
add_mlir_public_c_api_library(MLIRCAPIDebug
|
|
Debug.cpp
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRSupport
|
|
)
|