llvm-project/mlir/examples
Alex Zinenko 5446ec8507 [mlir] take MLIRContext instead of LLVMDialect in getters of LLVMType's
Historical modeling of the LLVM dialect types had been wrapping LLVM IR types
and therefore needed access to the instance of LLVMContext stored in the
LLVMDialect. The new modeling does not rely on that and only needs the
MLIRContext that is used for uniquing, similarly to other MLIR types. Change
LLVMType::get<Kind>Ty functions to take `MLIRContext *` instead of
`LLVMDialect *` as first argument. This brings the code base closer to
completely removing the dependence on LLVMContext from the LLVMDialect,
together with additional support for thread-safety of its use.

Depends On D85371

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D85372
2020-08-06 11:05:40 +02:00
..
standalone Revert "[CMake] Simplify CMake handling for zlib" 2020-08-05 12:31:44 +02:00
toy [mlir] take MLIRContext instead of LLVMDialect in getters of LLVMType's 2020-08-06 11:05:40 +02:00
CMakeLists.txt NFC: Delete the Linalg tutorial. 2019-10-17 14:27:37 -07:00