[Openmp-commits] [openmp] [OpenMP] OpenMP ThreadSet clause - basic runtime (PR #144409)
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jun 17 10:46:35 PDT 2025
jprotze wrote:
The whole bitset got messed up. It used to be 16 bits for compiler use, 16 bits for runtime use:
```
/* Compiler flags */ /* Total compiler flags must be 16 bits */
unsigned tiedness : 1; /* task is either tied (1) or untied (0) */
unsigned final : 1; /* task is final(1) so execute immediately */
unsigned merged_if0 : 1; /* no __kmpc_task_{begin/complete}_if0 calls in if0
code path */
unsigned destructors_thunk : 1; /* set if the compiler creates a thunk to
invoke destructors from the runtime */
unsigned proxy : 1; /* task is a proxy task (it will be executed outside the
context of the RTL) */
unsigned priority_specified : 1; /* set if the compiler provides priority
setting for the task */
unsigned detachable : 1; /* 1 == can detach */
unsigned reserved : 9; /* reserved for compiler use */
```
Then someone added `hidden_helper` to the compiler flags. Is this bit ever set by the compiler, or should it be a runtime flag?
The new flag should definitely be added to the compiler flags partition. From my perspective it should replace the hidden_helper flag and the hidden_helper flag should move to the runtime partition.
https://github.com/llvm/llvm-project/pull/144409
More information about the Openmp-commits
mailing list