Halide
Halide::SimdOpCheckTest Class Referenceabstract

#include <simd_op_check.h>

Public Member Functions

 SimdOpCheckTest (const Target t, int w, int h)
 
virtual ~SimdOpCheckTest ()=default
 
size_t get_num_threads () const
 
void set_num_threads (size_t n)
 
bool can_run_code () const
 
bool wildcard_match (const char *p, const char *str) const
 
bool wildcard_match (const std::string &p, const std::string &str) const
 
bool wildcard_search (const std::string &p, const std::string &str) const
 
TestResult check_one (const std::string &op, const std::string &name, int vector_width, Expr e)
 
void check (std::string op, int vector_width, Expr e)
 
virtual void add_tests ()=0
 
virtual void setup_images ()
 
virtual bool test_all ()
 

Public Attributes

std::string filter {"*"}
 
std::string output_directory {Internal::get_test_tmp_dir()}
 
std::vector< Tasktasks
 
Target target
 
ImageParam in_f32 {Float(32), 1, "in_f32"}
 
ImageParam in_f64 {Float(64), 1, "in_f64"}
 
ImageParam in_i8 {Int(8), 1, "in_i8"}
 
ImageParam in_u8 {UInt(8), 1, "in_u8"}
 
ImageParam in_i16 {Int(16), 1, "in_i16"}
 
ImageParam in_u16 {UInt(16), 1, "in_u16"}
 
ImageParam in_i32 {Int(32), 1, "in_i32"}
 
ImageParam in_u32 {UInt(32), 1, "in_u32"}
 
ImageParam in_i64 {Int(64), 1, "in_i64"}
 
ImageParam in_u64 {UInt(64), 1, "in_u64"}
 
const std::vector< ImageParamimage_params {in_f32, in_f64, in_i8, in_u8, in_i16, in_u16, in_i32, in_u32, in_i64, in_u64}
 
const std::vector< Argumentarg_types {in_f32, in_f64, in_i8, in_u8, in_i16, in_u16, in_i32, in_u32, in_i64, in_u64}
 
int W
 
int H
 

Detailed Description

Definition at line 22 of file simd_op_check.h.

Constructor & Destructor Documentation

◆ SimdOpCheckTest()

◆ ~SimdOpCheckTest()

virtual Halide::SimdOpCheckTest::~SimdOpCheckTest ( )
virtualdefault

Member Function Documentation

◆ get_num_threads()

size_t Halide::SimdOpCheckTest::get_num_threads ( ) const
inline

Definition at line 56 of file simd_op_check.h.

◆ set_num_threads()

void Halide::SimdOpCheckTest::set_num_threads ( size_t  n)
inline

Definition at line 60 of file simd_op_check.h.

◆ can_run_code()

◆ wildcard_match() [1/2]

bool Halide::SimdOpCheckTest::wildcard_match ( const char *  p,
const char *  str 
) const
inline

Definition at line 91 of file simd_op_check.h.

Referenced by check(), wildcard_match(), and wildcard_search().

◆ wildcard_match() [2/2]

bool Halide::SimdOpCheckTest::wildcard_match ( const std::string &  p,
const std::string &  str 
) const
inline

Definition at line 121 of file simd_op_check.h.

References wildcard_match().

◆ wildcard_search()

bool Halide::SimdOpCheckTest::wildcard_search ( const std::string &  p,
const std::string &  str 
) const
inline

Definition at line 126 of file simd_op_check.h.

References wildcard_match().

Referenced by check_one().

◆ check_one()

◆ check()

void Halide::SimdOpCheckTest::check ( std::string  op,
int  vector_width,
Expr  e 
)
inline

Definition at line 281 of file simd_op_check.h.

References filter, tasks, and wildcard_match().

◆ add_tests()

virtual void Halide::SimdOpCheckTest::add_tests ( )
pure virtual

Referenced by test_all().

◆ setup_images()

virtual void Halide::SimdOpCheckTest::setup_images ( )
inlinevirtual

Definition at line 298 of file simd_op_check.h.

References image_params.

Referenced by check_one().

◆ test_all()

virtual bool Halide::SimdOpCheckTest::test_all ( )
inlinevirtual

Member Data Documentation

◆ filter

std::string Halide::SimdOpCheckTest::filter {"*"}

Definition at line 24 of file simd_op_check.h.

Referenced by check().

◆ output_directory

std::string Halide::SimdOpCheckTest::output_directory {Internal::get_test_tmp_dir()}

Definition at line 25 of file simd_op_check.h.

Referenced by check_one().

◆ tasks

std::vector<Task> Halide::SimdOpCheckTest::tasks

Definition at line 26 of file simd_op_check.h.

Referenced by check(), and test_all().

◆ target

Target Halide::SimdOpCheckTest::target

Definition at line 28 of file simd_op_check.h.

Referenced by can_run_code(), check_one(), and SimdOpCheckTest().

◆ in_f32

ImageParam Halide::SimdOpCheckTest::in_f32 {Float(32), 1, "in_f32"}

Definition at line 30 of file simd_op_check.h.

◆ in_f64

ImageParam Halide::SimdOpCheckTest::in_f64 {Float(64), 1, "in_f64"}

Definition at line 31 of file simd_op_check.h.

◆ in_i8

ImageParam Halide::SimdOpCheckTest::in_i8 {Int(8), 1, "in_i8"}

Definition at line 32 of file simd_op_check.h.

◆ in_u8

ImageParam Halide::SimdOpCheckTest::in_u8 {UInt(8), 1, "in_u8"}

Definition at line 33 of file simd_op_check.h.

◆ in_i16

ImageParam Halide::SimdOpCheckTest::in_i16 {Int(16), 1, "in_i16"}

Definition at line 34 of file simd_op_check.h.

◆ in_u16

ImageParam Halide::SimdOpCheckTest::in_u16 {UInt(16), 1, "in_u16"}

Definition at line 35 of file simd_op_check.h.

◆ in_i32

ImageParam Halide::SimdOpCheckTest::in_i32 {Int(32), 1, "in_i32"}

Definition at line 36 of file simd_op_check.h.

◆ in_u32

ImageParam Halide::SimdOpCheckTest::in_u32 {UInt(32), 1, "in_u32"}

Definition at line 37 of file simd_op_check.h.

◆ in_i64

ImageParam Halide::SimdOpCheckTest::in_i64 {Int(64), 1, "in_i64"}

Definition at line 38 of file simd_op_check.h.

◆ in_u64

ImageParam Halide::SimdOpCheckTest::in_u64 {UInt(64), 1, "in_u64"}

Definition at line 39 of file simd_op_check.h.

◆ image_params

const std::vector<ImageParam> Halide::SimdOpCheckTest::image_params {in_f32, in_f64, in_i8, in_u8, in_i16, in_u16, in_i32, in_u32, in_i64, in_u64}

Definition at line 41 of file simd_op_check.h.

Referenced by check_one(), and setup_images().

◆ arg_types

const std::vector<Argument> Halide::SimdOpCheckTest::arg_types {in_f32, in_f64, in_i8, in_u8, in_i16, in_u16, in_i32, in_u32, in_i64, in_u64}

Definition at line 42 of file simd_op_check.h.

Referenced by check_one().

◆ W

int Halide::SimdOpCheckTest::W

Definition at line 43 of file simd_op_check.h.

Referenced by check_one().

◆ H

int Halide::SimdOpCheckTest::H

Definition at line 44 of file simd_op_check.h.

Referenced by check_one().


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