Files
TheRock/compiler/amd-llvm/libclc/opencl/lib/generic/shared/vstore.inc
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

79 lines
3.2 KiB
C++

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#define __CLC_VSTORE_TY __CLC_XCONCAT(less_aligned_, __CLC_GENTYPE)
#define __CLC_VSTORE_NAME(x) \
__CLC_XCONCAT(__CLC_XCONCAT(x, vstore), __CLC_VECSIZE)
#define __CLC_VSTORE_HALF_NAME(x, y) \
__CLC_XCONCAT(__CLC_XCONCAT(__CLC_XCONCAT(x, vstore_half), __CLC_VECSIZE), y)
#define __CLC_VSTOREA_HALF_NAME(x, y) \
__CLC_XCONCAT(__CLC_XCONCAT(__CLC_XCONCAT(x, vstorea_half), __CLC_VECSIZE), y)
#ifndef __CLC_SCALAR
#define __CLC_VSTORE_DEF(ADDRSPACE) \
_CLC_OVERLOAD _CLC_DEF void __CLC_VSTORE_NAME()( \
__CLC_VSTORE_TY data, size_t offset, \
ADDRSPACE __CLC_SCALAR_GENTYPE *p) { \
return __CLC_VSTORE_NAME(__clc_)(data, offset, p); \
}
__CLC_VSTORE_DEF(__private)
__CLC_VSTORE_DEF(__local)
__CLC_VSTORE_DEF(__global)
#if _CLC_DISTINCT_GENERIC_AS_SUPPORTED
__CLC_VSTORE_DEF(__generic)
#endif
#undef __CLC_VSTORE_DEF
#endif // __CLC_SCALAR
// vstore_half and vstorea_half are available even if cl_khr_fp16 is
// unavailable.
#ifdef __CLC_FPSIZE
#if __CLC_FPSIZE == 32 || __CLC_FPSIZE == 64
#define __CLC_VSTORE_HALF_DEF(ADDRSPACE, SUFFIX) \
_CLC_OVERLOAD _CLC_DEF void __CLC_VSTORE_HALF_NAME(, SUFFIX)( \
__CLC_VSTORE_TY data, size_t offset, ADDRSPACE half *p) { \
__CLC_VSTORE_HALF_NAME(__clc_, SUFFIX)(data, offset, p); \
} \
\
_CLC_OVERLOAD _CLC_DEF void __CLC_VSTOREA_HALF_NAME(, SUFFIX)( \
__CLC_VSTORE_TY data, size_t offset, ADDRSPACE half *p) { \
__CLC_VSTOREA_HALF_NAME(__clc_, SUFFIX)(data, offset, p); \
}
#define __CLC_VSTORE_HALF_DEF_ALL_MODES(ADDRSPACE) \
__CLC_VSTORE_HALF_DEF(ADDRSPACE, ) \
__CLC_VSTORE_HALF_DEF(ADDRSPACE, _rtz) \
__CLC_VSTORE_HALF_DEF(ADDRSPACE, _rtn) \
__CLC_VSTORE_HALF_DEF(ADDRSPACE, _rtp) \
__CLC_VSTORE_HALF_DEF(ADDRSPACE, _rte)
__CLC_VSTORE_HALF_DEF_ALL_MODES(__private)
__CLC_VSTORE_HALF_DEF_ALL_MODES(__local)
__CLC_VSTORE_HALF_DEF_ALL_MODES(__global)
#if _CLC_DISTINCT_GENERIC_AS_SUPPORTED
__CLC_VSTORE_HALF_DEF_ALL_MODES(__generic)
#endif
#undef __CLC_VSTORE_HALF_DEF
#undef __CLC_VSTORE_HALF_DEF_ALL_MODES
#endif
#endif
#undef __CLC_VSTORE_TY
#undef __CLC_VSTORE_NAME
#undef __CLC_VSTORE_HALF_NAME
#undef __CLC_VSTOREA_HALF_NAME