llvm-project/mlir/examples/toy/Ch7
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
..
include [MLIR] Continue renaming of "SideEffects" 2020-05-15 14:37:09 -07:00
mlir [mlir] take MLIRContext instead of LLVMDialect in getters of LLVMType's 2020-08-06 11:05:40 +02:00
parser [MLIR] Fix several misc issues in in Toy tutorial 2020-05-11 16:56:47 -07:00
CMakeLists.txt [MLIR] Continue renaming of "SideEffects" 2020-05-15 14:37:09 -07:00
toyc.cpp Register printer and context CL options with the toyc example 2020-06-10 19:59:40 +00:00