HomePhabricator

[OpenMP][NFC] Expose AAExecutionDomain and rename its getter

Authored by jdoerfert on May 11 2021, 8:13 PM.

Description

[OpenMP][NFC] Expose AAExecutionDomain and rename its getter

The initial use for AAExecutionDomain was to determine if a single
thread executes a block. While this is sometimes informative most
of the time, and for other reasons, we actually want to know if it
is the "initial thread". Thus, the thread that started execution on
the current device. The deduction needs to be adjusted in a follow
up as the methods we use right not are looking for the OpenMP thread
id which is resets whenever a thread enters a parallel region. What
we basically want is to look for llvm.nvvm.read.ptx.sreg.ntid.x and
equivalent functions.

Details

Committed
jdoerfertJun 17 2021, 11:07 PM
Parents
rGca7563bb0268: [Attributor][NFC] Add test from PR49606
Branches
Unknown
Tags
Unknown