Halide
Halide::Internal::CodeGen_ARM::Pattern Struct Reference

Various patterns to peephole match against. More...

#include <CodeGen_ARM.h>

Public Types

enum  PatternType { Simple = 0, LeftShift, RightShift, NarrowArgs }
 

Public Member Functions

 Pattern ()=default
 
 Pattern (const std::string &i32, const std::string &i64, int l, Expr p, PatternType t=Simple)
 

Public Attributes

std::string intrin32
 Name of the intrinsic for 32-bit arm. More...
 
std::string intrin64
 Name of the intrinsic for 64-bit arm. More...
 
int intrin_lanes
 The native vector width of the intrinsic. More...
 
Expr pattern
 The pattern to match against. More...
 
PatternType type
 

Detailed Description

Various patterns to peephole match against.

Definition at line 41 of file CodeGen_ARM.h.

Member Enumeration Documentation

◆ PatternType

Enumerator
Simple 

Just match the pattern.

LeftShift 

Match the pattern if the RHS is a const power of two.

RightShift 

Match the pattern if the RHS is a const power of two.

NarrowArgs 

Match the pattern if the args can be losslessly narrowed.

Definition at line 46 of file CodeGen_ARM.h.

Constructor & Destructor Documentation

◆ Pattern() [1/2]

Halide::Internal::CodeGen_ARM::Pattern::Pattern ( )
default

◆ Pattern() [2/2]

Halide::Internal::CodeGen_ARM::Pattern::Pattern ( const std::string &  i32,
const std::string &  i64,
int  l,
Expr  p,
PatternType  t = Simple 
)
inline

Definition at line 53 of file CodeGen_ARM.h.

Member Data Documentation

◆ intrin32

std::string Halide::Internal::CodeGen_ARM::Pattern::intrin32

Name of the intrinsic for 32-bit arm.

Definition at line 42 of file CodeGen_ARM.h.

◆ intrin64

std::string Halide::Internal::CodeGen_ARM::Pattern::intrin64

Name of the intrinsic for 64-bit arm.

Definition at line 43 of file CodeGen_ARM.h.

◆ intrin_lanes

int Halide::Internal::CodeGen_ARM::Pattern::intrin_lanes

The native vector width of the intrinsic.

Definition at line 44 of file CodeGen_ARM.h.

◆ pattern

Expr Halide::Internal::CodeGen_ARM::Pattern::pattern

The pattern to match against.

Definition at line 45 of file CodeGen_ARM.h.

◆ type

PatternType Halide::Internal::CodeGen_ARM::Pattern::type

Definition at line 51 of file CodeGen_ARM.h.


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