HomePhabricator

Read OMP_TARGET_OFFLOAD and provide API to access ICV

Description

Read OMP_TARGET_OFFLOAD and provide API to access ICV

Added settings code to read OMP_TARGET_OFFLOAD environment variable. Added
target-offload-var ICV as kmp_target_offload, set via OMP_TARGET_OFFLOAD,
if available, otherwise defaulting to DEFAULT. Valid values for the ICV are
specified as enum values {0,1,2} for disabled, default, and mandatory. An
internal API access function
kmpc_get_target_offload is provided.

Patch by Terry Wilmarth

Differential Revision: https://reviews.llvm.org/D44577

Details

Committed
jlpeytonMar 20 2018, 2:18 PM
Differential Revision
D44577: Read OMP_TARGET_OFFLOAD and provide API to access ICV
Parents
rL328045: [X86] Drop unnecessary InstRW overrides for WriteFMA
Branches
Unknown
Tags
Unknown