Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/src/rtl.h
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | struct RTLsTy { | ||||
int64_t RequiresFlags = OMP_REQ_UNDEFINED; | int64_t RequiresFlags = OMP_REQ_UNDEFINED; | ||||
explicit RTLsTy() = default; | explicit RTLsTy() = default; | ||||
// Register the clauses of the requires directive. | // Register the clauses of the requires directive. | ||||
void RegisterRequires(int64_t flags); | void RegisterRequires(int64_t flags); | ||||
// Initialize RTL if it has not been initialized | |||||
void initRTLonce(RTLInfoTy &RTL); | |||||
// Initialize all RTLs | |||||
void initAllRTLs(); | |||||
// Register a shared library with all (compatible) RTLs. | // Register a shared library with all (compatible) RTLs. | ||||
void RegisterLib(__tgt_bin_desc *desc); | void RegisterLib(__tgt_bin_desc *desc); | ||||
// Unregister a shared library from all RTLs. | // Unregister a shared library from all RTLs. | ||||
void UnregisterLib(__tgt_bin_desc *desc); | void UnregisterLib(__tgt_bin_desc *desc); | ||||
// Mutex-like object to guarantee thread-safety and unique initialization | // Mutex-like object to guarantee thread-safety and unique initialization | ||||
// (i.e. the library attempts to load the RTLs (plugins) only once). | // (i.e. the library attempts to load the RTLs (plugins) only once). | ||||
Show All 31 Lines |