Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Halide::Runtime::Internal::CpuFeatures Struct Reference

#include <cpu_features.h>

Public Member Functions

ALWAYS_INLINE void set_known (int i)
 
ALWAYS_INLINE void set_available (int i)
 
ALWAYS_INLINE bool test_known (int i) const
 
ALWAYS_INLINE bool test_available (int i) const
 
ALWAYS_INLINE CpuFeatures ()
 

Public Attributes

uint64_t known [kWordCount]
 
uint64_t available [kWordCount]
 

Static Public Attributes

static const int kWordCount = (halide_target_feature_end + 63) / (sizeof(uint64_t) * 8)
 

Detailed Description

Definition at line 14 of file cpu_features.h.

Constructor & Destructor Documentation

◆ CpuFeatures()

ALWAYS_INLINE Halide::Runtime::Internal::CpuFeatures::CpuFeatures ( )
inline

Definition at line 34 of file cpu_features.h.

References available, known, and kWordCount.

Member Function Documentation

◆ set_known()

ALWAYS_INLINE void Halide::Runtime::Internal::CpuFeatures::set_known ( int i)
inline

Definition at line 17 of file cpu_features.h.

References known.

◆ set_available()

ALWAYS_INLINE void Halide::Runtime::Internal::CpuFeatures::set_available ( int i)
inline

Definition at line 21 of file cpu_features.h.

References available.

◆ test_known()

ALWAYS_INLINE bool Halide::Runtime::Internal::CpuFeatures::test_known ( int i) const
inline

Definition at line 25 of file cpu_features.h.

References known.

◆ test_available()

ALWAYS_INLINE bool Halide::Runtime::Internal::CpuFeatures::test_available ( int i) const
inline

Definition at line 29 of file cpu_features.h.

References available.

Member Data Documentation

◆ kWordCount

const int Halide::Runtime::Internal::CpuFeatures::kWordCount = (halide_target_feature_end + 63) / (sizeof(uint64_t) * 8)
static

Definition at line 15 of file cpu_features.h.

Referenced by CpuFeatures().

◆ known

uint64_t Halide::Runtime::Internal::CpuFeatures::known[kWordCount]

Definition at line 41 of file cpu_features.h.

Referenced by CpuFeatures(), set_known(), and test_known().

◆ available

uint64_t Halide::Runtime::Internal::CpuFeatures::available[kWordCount]

Definition at line 42 of file cpu_features.h.

Referenced by CpuFeatures(), set_available(), and test_available().


The documentation for this struct was generated from the following file: