|
Halide 21.0.0
Halide compiler and libraries
|
A ternary operator. More...
#include <IR.h>
Static Public Member Functions | |
| static Expr | make (Expr condition, Expr true_value, Expr false_value) |
Public Attributes | |
| Expr | condition |
| Expr | true_value |
| Expr | false_value |
| Public Attributes inherited from Halide::Internal::BaseExprNode | |
| Type | type |
| Public Attributes inherited from Halide::Internal::IRNode | |
| RefCount | ref_count |
| These classes are all managed with intrusive reference counting, so we also track a reference count. | |
| IRNodeType | node_type |
| Each IR node subclass has a unique identifier. | |
Static Public Attributes | |
| static const IRNodeType | _node_type = IRNodeType::Select |
Additional Inherited Members | |
| Public Member Functions inherited from Halide::Internal::ExprNode< Select > | |
| void | accept (IRVisitor *v) const override |
| We use the visitor pattern to traverse IR nodes throughout the compiler, so we have a virtual accept method which accepts visitors. | |
| Expr | mutate_expr (IRMutator *v) const override |
| ExprNode () | |
| ~ExprNode () override=default | |
| Public Member Functions inherited from Halide::Internal::BaseExprNode | |
| BaseExprNode (IRNodeType t) | |
| Public Member Functions inherited from Halide::Internal::IRNode | |
| IRNode (IRNodeType t) | |
| virtual | ~IRNode ()=default |
A ternary operator.
Evalutes 'true_value' and 'false_value', then selects between them based on 'condition'. Equivalent to the ternary operator in C.
References condition, false_value, and true_value.
Referenced by Halide::Internal::IRMatcher::SelectOp< C, T, F >::make().
| Expr Halide::Internal::Select::condition |
Definition at line 205 of file IR.h.
Referenced by make(), and Halide::Internal::IRMatcher::SelectOp< C, T, F >::match().
| Expr Halide::Internal::Select::true_value |
Definition at line 205 of file IR.h.
Referenced by make(), and Halide::Internal::IRMatcher::SelectOp< C, T, F >::match().
| Expr Halide::Internal::Select::false_value |
Definition at line 205 of file IR.h.
Referenced by make(), and Halide::Internal::IRMatcher::SelectOp< C, T, F >::match().
|
static |
Definition at line 209 of file IR.h.
Referenced by Halide::Internal::IRMatcher::SelectOp< C, T, F >::match().