clang 20.0.0git
Macros | Typedefs | Functions | Variables
__clang_hip_libdevice_declares.h File Reference

Go to the source code of this file.

Macros

#define __DEPRECATED_SINCE_HIP_560(X)
 

Typedefs

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

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)
 
 __DEPRECATED_SINCE_HIP_560 ("use ((_Float16)1.0) / ") __device__ inline _Float16 __llvm_amdgcn_rcp_f16(_Float16 x)
 
 __DEPRECATED_SINCE_HIP_560 ("use ((__2f16)1.0) / ") __device__ inline __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 __ockl_bool s
 
__device__ __2f16
 
__device__ __2i16
 

Macro Definition Documentation

◆ __DEPRECATED_SINCE_HIP_560

#define __DEPRECATED_SINCE_HIP_560 (   X)

Definition at line 323 of file __clang_hip_libdevice_declares.h.

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 state to modified.

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.

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 293 of file __clang_hip_libdevice_declares.h.

◆ __ockl_bool

typedef _Bool __ockl_bool

Definition at line 300 of file __clang_hip_libdevice_declares.h.

Function Documentation

◆ __attribute__() [1/2]

__device__ __attribute__ ( (const)  )

◆ __attribute__() [2/2]

__device__ __attribute__ ( (pure)  )

◆ __DEPRECATED_SINCE_HIP_560() [1/2]

__DEPRECATED_SINCE_HIP_560 ( "use ((__2f16)1.0) / "  )

Definition at line 333 of file __clang_hip_libdevice_declares.h.

References __2f16.

◆ __DEPRECATED_SINCE_HIP_560() [2/2]

__DEPRECATED_SINCE_HIP_560 ( "use ((_Float16)1.0) / "  )

Definition at line 328 of file __clang_hip_libdevice_declares.h.

References _Float16.

◆ __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  
)

◆ __ocml_frexp_f64()

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

◆ __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  )

◆ __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().

◆ __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 313 of file __clang_hip_libdevice_declares.h.

Referenced by __DEPRECATED_SINCE_HIP_560().

◆ __2i16

__device__ __2i16

Definition at line 347 of file __clang_hip_libdevice_declares.h.

◆ _Float16

__device__ _Float16

Definition at line 276 of file __clang_hip_libdevice_declares.h.

Referenced by __DEPRECATED_SINCE_HIP_560().

◆ b

◆ c

Definition at line 304 of file __clang_hip_libdevice_declares.h.

Referenced by clang::html::AddLineNumbers(), consumeWhitespace(), clang::StringLiteral::containsNonAscii(), clang::StringLiteral::containsNonAsciiOrNull(), DecodeTypeFromStr(), clang::driver::RocmInstallationDetector::detectHIPRuntime(), clang::markup::EmitString(), clang::html::EscapeText(), findMatchingPunctuation(), clang::ExtVectorType::getAccessorIdx(), clang::AnalysisDeclContext::getCFGReachablityAnalysis(), clang::AnalysisDeclContext::getCFGStmtMap(), clang::ExtVectorType::getNumericAccessorIdx(), clang::ExtVectorType::getPointAccessorIdx(), clang::targets::AArch64TargetInfo::getTargetDefines(), clang::ExtVectorType::isAccessorWithinNumElements(), clang::isAlphanumeric(), clang::isASCII(), clang::isAsciiIdentifierContinue(), clang::Lexer::isAsciiIdentifierContinueChar(), clang::isAsciiIdentifierStart(), clang::isDigit(), IsExponentPart(), clang::format::encoding::isHexDigit(), clang::isHexDigit(), clang::isHorizontalWhitespace(), clang::isLetter(), clang::isLowercase(), clang::format::encoding::isOctDigit(), clang::isPreprocessingNumberBody(), clang::isPrintable(), clang::isPunctuation(), clang::isRawStringDelimBody(), IsRGBA(), clang::isUppercase(), clang::isVerticalWhitespace(), clang::isWhitespace(), isWhitespaceExceptNL(), clang::NumericLiteralParser::NumericLiteralParser(), clang::analyze_format_string::ParseAmount(), parseChar(), parseId(), ParsePrintfSpecifier(), ParseScanfSpecifier(), parseStringId(), selectInterestingSourceRegion(), clang::CloneConstraint::splitCloneGroups(), clang::toLowercase(), and clang::toUppercase().

◆ double

__device__ double

◆ float

__device__ float

Definition at line 26 of file __clang_hip_libdevice_declares.h.

Referenced by vec_promote().

◆ int

Definition at line 67 of file __clang_hip_libdevice_declares.h.

Referenced by __divdc3(), __divsc3(), _mulx_u32(), abs(), clang::Sema::ActOnDecompositionDeclarator(), clang::Sema::ActOnFinishSwitchStmt(), clang::Sema::AddMethodCandidate(), clang::Sema::adjustMemberFunctionCC(), clang::SourceManager::AllocateLoadedSLocEntries(), clang::Sema::BuildMemberReferenceExpr(), checkArithmeticOrEnumeralThreeWayCompare(), clang::SemaARM::CheckARMCoprocessorImmediate(), clang::Sema::CheckCallingConvAttr(), clang::Sema::CheckComparisonCategoryType(), clang::Sema::CheckCompleteVariableDeclaration(), clang::Sema::CheckCountedByAttrOnField(), clang::driver::CudaInstallationDetector::CheckCudaVersionSupportsArch(), CheckCXX98CompatAccessibleCopy(), checkEnumArithmeticConversions(), clang::Sema::CheckExplicitlyDefaultedComparison(), CheckIncrementDecrementOperand(), checkMethodFamilyMismatch(), clang::Sema::CheckPointerToMemberOperands(), clang::Sema::CheckTemplateArgumentList(), clang::Sema::CheckTypenameType(), clang::Sema::CheckTypeTraitArity(), CopyObject(), clang::driver::CudaInstallationDetector::CudaInstallationDetector(), clang::Sema::DeduceAutoType(), clang::Sema::DeduceTemplateSpecializationFromInitializer(), clang::Sema::deduceVarTypeFromInitializer(), clang::InitializationSequence::Diagnose(), clang::ImplicitConversionSequence::DiagnoseAmbiguousConversion(), diagnoseInvalidUnicodeCodepointInIdentifier(), DiagnoseInvisibleNamespace(), clang::ODRDiagsEmitter::diagnoseMismatch(), diagnoseMissingArgument(), clang::Sema::diagnoseMissingImport(), clang::Sema::diagnoseMissingTemplateArguments(), DiagnoseReinterpretUpDownCast(), diagnoseRepeatedUseOfWeak(), clang::Sema::DiagnoseSentinelCalls(), clang::Sema::DiagnoseUnexpandedParameterPacks(), diagnoseUnsatisfiedRequirement(), diagnoseWellFormedUnsatisfiedConstraintExpr(), clang::SourceManager::dump(), clang::Sema::EnsureTemplateArgumentListConstraints(), clang::DeclSpec::Finish(), clang::ento::PathDiagnosticConsumer::FlushDiagnostics(), clang::GetConversionRank(), GetDeclSpecTypeForDeclarator(), GetImplicitConversionName(), clang::Sema::GetNameFromUnqualifiedId(), handleFunctionTypeAttr(), clang::SemaM68k::handleInterruptAttr(), clang::SemaMSP430::handleInterruptAttr(), clang::Decl::isReachable(), clang::Decl::isUnconditionallyVisible(), clang::Sema::LookupLiteralOperator(), LookupMemberExpr(), clang::Sema::MergeFunctionDecl(), clang::OverloadCandidateSet::NoteCandidates(), clang::TemplateSpecCandidateSet::NoteCandidates(), clang::RISCV::operator<<(), clang::Sema::PrintInstantiationStack(), printStateTraitWithLocationContextJson(), clang::targets::X86TargetInfo::validateAsmConstraint(), vec_abs(), vec_add(), vec_and(), vec_andc(), vec_nor(), vec_or(), vec_promote(), vec_sel(), vec_sl(), vec_sr(), vec_sub(), vec_vadduwm(), vec_vand(), vec_vandc(), vec_vnor(), vec_vor(), vec_vsel(), vec_vsubuwm(), vec_vxor(), vec_xor(), and wasLineContinuation().

◆ s