[llvm] [openmp] [OpenMP][Offload] Add `LIBOMPTARGET_TREAT_ATTACH_AUTO_AS_ALWAYS` to treat `attach(auto)` as `attach(always)`. (PR #172382)

Abhinav Gaba via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 15 15:46:19 PST 2025


================
@@ -33,6 +33,10 @@ class MappingConfig {
   MappingConfig() {
     BoolEnvar ForceAtomic = BoolEnvar("LIBOMPTARGET_MAP_FORCE_ATOMIC", true);
     UseEventsForAtomicTransfers = ForceAtomic;
+
+    BoolEnvar TreatAttachAutoAsAlwaysEnvar(
+        "LIBOMPTARGET_TREAT_ATTACH_AUTO_AS_ALWAYS", false);
----------------
abhinavgaba wrote:

We can rename this to LIBOMPTARGET_ATTACH_FORCE_ALWAYS to align with the above, if that's preferable. That is shorter, but maybe not as clear.

https://github.com/llvm/llvm-project/pull/172382


More information about the llvm-commits mailing list