|
clang 23.0.0git
|
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | _DEFAULT_FN_ATTRS |
| #define | bool _Bool |
| #define | __gpu_kernel __attribute__((device_kernel, visibility("protected"))) |
| #define | __GPU_X_DIM 0 |
| #define | __GPU_Y_DIM 1 |
| #define | __GPU_Z_DIM 2 |
| #define | __DO_LANE_OPS(__type, __op, __identity, __prefix, __suffix) |
| #define | __GPU_OP(__x, __y) |
| #define | __GPU_OP(__x, __y) |
| #define | __GPU_OP(__x, __y) |
| #define | __GPU_OP(__x, __y) |
| #define | __GPU_OP(__x, __y) |
| #define | __GPU_OP(__x, __y) |
| #define | __GPU_OP(__x, __y) |
| #define | __GPU_OP(__x, __y) |
Functions | |
| _Pragma ("push_macro(\"bool\")") | |
| _Pragma ("omp begin declare target device_type(nohost)") | |
| _Pragma ("omp begin declare variant match(device = {kind(gpu)})") | |
| static _DEFAULT_FN_ATTRS __inline__ uint64_t | __gpu_match_any_u32_impl (uint64_t __lane_mask, uint32_t __x) |
| static _DEFAULT_FN_ATTRS __inline__ uint64_t | __gpu_match_any_u64_impl (uint64_t __lane_mask, uint64_t __x) |
| static _DEFAULT_FN_ATTRS __inline__ uint64_t | __gpu_match_all_u32_impl (uint64_t __lane_mask, uint32_t __x) |
| static _DEFAULT_FN_ATTRS __inline__ uint64_t | __gpu_match_all_u64_impl (uint64_t __lane_mask, uint64_t __x) |
| _Pragma ("omp end declare variant") | |
| _Pragma ("omp end declare target") | |
| static _DEFAULT_FN_ATTRS __inline__ uint32_t | __gpu_num_blocks (int __dim) |
| static _DEFAULT_FN_ATTRS __inline__ uint32_t | __gpu_block_id (int __dim) |
| static _DEFAULT_FN_ATTRS __inline__ uint32_t | __gpu_num_threads (int __dim) |
| static _DEFAULT_FN_ATTRS __inline__ uint32_t | __gpu_thread_id (int __dim) |
| static _DEFAULT_FN_ATTRS __inline__ uint64_t | __gpu_first_lane_id (uint64_t __lane_mask) |
| static _DEFAULT_FN_ATTRS __inline__ bool | __gpu_is_first_in_lane (uint64_t __lane_mask) |
| static _DEFAULT_FN_ATTRS __inline__ uint64_t | __gpu_read_first_lane_u64 (uint64_t __lane_mask, uint64_t __x) |
| static _DEFAULT_FN_ATTRS __inline__ float | __gpu_read_first_lane_f32 (uint64_t __lane_mask, float __x) |
| static _DEFAULT_FN_ATTRS __inline__ double | __gpu_read_first_lane_f64 (uint64_t __lane_mask, double __x) |
| static _DEFAULT_FN_ATTRS __inline__ uint64_t | __gpu_shuffle_idx_u64 (uint64_t __lane_mask, uint32_t __idx, uint64_t __x, uint32_t __width) |
| static _DEFAULT_FN_ATTRS __inline__ float | __gpu_shuffle_idx_f32 (uint64_t __lane_mask, uint32_t __idx, float __x, uint32_t __width) |
| static _DEFAULT_FN_ATTRS __inline__ double | __gpu_shuffle_idx_f64 (uint64_t __lane_mask, uint32_t __idx, double __x, uint32_t __width) |
| __DO_LANE_OPS (uint32_t, __GPU_OP, 0, sum, u32) | |
| __DO_LANE_OPS (uint64_t, __GPU_OP, 0, sum, u64) | |
| __DO_LANE_OPS (float, __GPU_OP, 0, sum, f32) | |
| __DO_LANE_OPS (double, __GPU_OP, 0, sum, f64) | |
| __DO_LANE_OPS (uint32_t, __GPU_OP, UINT32_MAX, and, u32) | |
| __DO_LANE_OPS (uint64_t, __GPU_OP, UINT64_MAX, and, u64) | |
| __DO_LANE_OPS (uint32_t, __GPU_OP, 0, or, u32) | |
| __DO_LANE_OPS (uint64_t, __GPU_OP, 0, or, u64) | |
| __DO_LANE_OPS (uint32_t, __GPU_OP, 0, xor, u32) | |
| __DO_LANE_OPS (uint64_t, __GPU_OP, 0, xor, u64) | |
| __DO_LANE_OPS (uint32_t, __GPU_OP, UINT32_MAX, min, u32) | |
| __DO_LANE_OPS (uint64_t, __GPU_OP, UINT64_MAX, min, u64) | |
| __DO_LANE_OPS (uint32_t, __GPU_OP, 0, max, u32) | |
| __DO_LANE_OPS (uint64_t, __GPU_OP, 0, max, u64) | |
| __DO_LANE_OPS (float, __GPU_OP, __builtin_inff(), minnum, f32) | |
| __DO_LANE_OPS (double, __GPU_OP, __builtin_inf(), minnum, f64) | |
| __DO_LANE_OPS (float, __GPU_OP, -__builtin_inff(), maxnum, f32) | |
| __DO_LANE_OPS (double, __GPU_OP, -__builtin_inf(), maxnum, f64) | |
| _Pragma ("pop_macro(\"bool\")") | |
| #define __DO_LANE_OPS | ( | __type, | |
| __op, | |||
| __identity, | |||
| __prefix, | |||
| __suffix ) |
Definition at line 210 of file gpuintrin.h.
| #define __gpu_kernel __attribute__((device_kernel, visibility("protected"))) |
Definition at line 73 of file gpuintrin.h.
| #define __GPU_OP | ( | __x, | |
| __y ) |
Definition at line 249 of file gpuintrin.h.
Referenced by __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), __DO_LANE_OPS(), and __DO_LANE_OPS().
| #define __GPU_OP | ( | __x, | |
| __y ) |
Definition at line 249 of file gpuintrin.h.
| #define __GPU_OP | ( | __x, | |
| __y ) |
Definition at line 249 of file gpuintrin.h.
| #define __GPU_OP | ( | __x, | |
| __y ) |
Definition at line 249 of file gpuintrin.h.
| #define __GPU_OP | ( | __x, | |
| __y ) |
Definition at line 249 of file gpuintrin.h.
| #define __GPU_OP | ( | __x, | |
| __y ) |
Definition at line 249 of file gpuintrin.h.
| #define __GPU_OP | ( | __x, | |
| __y ) |
Definition at line 249 of file gpuintrin.h.
| #define __GPU_OP | ( | __x, | |
| __y ) |
Definition at line 249 of file gpuintrin.h.
| #define __GPU_X_DIM 0 |
Definition at line 75 of file gpuintrin.h.
| #define __GPU_Y_DIM 1 |
Definition at line 76 of file gpuintrin.h.
| #define __GPU_Z_DIM 2 |
Definition at line 77 of file gpuintrin.h.
| #define _DEFAULT_FN_ATTRS |
Definition at line 24 of file gpuintrin.h.
| #define bool _Bool |
Definition at line 32 of file gpuintrin.h.
Referenced by AnalyzeComparison(), AreSpecialMemberFunctionsSameKind(), clang::threadSafety::BeforeSet::checkBeforeAfter(), CheckConstexprFunction(), checkExportedDecl(), clang::SemaSPIRV::CheckSPIRVBuiltinFunctionCall(), clang::index::createIndexingASTConsumer(), FixupInvocation(), clang::CompilerInstance::hasOutputManager(), clang::NestedNameSpecifierLoc::hasQualifier(), instantiateOMPDeclareVariantAttr(), clang::Preprocessor::isMacroDefined(), clang::AssociatedConstraint::isNull(), isParenthetizedAndQualifiedAddressOfExpr(), clang::CXXScopeSpec::isSet(), clang::CXXScopeSpec::isValid(), isValidStructGUID(), clang::CodeGen::ConstantInitFuture::operator bool(), clang::LookupBlockOffsets::operator bool(), clang::NestedNameSpecifierLoc::operator bool(), clang::TypoCorrection::operator bool(), clang::SanitizerMask::operator!(), printStateTraitWithLocationContextJson(), clang::SourceManager::PrintStats(), REGISTER_MAP_WITH_PROGRAMSTATE(), clang::interp::Pointer::toRValue(), and clang::interp::Compiler< Emitter >::VisitCXXConstructExpr().
References __GPU_OP, and _DEFAULT_FN_ATTRS.
|
static |
Definition at line 94 of file gpuintrin.h.
References __gpu_block_id_x(), __gpu_block_id_y(), __gpu_block_id_z(), and _DEFAULT_FN_ATTRS.
|
static |
Definition at line 137 of file gpuintrin.h.
Referenced by __gpu_is_first_in_lane().
|
static |
Definition at line 143 of file gpuintrin.h.
References __gpu_first_lane_id(), and __gpu_lane_id().
|
static |
Definition at line 337 of file gpuintrin.h.
References __ballot(), __gpu_ballot(), __gpu_num_lanes(), and __gpu_shuffle_idx_u32().
Referenced by __gpu_match_all_u32(), __gpu_match_all_u32(), and __gpu_match_all_u32().
|
static |
Definition at line 346 of file gpuintrin.h.
References __ballot(), __gpu_ballot(), __gpu_num_lanes(), and __gpu_shuffle_idx_u64().
Referenced by __gpu_match_all_u64(), __gpu_match_all_u64(), and __gpu_match_all_u64().
|
static |
Definition at line 295 of file gpuintrin.h.
References __ballot(), __gpu_ballot(), __gpu_num_lanes(), and __gpu_shuffle_idx_u32().
Referenced by __gpu_match_any_u32(), __gpu_match_any_u32(), and __gpu_match_any_u32().
|
static |
Definition at line 316 of file gpuintrin.h.
References __ballot(), __gpu_ballot(), __gpu_num_lanes(), and __gpu_shuffle_idx_u64().
Referenced by __gpu_match_any_u64(), __gpu_match_any_u64(), and __gpu_match_any_u64().
|
static |
Definition at line 80 of file gpuintrin.h.
References __gpu_num_blocks_x(), __gpu_num_blocks_y(), __gpu_num_blocks_z(), and _DEFAULT_FN_ATTRS.
|
static |
Definition at line 108 of file gpuintrin.h.
References __gpu_num_threads_x(), __gpu_num_threads_y(), __gpu_num_threads_z(), and _DEFAULT_FN_ATTRS.
|
static |
Definition at line 159 of file gpuintrin.h.
References __gpu_read_first_lane_u32().
|
static |
Definition at line 167 of file gpuintrin.h.
References __gpu_read_first_lane_u64().
|
static |
Definition at line 149 of file gpuintrin.h.
References __gpu_read_first_lane_u32().
Referenced by __gpu_read_first_lane_f64().
|
static |
Definition at line 187 of file gpuintrin.h.
References __gpu_shuffle_idx_u32().
|
static |
Definition at line 196 of file gpuintrin.h.
References __gpu_shuffle_idx_u64().
|
static |
Definition at line 175 of file gpuintrin.h.
References __gpu_shuffle_idx_u32().
Referenced by __gpu_match_all_u64_impl(), __gpu_match_any_u64_impl(), and __gpu_shuffle_idx_f64().
|
static |
Definition at line 122 of file gpuintrin.h.
References __gpu_thread_id_x(), __gpu_thread_id_y(), __gpu_thread_id_z(), and _DEFAULT_FN_ATTRS.
| _Pragma | ( | "omp begin declare target device_type(nohost)" | ) |
| _Pragma | ( | "omp begin declare variant match(device = {kind(gpu)})" | ) |
References _DEFAULT_FN_ATTRS.
| _Pragma | ( | "omp end declare target" | ) |
| _Pragma | ( | "omp end declare variant" | ) |
| _Pragma | ( | "pop_macro(\"bool\")" | ) |
| _Pragma | ( | "push_macro(\"bool\")" | ) |