[libomptarget] Remove duplicate RTLRequiresFlags per device

Authored by Hahnfeld on Aug 9 2019, 12:20 PM.


[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

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

llvm-svn: 368465