[MLIR][LLVM] Add accessor for LLVMModule and invoke convertDialectAttributes on GlobalOps
This patch seeks to do two things add an accessor method to retrieve the ModuleTranslations contained LLVM Module for direct usage by dialects that are being lowered to LLVM-IR. One particular use case for this is in the OpenMP Dialect, when interfacing with the OMPIRBuilder in certain cases it is useful to be able to access the LLVM Module directly. The second is invoking convertDialectAttributes on GlobalOp's so as to be able to lower dialect specific attributes that are applied or lowered onto GlobalOp's. Reviewers: ftynse Differential Revision: https://reviews.llvm.org/D149279
parent
c67079f1
Please register or sign in to comment