Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/include/omptarget.h
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | |||||
struct __tgt_kernel_arguments { | struct __tgt_kernel_arguments { | ||||
int32_t Version; // Version of this struct for ABI compatibility. | int32_t Version; // Version of this struct for ABI compatibility. | ||||
int32_t NumArgs; // Number of arguments in each input pointer. | int32_t NumArgs; // Number of arguments in each input pointer. | ||||
void **ArgBasePtrs; // Base pointer of each argument (e.g. a struct). | void **ArgBasePtrs; // Base pointer of each argument (e.g. a struct). | ||||
void **ArgPtrs; // Pointer to the argument data. | void **ArgPtrs; // Pointer to the argument data. | ||||
int64_t *ArgSizes; // Size of the argument data in bytes. | int64_t *ArgSizes; // Size of the argument data in bytes. | ||||
int64_t *ArgTypes; // Type of the data (e.g. to / from). | int64_t *ArgTypes; // Type of the data (e.g. to / from). | ||||
void **ArgNames; // Name of the data for debugging, possibly null. | void **ArgNames; // Name of the data for debugging, possibly null. | ||||
void **ArgMappers; // User-defined mappers, possible null. | void **ArgMappers; // User-defined mappers, possibly null. | ||||
int64_t Tripcount; // Tripcount for the teams / distribute loop, 0 otherwise. | |||||
}; | }; | ||||
static_assert(sizeof(__tgt_kernel_arguments) == 64 && "Invalid struct size"); | |||||
/// This struct is a record of an entry point or global. For a function | /// This struct is a record of an entry point or global. For a function | ||||
/// entry point the size is expected to be zero | /// entry point the size is expected to be zero | ||||
struct __tgt_offload_entry { | struct __tgt_offload_entry { | ||||
void *addr; // Pointer to the offload entry info (function or global) | void *addr; // Pointer to the offload entry info (function or global) | ||||
char *name; // Name of the function or global | char *name; // Name of the function or global | ||||
size_t size; // Size of the entry info (0 if it is a function) | size_t size; // Size of the entry info (0 if it is a function) | ||||
int32_t flags; // Flags associated with the entry, e.g. 'link'. | int32_t flags; // Flags associated with the entry, e.g. 'link'. | ||||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |