HomePhabricator

[libomptarget] Remove duplicate RTLRequiresFlags per device

Description

[libomptarget] Remove duplicate RTLRequiresFlags per device

We have one global RTLs.RequiresFlags, I don't see a need to make a
copy per device that the runtime manages. This was problematic anyway
because the copy happened during the first tgt_register_lib(). This
made it impossible to call
tgt_register_requires() from normal user
funtions for testing.
Hence, this change also fixes unified_shared_memory/shared_update.c for
older versions of Clang that don't call tgt_register_requires() before
tgt_register_lib().

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

Details

Committed
HahnfeldFri, Aug 9, 12:20 PM
Differential Revision
D66019: [libomptarget] Remove duplicate RTLRequiresFlags per device
Parents
rL368464: [Docs][llvm-strip] Add help text to llvm-strip rst doc
Branches
Unknown
Tags
Unknown