[mlir] (NFC) run clang-format on all files
[mlir] (NFC) Clean up bazel and CMake target namesAll dialect targets in bazel have been named *Dialect and all dialecttargets in CMake have been named MLIR*Dialect.
[mlir] Refactor DialectRegistry delayed interface support into a general DialectExtension mechanismThe current dialect registry allows for attaching delayed interfaces, that are added to attrs/dial
[mlir] Refactor DialectRegistry delayed interface support into a general DialectExtension mechanismThe current dialect registry allows for attaching delayed interfaces, that are added to attrs/dialects/ops/etc.when the owning dialect gets loaded. This is clunky for quite a few reasons, e.g. each interface type has aseparate tracking structure, and is also quite limiting. This commit refactors this delayed mutation ofdialect constructs into a more general DialectExtension mechanism. This mechanism is essentially a registrationcallback that is invoked when a set of dialects have been loaded. This allows for attaching interfaces directlyon the loaded constructs, and also allows for loading new dependent dialects. The latter of which isextremely useful as it will now enable dependent dialects to only apply in the contexts in which theyare necessary. For example, a dialect dependency can now be conditional on if a user actually needs theinterface that relies on it.Differential Revision: https://reviews.llvm.org/D120367
show more ...
Reapply "[OpenMP][NFCI] Embed the source location string size in the ident_t"This reverts commit 73ece231ee0cf048d56841f47915beb1db6afc26 andreapplies 7bfcdbcbf368cea14a5236080af975d5878a46eb with
Reapply "[OpenMP][NFCI] Embed the source location string size in the ident_t"This reverts commit 73ece231ee0cf048d56841f47915beb1db6afc26 andreapplies 7bfcdbcbf368cea14a5236080af975d5878a46eb with mlir changes.Also reverts commit 423ba12971bac8397c87fcf975ba6a4b7530ed28 andincludes the unit test changes of16da2140045808b2aea1d28366ca7d326eb3c809.
Fix clang-tidy issues in mlir/ (NFC)Reviewed By: ftynseDifferential Revision: https://reviews.llvm.org/D115956
Adjust "end namespace" comment in MLIR to match new agree'd coding styleSee D115115 and this mailing list discussion:https://lists.llvm.org/pipermail/llvm-dev/2021-December/154199.htmlDifferenti
Adjust "end namespace" comment in MLIR to match new agree'd coding styleSee D115115 and this mailing list discussion:https://lists.llvm.org/pipermail/llvm-dev/2021-December/154199.htmlDifferential Revision: https://reviews.llvm.org/D115309
[mlir][openacc] Make use of the second counter extension in DataOp translationMake use of runtime extension for the second reference counter used instructured data region. This extension is implem
[mlir][openacc] Make use of the second counter extension in DataOp translationMake use of runtime extension for the second reference counter used instructured data region. This extension is implemented in D106510 and D106509.Differential Revision: https://reviews.llvm.org/D106517
[mlir][openacc] Initial translation for DataOp to LLVM IRAdd basic translation of acc.data to LLVM IR with runtime calls.Reviewed By: jdoerfertDifferential Revision: https://reviews.llvm.org/D1
[mlir][openacc] Initial translation for DataOp to LLVM IRAdd basic translation of acc.data to LLVM IR with runtime calls.Reviewed By: jdoerfertDifferential Revision: https://reviews.llvm.org/D104301
[mlir][openacc][NFC] move index in processDataOperandsMove the index variable used to track variables inside of the specificprocessDataOperands functions.Reviewed By: kiranchandramohanDifferen
[mlir][openacc][NFC] move index in processDataOperandsMove the index variable used to track variables inside of the specificprocessDataOperands functions.Reviewed By: kiranchandramohanDifferential Revision: https://reviews.llvm.org/D103924
[mlir][openacc] Translate UpdateOp to LLVM IRAdd translation to LLVM IR for the UpdateOp with host and device operands.Translation is done with call using the runtime. This is done in a similar wa
[mlir][openacc] Translate UpdateOp to LLVM IRAdd translation to LLVM IR for the UpdateOp with host and device operands.Translation is done with call using the runtime. This is done in a similar way asD101504 and D102381.Reviewed By: ftynseDifferential Revision: https://reviews.llvm.org/D102382
[mlir][openacc] Translate ExitDataop to LLVM IRTranslate ExitDataOp with delete and copyout operands to runtime call.This is done in a similar way as D101504.Reviewed By: kiranchandramohanDiff
[mlir][openacc] Translate ExitDataop to LLVM IRTranslate ExitDataOp with delete and copyout operands to runtime call.This is done in a similar way as D101504.Reviewed By: kiranchandramohanDifferential Revision: https://reviews.llvm.org/D102381
[mlir][openacc] Add OpenACC translation to LLVM IR (enter_data op create/copyin)This patch begins to translate acc.enter_data operation to call to tgt runtime call.It currently only translate crea
[mlir][openacc] Add OpenACC translation to LLVM IR (enter_data op create/copyin)This patch begins to translate acc.enter_data operation to call to tgt runtime call.It currently only translate create/copyin operands of memref type. This acts as a basis to add supportfor FIR types in the Flang/OpenACC support. It follows more or less a similar path than clangwith `omp target enter data map` directives.This patch is taking a different approach than D100678 and perform a translation to LLVM IRand make use of the OpenMPIRBuilder instead of doing a conversion to the LLVMIR dialect.OpenACC support in Flang will rely on the current OpenMP runtime where 1:1 lowering can beapplied. Some extension will be added where features are not available yet.Big part of this code will be shared for other standalone data operations in the OpenACCdialect such as acc.exit_data and acc.update.It is likely that parts of the lowering can also be shared later with the ops forstandalone data directives in the OpenMP dialect when they are introduced.This is an initial translation and it probably needs more work.Reviewed By: ftynseDifferential Revision: https://reviews.llvm.org/D101504