Halide
Halide::Internal::IRVisitor Class Reference

A base class for algorithms that need to recursively walk over the IR. More...

#include <IRVisitor.h>

Inherited by CheckCalls, Halide::Internal::Closure, Halide::Internal::CodeGen_LLVM, Halide::Internal::FindAllCalls, Halide::Internal::IRGraphVisitor, and Halide::Internal::IRPrinter.

Public Member Functions

 IRVisitor ()
 
virtual ~IRVisitor ()
 

Protected Member Functions

virtual void visit (const IntImm *)
 
virtual void visit (const UIntImm *)
 
virtual void visit (const FloatImm *)
 
virtual void visit (const StringImm *)
 
virtual void visit (const Cast *)
 
virtual void visit (const Variable *)
 
virtual void visit (const Add *)
 
virtual void visit (const Sub *)
 
virtual void visit (const Mul *)
 
virtual void visit (const Div *)
 
virtual void visit (const Mod *)
 
virtual void visit (const Min *)
 
virtual void visit (const Max *)
 
virtual void visit (const EQ *)
 
virtual void visit (const NE *)
 
virtual void visit (const LT *)
 
virtual void visit (const LE *)
 
virtual void visit (const GT *)
 
virtual void visit (const GE *)
 
virtual void visit (const And *)
 
virtual void visit (const Or *)
 
virtual void visit (const Not *)
 
virtual void visit (const Select *)
 
virtual void visit (const Load *)
 
virtual void visit (const Ramp *)
 
virtual void visit (const Broadcast *)
 
virtual void visit (const Call *)
 
virtual void visit (const Let *)
 
virtual void visit (const LetStmt *)
 
virtual void visit (const AssertStmt *)
 
virtual void visit (const ProducerConsumer *)
 
virtual void visit (const For *)
 
virtual void visit (const Store *)
 
virtual void visit (const Provide *)
 
virtual void visit (const Allocate *)
 
virtual void visit (const Free *)
 
virtual void visit (const Realize *)
 
virtual void visit (const Block *)
 
virtual void visit (const IfThenElse *)
 
virtual void visit (const Evaluate *)
 
virtual void visit (const Shuffle *)
 
virtual void visit (const VectorReduce *)
 
virtual void visit (const Prefetch *)
 
virtual void visit (const Fork *)
 
virtual void visit (const Acquire *)
 
virtual void visit (const Atomic *)
 

Detailed Description

A base class for algorithms that need to recursively walk over the IR.

The default implementations just recursively walk over the children. Override the ones you care about.

Definition at line 21 of file IRVisitor.h.

Constructor & Destructor Documentation

◆ IRVisitor()

Halide::Internal::IRVisitor::IRVisitor ( )

◆ ~IRVisitor()

virtual Halide::Internal::IRVisitor::~IRVisitor ( )
virtual

Member Function Documentation

◆ visit() [1/46]

◆ visit() [2/46]

virtual void Halide::Internal::IRVisitor::visit ( const UIntImm )
protectedvirtual

◆ visit() [3/46]

◆ visit() [4/46]

virtual void Halide::Internal::IRVisitor::visit ( const StringImm )
protectedvirtual

◆ visit() [5/46]

◆ visit() [6/46]

virtual void Halide::Internal::IRVisitor::visit ( const Variable )
protectedvirtual

◆ visit() [7/46]

virtual void Halide::Internal::IRVisitor::visit ( const Add )
protectedvirtual

◆ visit() [8/46]

◆ visit() [9/46]

◆ visit() [10/46]

◆ visit() [11/46]

◆ visit() [12/46]

◆ visit() [13/46]

◆ visit() [14/46]

◆ visit() [15/46]

◆ visit() [16/46]

◆ visit() [17/46]

◆ visit() [18/46]

◆ visit() [19/46]

◆ visit() [20/46]

virtual void Halide::Internal::IRVisitor::visit ( const And )
protectedvirtual

◆ visit() [21/46]

virtual void Halide::Internal::IRVisitor::visit ( const Or )
protectedvirtual

◆ visit() [22/46]

virtual void Halide::Internal::IRVisitor::visit ( const Not )
protectedvirtual

◆ visit() [23/46]

◆ visit() [24/46]

◆ visit() [25/46]

◆ visit() [26/46]

◆ visit() [27/46]

◆ visit() [28/46]

◆ visit() [29/46]

virtual void Halide::Internal::IRVisitor::visit ( const LetStmt )
protectedvirtual

◆ visit() [30/46]

◆ visit() [31/46]

virtual void Halide::Internal::IRVisitor::visit ( const ProducerConsumer )
protectedvirtual

◆ visit() [32/46]

◆ visit() [33/46]

◆ visit() [34/46]

virtual void Halide::Internal::IRVisitor::visit ( const Provide )
protectedvirtual

◆ visit() [35/46]

◆ visit() [36/46]

◆ visit() [37/46]

virtual void Halide::Internal::IRVisitor::visit ( const Realize )
protectedvirtual

◆ visit() [38/46]

virtual void Halide::Internal::IRVisitor::visit ( const Block )
protectedvirtual

◆ visit() [39/46]

virtual void Halide::Internal::IRVisitor::visit ( const IfThenElse )
protectedvirtual

◆ visit() [40/46]

◆ visit() [41/46]

◆ visit() [42/46]

virtual void Halide::Internal::IRVisitor::visit ( const VectorReduce )
protectedvirtual

◆ visit() [43/46]

virtual void Halide::Internal::IRVisitor::visit ( const Prefetch )
protectedvirtual

◆ visit() [44/46]

virtual void Halide::Internal::IRVisitor::visit ( const Fork )
protectedvirtual

◆ visit() [45/46]

virtual void Halide::Internal::IRVisitor::visit ( const Acquire )
protectedvirtual

◆ visit() [46/46]


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