summaryrefslogtreecommitdiff
path: root/flang/lib/Optimizer/OpenMP/AutomapToTargetData.cpp
AgeCommit message (Collapse)Author
2025-10-22[flang][mlir] Migrate to free create functions. NFC. (#164657)Jakub Kuderski
See https://discourse.llvm.org/t/psa-opty-create-now-with-100-more-tab-complete/87339. I plan to mark these as deprecated in https://github.com/llvm/llvm-project/pull/164649.
2025-10-21[Flang][OpenMP][Dialect] Swap to using MLIR dialect enum to encode map flags ↵agozillon
(#164043) This PR shifts from using the LLVM OpenMP enumerator bit flags to an OpenMP dialect specific enumerator. This allows us to better represent map types that wouldn't be of interest to the LLVM backend and runtime in the dialect. Primarily things like ref_ptr/ref_ptee/ref_ptr_ptee/atach_none/attach_always/attach_auto which are of interest to the compiler for certrain transformations (primarily in the FIR transformation passes dealing with mapping), but the runtime has no need to know about them. It also means if another OpenMP implementation comes along they won't need to stick to the same bit flag system LLVM chose/do leg work to address it.
2025-09-15Revert "[NFC][Flang] Move bounds helper functions to Util header." (#158654)Akash Banerjee
Reverts llvm/llvm-project#154164
2025-09-15[NFC][Flang] Move bounds helper functions to Util header. (#154164)Akash Banerjee
This PR moves the `needsBoundsOps` and `genBoundsOps` helper functions to `flang/include/flang/Optimizer/OpenMP/Utils.h`.
2025-08-15[MLIR][OpenMP] Add a new AutomapToTargetData conversion pass in FIR (#153048)Akash Banerjee
Add a new AutomapToTargetData pass. This gathers the declare target enter variables which have the AUTOMAP modifier. And adds omp.declare_target_enter/exit mapping directives for fir.alloca and fir.free oeprations on the AUTOMAP enabled variables. Automap Ref: OpenMP 6.0 section 7.9.7.
2025-08-12Revert "[MLIR][OpenMP] Add a new AutomapToTargetData conversion pass in FIR ↵Akash Banerjee
(#153048)" This reverts commit 4e6d510eb3ec5b5e5ea234756ea1f0b283feee4a.
2025-08-12[MLIR][OpenMP] Add a new AutomapToTargetData conversion pass in FIR (#153048)Akash Banerjee
Add a new AutomapToTargetData pass. This gathers the declare target enter variables which have the AUTOMAP modifier. And adds omp.declare_target_enter/exit mapping directives for fir.alloca and fir.free oeprations on the AUTOMAP enabled variables. Automap Ref: OpenMP 6.0 section 7.9.7.
2025-08-11Revert "[MLIR][OpenMP] Add a new AutomapToTargetData conversion pass in FIR ↵Akash Banerjee
(#151989)" This reverts commit 5a5e8ba0c388d57aecb359ed67919cda429fc7b1.
2025-08-11[MLIR][OpenMP] Add a new AutomapToTargetData conversion pass in FIR (#151989)Akash Banerjee
Add a new `AutomapToTargetData` pass. This gathers the declare target enter variables which have the `AUTOMAP` modifier. And adds `omp.declare_target_enter/exit` mapping directives for `fir.allocmem` and `fir.freemem` oeprations on the `AUTOMAP` enabled variables. Automap Ref: OpenMP 6.0 section 7.9.7.