clang 23.0.0git
__clang_hip_libdevice_declares.h File Reference

Go to the source code of this file.

Macros

#define __PRIVATE_AS   __attribute__((opencl_private))
#define ASAN_POISON_MEMORY_REGION(addr, size)
#define ASAN_UNPOISON_MEMORY_REGION(addr, size)

Typedefs

typedef _Float16 __2f16 __attribute__((ext_vector_type(2)))
 Zeroes the upper 128 bits (bits 255:128) of all YMM registers.

Functions

__device__ __attribute__ ((const)) float __ocml_acos_f32(float)
__device__ __attribute__ ((pure)) float __ocml_acosh_f32(float)
__device__ float __ocml_cos_f32 (float)
__device__ float __ocml_native_cos_f32 (float)
__device__ float __ocml_cospi_f32 (float)
__device__ float __ocml_i0_f32 (float)
__device__ float __ocml_i1_f32 (float)
__device__ float __ocml_frexp_f32 (float, __PRIVATE_AS int *)
__device__ float __ocml_j0_f32 (float)
__device__ float __ocml_j1_f32 (float)
__device__ float __ocml_lgamma_f32 (float)
__device__ float __ocml_modf_f32 (float, __PRIVATE_AS float *)
__device__ float __ocml_remquo_f32 (float, float, __PRIVATE_AS int *)
__device__ float __ocml_sincos_f32 (float, __PRIVATE_AS float *)
__device__ float __ocml_sincospi_f32 (float, __PRIVATE_AS float *)
__device__ float __ocml_sin_f32 (float)
__device__ float __ocml_native_sin_f32 (float)
__device__ float __ocml_sinpi_f32 (float)
__device__ float __ocml_tan_f32 (float)
__device__ float __ocml_tgamma_f32 (float)
__device__ float __ocml_y0_f32 (float)
__device__ float __ocml_y1_f32 (float)
__device__ double __ocml_cos_f64 (double)
__device__ double __ocml_cospi_f64 (double)
__device__ double __ocml_i0_f64 (double)
__device__ double __ocml_i1_f64 (double)
__device__ double __ocml_frexp_f64 (double, __PRIVATE_AS int *)
__device__ double __ocml_j0_f64 (double)
__device__ double __ocml_j1_f64 (double)
__device__ double __ocml_lgamma_f64 (double)
__device__ double __ocml_modf_f64 (double, __PRIVATE_AS double *)
__device__ double __ocml_remquo_f64 (double, double, __PRIVATE_AS int *)
__device__ double __ocml_sincos_f64 (double, __PRIVATE_AS double *)
__device__ double __ocml_sincospi_f64 (double, __PRIVATE_AS double *)
__device__ double __ocml_sin_f64 (double)
__device__ double __ocml_sinpi_f64 (double)
__device__ double __ocml_tan_f64 (double)
__device__ double __ocml_tgamma_f64 (double)
__device__ double __ocml_y0_f64 (double)
__device__ double __ocml_y1_f64 (double)
__device__ _Float16 __ocml_cos_f16 (_Float16)
__device__ _Float16 __ocml_sin_f16 (_Float16)
__device__ __2f16 __ocml_cos_2f16 (__2f16)
__device__ __2f16 __ocml_sin_2f16 (__2f16)
__device__ void __asan_poison_memory_region (const void *addr, __SIZE_TYPE__ size)
__device__ void __asan_unpoison_memory_region (const void *addr, __SIZE_TYPE__ size)
__device__ int __asan_address_is_poisoned (const void *addr)
__device__ void * __asan_region_is_poisoned (void *beg, __SIZE_TYPE__ size)

Variables

__device__ float
__device__ int
__device__ double
__device__ _Float16
__device__ __2f16
__device__ __2i16

Macro Definition Documentation

◆ __PRIVATE_AS

◆ ASAN_POISON_MEMORY_REGION

#define ASAN_POISON_MEMORY_REGION ( addr,
size )
Value:
((void)(addr), (void)(size))

Definition at line 323 of file __clang_hip_libdevice_declares.h.

◆ ASAN_UNPOISON_MEMORY_REGION

#define ASAN_UNPOISON_MEMORY_REGION ( addr,
size )
Value:
((void)(addr), (void)(size))

Definition at line 324 of file __clang_hip_libdevice_declares.h.

Typedef Documentation

◆ __attribute__

typedef unsigned char __v16qu __attribute__((__vector_size__(16)))

Zeroes the upper 128 bits (bits 255:128) of all YMM registers.

Swap the bytes of a 32-bit value and store it to memory.

Load a 32-bit value from memory and swap its bytes.

Swap the bytes of a 16-bit value and store it to memory.

Returns a 64-bit hardware-generated random value.

Returns a 32-bit hardware-generated random value.

This intrinsic corresponds to the VZEROUPPER instruction.

This intrinsic corresponds to the RDRAND instruction.

Parameters
__pA pointer to a 32-bit memory location to place the random value.
Returns
1 if the value was successfully generated, 0 otherwise.

This intrinsic corresponds to the RDRAND instruction.

Parameters
__pA pointer to a 64-bit memory location to place the random value.
Returns
1 if the value was successfully generated, 0 otherwise.

This intrinsic corresponds to the MOVBE instruction.

Parameters
__PA pointer to the memory for storing the swapped value.
__DThe 16-bit value to be byte-swapped.

This intrinsic corresponds to the MOVBE instruction.

Parameters
__PA pointer to the 32-bit value to load.
Returns
The byte-swapped value.

This intrinsic corresponds to the MOVBE instruction.

Parameters
__PA pointer to the memory for storing the swapped value.
__DThe 32-bit value to be byte-swapped.

Definition at line 285 of file __clang_hip_libdevice_declares.h.

Function Documentation

◆ __asan_address_is_poisoned()

__device__ int __asan_address_is_poisoned ( const void * addr)

◆ __asan_poison_memory_region()

__device__ void __asan_poison_memory_region ( const void * addr,
__SIZE_TYPE__ size )

◆ __asan_region_is_poisoned()

__device__ void * __asan_region_is_poisoned ( void * beg,
__SIZE_TYPE__ size )

◆ __asan_unpoison_memory_region()

__device__ void __asan_unpoison_memory_region ( const void * addr,
__SIZE_TYPE__ size )

◆ __attribute__() [1/2]

__device__ __attribute__ ( (const) )

References __device__, and float.

◆ __attribute__() [2/2]

__device__ __attribute__ ( (pure) )

References __device__.

◆ __ocml_cos_2f16()

__device__ __2f16 __ocml_cos_2f16 ( __2f16 )

References __2f16, __device__, and __ocml_cos_2f16().

Referenced by __ocml_cos_2f16().

◆ __ocml_cos_f16()

__device__ _Float16 __ocml_cos_f16 ( _Float16 )

References __device__, __ocml_cos_f16(), and _Float16.

Referenced by __ocml_cos_f16().

◆ __ocml_cos_f32()

__device__ float __ocml_cos_f32 ( float )

References __device__, and __ocml_cos_f32().

Referenced by __ocml_cos_f32(), and cosf().

◆ __ocml_cos_f64()

__device__ double __ocml_cos_f64 ( double )

References __device__, and __ocml_cos_f64().

Referenced by __ocml_cos_f64(), and cos().

◆ __ocml_cospi_f32()

__device__ float __ocml_cospi_f32 ( float )

References __device__, and __ocml_cospi_f32().

Referenced by __ocml_cospi_f32(), and cospif().

◆ __ocml_cospi_f64()

__device__ double __ocml_cospi_f64 ( double )

References __device__, and __ocml_cospi_f64().

Referenced by __ocml_cospi_f64(), and cospi().

◆ __ocml_frexp_f32()

__device__ float __ocml_frexp_f32 ( float ,
__PRIVATE_AS int *  )

◆ __ocml_frexp_f64()

__device__ double __ocml_frexp_f64 ( double ,
__PRIVATE_AS int *  )

◆ __ocml_i0_f32()

__device__ float __ocml_i0_f32 ( float )

References __device__, and __ocml_i0_f32().

Referenced by __ocml_i0_f32(), and cyl_bessel_i0f().

◆ __ocml_i0_f64()

__device__ double __ocml_i0_f64 ( double )

References __device__, and __ocml_i0_f64().

Referenced by __ocml_i0_f64(), and cyl_bessel_i0().

◆ __ocml_i1_f32()

__device__ float __ocml_i1_f32 ( float )

References __device__, and __ocml_i1_f32().

Referenced by __ocml_i1_f32(), and cyl_bessel_i1f().

◆ __ocml_i1_f64()

__device__ double __ocml_i1_f64 ( double )

References __device__, and __ocml_i1_f64().

Referenced by __ocml_i1_f64(), and cyl_bessel_i1().

◆ __ocml_j0_f32()

__device__ float __ocml_j0_f32 ( float )

References __device__, and __ocml_j0_f32().

Referenced by __ocml_j0_f32(), and j0f().

◆ __ocml_j0_f64()

__device__ double __ocml_j0_f64 ( double )

References __device__, and __ocml_j0_f64().

Referenced by __ocml_j0_f64(), and j0().

◆ __ocml_j1_f32()

__device__ float __ocml_j1_f32 ( float )

References __device__, and __ocml_j1_f32().

Referenced by __ocml_j1_f32(), and j1f().

◆ __ocml_j1_f64()

__device__ double __ocml_j1_f64 ( double )

References __device__, and __ocml_j1_f64().

Referenced by __ocml_j1_f64(), and j1().

◆ __ocml_lgamma_f32()

__device__ float __ocml_lgamma_f32 ( float )

References __device__, and __ocml_lgamma_f32().

Referenced by __ocml_lgamma_f32(), and lgammaf().

◆ __ocml_lgamma_f64()

__device__ double __ocml_lgamma_f64 ( double )

References __device__, and __ocml_lgamma_f64().

Referenced by __ocml_lgamma_f64(), and lgamma().

◆ __ocml_modf_f32()

__device__ float __ocml_modf_f32 ( float ,
__PRIVATE_AS float *  )

References __device__, __ocml_modf_f32(), and __PRIVATE_AS.

Referenced by __ocml_modf_f32(), and modff().

◆ __ocml_modf_f64()

__device__ double __ocml_modf_f64 ( double ,
__PRIVATE_AS double *  )

References __device__, __ocml_modf_f64(), and __PRIVATE_AS.

Referenced by __ocml_modf_f64(), and modf().

◆ __ocml_native_cos_f32()

__device__ float __ocml_native_cos_f32 ( float )

◆ __ocml_native_sin_f32()

__device__ float __ocml_native_sin_f32 ( float )

◆ __ocml_remquo_f32()

__device__ float __ocml_remquo_f32 ( float ,
float ,
__PRIVATE_AS int *  )

◆ __ocml_remquo_f64()

__device__ double __ocml_remquo_f64 ( double ,
double ,
__PRIVATE_AS int *  )

◆ __ocml_sin_2f16()

__device__ __2f16 __ocml_sin_2f16 ( __2f16 )

References __2f16, __device__, and __ocml_sin_2f16().

Referenced by __ocml_sin_2f16().

◆ __ocml_sin_f16()

__device__ _Float16 __ocml_sin_f16 ( _Float16 )

References __device__, __ocml_sin_f16(), and _Float16.

Referenced by __ocml_sin_f16().

◆ __ocml_sin_f32()

__device__ float __ocml_sin_f32 ( float )

References __device__, and __ocml_sin_f32().

Referenced by __ocml_sin_f32(), and sinf().

◆ __ocml_sin_f64()

__device__ double __ocml_sin_f64 ( double )

References __device__, and __ocml_sin_f64().

Referenced by __ocml_sin_f64(), and sin().

◆ __ocml_sincos_f32()

__device__ float __ocml_sincos_f32 ( float ,
__PRIVATE_AS float *  )

◆ __ocml_sincos_f64()

__device__ double __ocml_sincos_f64 ( double ,
__PRIVATE_AS double *  )

◆ __ocml_sincospi_f32()

__device__ float __ocml_sincospi_f32 ( float ,
__PRIVATE_AS float *  )

◆ __ocml_sincospi_f64()

__device__ double __ocml_sincospi_f64 ( double ,
__PRIVATE_AS double *  )

◆ __ocml_sinpi_f32()

__device__ float __ocml_sinpi_f32 ( float )

References __device__, and __ocml_sinpi_f32().

Referenced by __ocml_sinpi_f32(), and sinpif().

◆ __ocml_sinpi_f64()

__device__ double __ocml_sinpi_f64 ( double )

References __device__, and __ocml_sinpi_f64().

Referenced by __ocml_sinpi_f64(), and sinpi().

◆ __ocml_tan_f32()

__device__ float __ocml_tan_f32 ( float )

References __device__, and __ocml_tan_f32().

Referenced by __ocml_tan_f32(), and tanf().

◆ __ocml_tan_f64()

__device__ double __ocml_tan_f64 ( double )

References __device__, and __ocml_tan_f64().

Referenced by __ocml_tan_f64(), and tan().

◆ __ocml_tgamma_f32()

__device__ float __ocml_tgamma_f32 ( float )

References __device__, and __ocml_tgamma_f32().

Referenced by __ocml_tgamma_f32(), and tgammaf().

◆ __ocml_tgamma_f64()

__device__ double __ocml_tgamma_f64 ( double )

References __device__, and __ocml_tgamma_f64().

Referenced by __ocml_tgamma_f64(), and tgamma().

◆ __ocml_y0_f32()

__device__ float __ocml_y0_f32 ( float )

References __device__, and __ocml_y0_f32().

Referenced by __ocml_y0_f32(), and y0f().

◆ __ocml_y0_f64()

__device__ double __ocml_y0_f64 ( double )

References __device__, and __ocml_y0_f64().

Referenced by __ocml_y0_f64(), and y0().

◆ __ocml_y1_f32()

__device__ float __ocml_y1_f32 ( float )

References __device__, and __ocml_y1_f32().

Referenced by __ocml_y1_f32(), and y1f().

◆ __ocml_y1_f64()

__device__ double __ocml_y1_f64 ( double )

References __device__, __ocml_y1_f64(), and _Float16.

Referenced by __ocml_y1_f64(), and y1().

Variable Documentation

◆ __2f16

__device__ __2f16

Definition at line 296 of file __clang_hip_libdevice_declares.h.

Referenced by __ocml_cos_2f16(), and __ocml_sin_2f16().

◆ __2i16

__device__ __2i16

Definition at line 308 of file __clang_hip_libdevice_declares.h.

◆ _Float16

__device__ _Float16

Definition at line 268 of file __clang_hip_libdevice_declares.h.

Referenced by __ocml_cos_f16(), __ocml_sin_f16(), and __ocml_y1_f64().

◆ double

◆ float

__device__ float

Definition at line 28 of file __clang_hip_libdevice_declares.h.

Referenced by __attribute__(), and vec_promote().

◆ int

Definition at line 68 of file __clang_hip_libdevice_declares.h.

Referenced by __divdc3(), __divsc3(), _mulx_u32(), abs(), clang::Sema::AddMethodCandidate(), clang::SourceManager::AllocateLoadedSLocEntries(), BuildImplicitMemberInitializer(), clang::Sema::BuildMemberReferenceExpr(), checkArithmeticOrEnumeralThreeWayCompare(), clang::SemaARM::CheckARMCoprocessorImmediate(), clang::Sema::CheckCountedByAttrOnField(), CheckCXX98CompatAccessibleCopy(), clang::Sema::CheckExplicitlyDefaultedComparison(), CheckIncrementDecrementOperand(), clang::Sema::CheckMemberPointerConversion(), checkMethodFamilyMismatch(), clang::interp::CheckMulUB(), CopyObject(), clang::ImplicitConversionSequence::DiagnoseAmbiguousConversion(), diagnoseInvalidUnicodeCodepointInIdentifier(), DiagnoseInvisibleNamespace(), diagnoseMissingArgument(), DiagnoseReinterpretUpDownCast(), diagnoseRepeatedUseOfWeak(), clang::Sema::DiagnoseSentinelCalls(), diagnoseUnsatisfiedConceptIdExpr(), diagnoseUnsatisfiedConstraintExpr(), diagnoseUnsatisfiedRequirement(), diagnoseUnsatisfiedRequirement(), diagnoseWellFormedUnsatisfiedConstraintExpr(), clang::SourceManager::dump(), clang::ento::PathDiagnosticConsumer::FlushDiagnostics(), clang::CodeGen::CodeGenFunction::generateBuiltinOSLogHelperFunction(), GetDeclSpecTypeForDeclarator(), GetImplicitConversionName(), handleDeviceKernelAttr(), handleFunctionTypeAttr(), clang::SemaM68k::handleInterruptAttr(), clang::SemaMSP430::handleInterruptAttr(), clang::Decl::isReachable(), clang::Decl::isUnconditionallyVisible(), LookupMemberExpr(), clang::OverloadCandidateSet::NoteCandidates(), clang::TemplateSpecCandidateSet::NoteCandidates(), printStateTraitWithStackFrameJson(), clang::Sema::PrintStats(), clang::targets::X86TargetInfo::validateAsmConstraint(), vec_abs(), vec_add(), vec_add(), vec_and(), vec_and(), vec_and(), vec_and(), vec_and(), vec_andc(), vec_andc(), vec_andc(), vec_andc(), vec_andc(), vec_nor(), vec_or(), vec_or(), vec_or(), vec_or(), vec_or(), vec_promote(), vec_promote(), vec_sel(), vec_sel(), vec_sel(), vec_sel(), vec_sel(), vec_sel(), vec_sl(), vec_sr(), vec_sub(), vec_sub(), vec_vadduwm(), vec_vadduwm(), vec_vand(), vec_vand(), vec_vand(), vec_vand(), vec_vand(), vec_vandc(), vec_vandc(), vec_vandc(), vec_vandc(), vec_vandc(), vec_vnor(), vec_vor(), vec_vor(), vec_vor(), vec_vor(), vec_vor(), vec_vsel(), vec_vsel(), vec_vsel(), vec_vsel(), vec_vsel(), vec_vsel(), vec_vsubuwm(), vec_vsubuwm(), vec_vxor(), vec_vxor(), vec_vxor(), vec_vxor(), vec_vxor(), vec_xor(), vec_xor(), vec_xor(), vec_xor(), and vec_xor().