FreeTensor
Loading...
Searching...
No Matches
reduce_op.h
Go to the documentation of this file.
1#ifndef FREE_TENSOR_REDUCE_OP_H
2#define FREE_TENSOR_REDUCE_OP_H
3
4#include <expr.h>
5#include <type/data_type.h>
6
7namespace freetensor {
8
30enum class ReduceOp : int { Add, Mul, Min, Max, LAnd, LOr };
31
32Expr neutralVal(DataType dtype, ReduceOp op);
33
34} // namespace freetensor
35
36#endif // FREE_TENSOR_REDUCE_OP_H
Definition: ref.h:24
Definition: allocator.h:9
Ref< MaxNode > Max
Definition: expr.h:352
Ref< LAndNode > LAnd
Definition: expr.h:450
Ref< MulNode > Mul
Definition: expr.h:200
Ref< MinNode > Min
Definition: expr.h:338
ReduceOp
Definition: reduce_op.h:30
Ref< AddNode > Add
Definition: expr.h:172
Ref< ExprNode > Expr
Definition: ast.h:184
Expr neutralVal(DataType dtype, ReduceOp op)
Definition: reduce_op.cc:8