clang  12.0.0git
Typedefs | Functions | Variables
__clang_hip_libdevice_declares.h File Reference

Go to the source code of this file.

Typedefs

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

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, __attribute__((address_space(5))) 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, __attribute__((address_space(5))) float *)
 
__device__ float __ocml_remquo_f32 (float, float, __attribute__((address_space(5))) int *)
 
__device__ float __ocml_sincos_f32 (float, __attribute__((address_space(5))) float *)
 
__device__ float __ocml_sincospi_f32 (float, __attribute__((address_space(5))) 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, __attribute__((address_space(5))) 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, __attribute__((address_space(5))) double *)
 
__device__ double __ocml_remquo_f64 (double, double, __attribute__((address_space(5))) int *)
 
__device__ double __ocml_sincos_f64 (double, __attribute__((address_space(5))) double *)
 
__device__ double __ocml_sincospi_f64 (double, __attribute__((address_space(5))) 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 __llvm_amdgcn_rcp_2f16 (__2f16 __x)
 
__device__ __2f16 __ocml_sin_2f16 (__2f16)
 

Variables

__device__ float
 
__device__ int
 
__device__ double
 
__device__ _Float16
 
__device__ __2f16 b
 
__device__ __2f16 float c
 
__device__ __2f16 float bool s
 
__device__ __2f16
 

Typedef Documentation

◆ __attribute__

typedef unsigned int __v4su __attribute__((__vector_size__(16)))

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

Loads a memory sequence containing the specified memory address into the L1 data cache and sets the cache-coherency to modified.

Adds the unsigned integer operand to the CRC-32C checksum of the second unsigned integer operand.

Adds the unsigned integer operand to the CRC-32C checksum of the unsigned short operand.

Cast a 64-bit unsigned integer value to a 64-bit float value.

Cast a 32-bit unsigned integer value to a 32-bit float value.

Cast a 64-bit float value to a 64-bit unsigned integer value.

Counts the number of bits in the source operand having a value of 1.

Swaps the bytes in the input.

Find the first set bit starting from the msb.

This intrinsic corresponds to the VZEROUPPER instruction.

Result is undefined if input is 0.

This intrinsic corresponds to the BSR instruction or the LZCNT instruction and an XOR .

Parameters
__AA 32-bit integer operand.
Returns
A 32-bit integer containing the bit number.

Converting little endian to big endian or vice versa.

This intrinsic corresponds to the BSWAP instruction.

Parameters
__AA 32-bit integer operand.
Returns
A 32-bit integer containing the swapped bytes.

This intrinsic corresponds to the POPCNT instruction or a a sequence of arithmetic and logic ops to calculate it.

Parameters
__AAn unsigned 32-bit integer operand.
Returns
A 32-bit integer containing the number of bits with value 1 in the source operand.

This intrinsic corresponds to the VMOVQ / MOVQ instruction in x86_64, and corresponds to the VMOVL / MOVL instruction in ia32.

Parameters
__AA 64-bit float value.
Returns
a 64-bit unsigned integer containing the converted value.

This intrinsic corresponds to the VMOVQ / MOVQ instruction in x86_64, and corresponds to the FLDS instruction in ia32.

Parameters
__AA 32-bit unsigned integer value.
Returns
a 32-bit float value containing the converted value.

This intrinsic corresponds to the VMOVQ / MOVQ instruction in x86_64, and corresponds to the FLDL instruction in ia32.

Parameters
__AA 64-bit unsigned integer value.
Returns
a 64-bit float value containing the converted value.

This intrinsic corresponds to the CRC32W instruction.

Parameters
__CAn unsigned integer operand to add to the CRC-32C checksum of operand __D.
__DAn unsigned 16-bit integer operand used to compute the CRC-32C checksum.
Returns
The result of adding operand __C to the CRC-32C checksum of operand __D.

This intrinsic corresponds to the CRC32D instruction.

Parameters
__CAn unsigned integer operand to add to the CRC-32C checksum of operand __D.
__DAn unsigned 32-bit integer operand used to compute the CRC-32C checksum.
Returns
The result of adding operand __C to the CRC-32C checksum of operand __D.

This provides a hint to the processor that the cache line will be modified. It is intended for use when the cache line will be written to shortly after the prefetch is performed.

Note that the effect of this intrinsic is dependent on the processor implementation.

This intrinsic corresponds to the PREFETCHW instruction.

Parameters
__PA pointer specifying the memory address to be prefetched.

Definition at line 294 of file __clang_hip_libdevice_declares.h.

Function Documentation

◆ __attribute__() [1/2]

__device__ __attribute__ ( (const)  )

◆ __attribute__() [2/2]

__device__ __attribute__ ( (pure)  )

◆ __llvm_amdgcn_rcp_2f16()

__device__ __2f16 __llvm_amdgcn_rcp_2f16 ( __2f16  __x)
inline

Definition at line 314 of file __clang_hip_libdevice_declares.h.

References __2f16, and __ocml_sin_2f16().

◆ __ocml_cos_2f16()

__device__ __2f16 __ocml_cos_2f16 ( __2f16  )

◆ __ocml_cos_f16()

__device__ _Float16 __ocml_cos_f16 ( _Float16  )

◆ __ocml_cos_f32()

__device__ float __ocml_cos_f32 ( float  )

Referenced by cosf().

◆ __ocml_cos_f64()

__device__ double __ocml_cos_f64 ( double  )

Referenced by cos().

◆ __ocml_cospi_f32()

__device__ float __ocml_cospi_f32 ( float  )

Referenced by cospif().

◆ __ocml_cospi_f64()

__device__ double __ocml_cospi_f64 ( double  )

Referenced by cospi().

◆ __ocml_frexp_f32()

__device__ float __ocml_frexp_f32 ( float  ,
__attribute__((address_space(5))) int  
)

Referenced by frexpf().

◆ __ocml_frexp_f64()

__device__ double __ocml_frexp_f64 ( double  ,
__attribute__((address_space(5))) int  
)

Referenced by frexp().

◆ __ocml_i0_f32()

__device__ float __ocml_i0_f32 ( float  )

Referenced by cyl_bessel_i0f().

◆ __ocml_i0_f64()

__device__ double __ocml_i0_f64 ( double  )

Referenced by cyl_bessel_i0().

◆ __ocml_i1_f32()

__device__ float __ocml_i1_f32 ( float  )

Referenced by cyl_bessel_i1f().

◆ __ocml_i1_f64()

__device__ double __ocml_i1_f64 ( double  )

Referenced by cyl_bessel_i1().

◆ __ocml_j0_f32()

__device__ float __ocml_j0_f32 ( float  )

Referenced by j0f().

◆ __ocml_j0_f64()

__device__ double __ocml_j0_f64 ( double  )

Referenced by j0().

◆ __ocml_j1_f32()

__device__ float __ocml_j1_f32 ( float  )

Referenced by j1f().

◆ __ocml_j1_f64()

__device__ double __ocml_j1_f64 ( double  )

Referenced by j1().

◆ __ocml_lgamma_f32()

__device__ float __ocml_lgamma_f32 ( float  )

Referenced by lgammaf().

◆ __ocml_lgamma_f64()

__device__ double __ocml_lgamma_f64 ( double  )

Referenced by lgamma().

◆ __ocml_modf_f32()

__device__ float __ocml_modf_f32 ( float  ,
__attribute__((address_space(5))) float  
)

Referenced by modff().

◆ __ocml_modf_f64()

__device__ double __ocml_modf_f64 ( double  ,
__attribute__((address_space(5))) double  
)

Referenced by modf().

◆ __ocml_native_cos_f32()

__device__ float __ocml_native_cos_f32 ( float  )

Referenced by __cosf(), and __sincosf().

◆ __ocml_native_sin_f32()

__device__ float __ocml_native_sin_f32 ( float  )

Referenced by __sincosf(), and __sinf().

◆ __ocml_remquo_f32()

__device__ float __ocml_remquo_f32 ( float  ,
float  ,
__attribute__((address_space(5))) int  
)

Referenced by remquof().

◆ __ocml_remquo_f64()

__device__ double __ocml_remquo_f64 ( double  ,
double  ,
__attribute__((address_space(5))) int  
)

Referenced by remquo().

◆ __ocml_sin_2f16()

__device__ __2f16 __ocml_sin_2f16 ( __2f16  )

Referenced by __llvm_amdgcn_rcp_2f16().

◆ __ocml_sin_f16()

__device__ _Float16 __ocml_sin_f16 ( _Float16  )

◆ __ocml_sin_f32()

__device__ float __ocml_sin_f32 ( float  )

Referenced by sinf().

◆ __ocml_sin_f64()

__device__ double __ocml_sin_f64 ( double  )

Referenced by sin().

◆ __ocml_sincos_f32()

__device__ float __ocml_sincos_f32 ( float  ,
__attribute__((address_space(5))) float  
)

Referenced by sincosf().

◆ __ocml_sincos_f64()

__device__ double __ocml_sincos_f64 ( double  ,
__attribute__((address_space(5))) double  
)

Referenced by sincos().

◆ __ocml_sincospi_f32()

__device__ float __ocml_sincospi_f32 ( float  ,
__attribute__((address_space(5))) float  
)

Referenced by sincospif().

◆ __ocml_sincospi_f64()

__device__ double __ocml_sincospi_f64 ( double  ,
__attribute__((address_space(5))) double  
)

Referenced by sincospi().

◆ __ocml_sinpi_f32()

__device__ float __ocml_sinpi_f32 ( float  )

Referenced by sinpif().

◆ __ocml_sinpi_f64()

__device__ double __ocml_sinpi_f64 ( double  )

Referenced by sinpi().

◆ __ocml_tan_f32()

__device__ float __ocml_tan_f32 ( float  )

Referenced by __tanf(), and tanf().

◆ __ocml_tan_f64()

__device__ double __ocml_tan_f64 ( double  )

Referenced by tan().

◆ __ocml_tgamma_f32()

__device__ float __ocml_tgamma_f32 ( float  )

Referenced by tgammaf().

◆ __ocml_tgamma_f64()

__device__ double __ocml_tgamma_f64 ( double  )

Referenced by tgamma().

◆ __ocml_y0_f32()

__device__ float __ocml_y0_f32 ( float  )

Referenced by y0f().

◆ __ocml_y0_f64()

__device__ double __ocml_y0_f64 ( double  )

Referenced by y0().

◆ __ocml_y1_f32()

__device__ float __ocml_y1_f32 ( float  )

Referenced by y1f().

◆ __ocml_y1_f64()

__device__ double __ocml_y1_f64 ( double  )

Referenced by y1().

Variable Documentation

◆ __2f16

__device__ __2f16

Definition at line 307 of file __clang_hip_libdevice_declares.h.

Referenced by __llvm_amdgcn_rcp_2f16().

◆ _Float16

__device__ _Float16

Definition at line 279 of file __clang_hip_libdevice_declares.h.

◆ b

__device__ __2f16 b

◆ c

__device__ __2f16 float c

◆ double

__device__ double

◆ float

__device__ float

Definition at line 20 of file __clang_hip_libdevice_declares.h.

Referenced by clang::ASTReader::PrintStats(), and vec_promote().

◆ int

__device__ int

◆ s

__device__ __2f16 float bool s