39 #include <type_traits> 80 TVM_DLL PrimExpr
ret(PrimExpr value,
Span span =
Span());
136 TVM_DLL PrimExpr
add(PrimExpr a, PrimExpr b,
Span span =
Span());
146 TVM_DLL PrimExpr
operator+(PrimExpr a, PrimExpr b);
157 TVM_DLL PrimExpr
sub(PrimExpr a, PrimExpr b,
Span span =
Span());
167 TVM_DLL PrimExpr
operator-(PrimExpr a, PrimExpr b);
177 TVM_DLL PrimExpr
neg(PrimExpr a,
Span span =
Span());
197 TVM_DLL PrimExpr
mul(PrimExpr a, PrimExpr b,
Span span =
Span());
207 TVM_DLL PrimExpr
operator*(PrimExpr a, PrimExpr b);
217 TVM_DLL PrimExpr
operator/(PrimExpr a, PrimExpr b);
238 TVM_DLL PrimExpr
operator<<(PrimExpr a, PrimExpr b);
259 TVM_DLL PrimExpr
operator>>(PrimExpr a, PrimExpr b);
280 TVM_DLL PrimExpr
operator>(PrimExpr a, PrimExpr b);
301 TVM_DLL PrimExpr
operator>=(PrimExpr a, PrimExpr b);
312 TVM_DLL PrimExpr
less(PrimExpr a, PrimExpr b,
Span span =
Span());
322 TVM_DLL PrimExpr
operator<(PrimExpr a, PrimExpr b);
343 TVM_DLL PrimExpr
operator<=(PrimExpr a, PrimExpr b);
354 TVM_DLL PrimExpr
equal(PrimExpr a, PrimExpr b,
Span span =
Span());
364 TVM_DLL PrimExpr
operator==(PrimExpr a, PrimExpr b);
385 TVM_DLL PrimExpr
operator!=(PrimExpr a, PrimExpr b);
404 TVM_DLL PrimExpr
operator&&(PrimExpr a, PrimExpr b);
423 TVM_DLL PrimExpr
operator||(PrimExpr a, PrimExpr b);
455 TVM_DLL PrimExpr
div(PrimExpr a, PrimExpr b,
Span span =
Span());
545 TVM_DLL PrimExpr
max(PrimExpr a, PrimExpr b,
Span span =
Span());
556 TVM_DLL PrimExpr
min(PrimExpr a, PrimExpr b,
Span span =
Span());
577 TVM_DLL PrimExpr
operator&(PrimExpr a, PrimExpr b);
598 TVM_DLL PrimExpr
operator|(PrimExpr a, PrimExpr b);
619 TVM_DLL PrimExpr
operator^(PrimExpr a, PrimExpr b);
650 TVM_DLL PrimExpr
if_then_else(PrimExpr cond, PrimExpr true_value, PrimExpr false_value,
665 TVM_DLL PrimExpr
pow(PrimExpr x, PrimExpr y,
Span span =
Span());
673 TVM_DLL PrimExpr
abs(PrimExpr x,
Span span =
Span());
706 TVM_DLL PrimExpr
sum(PrimExpr source, Array<tir::IterVar> axis, Array<PrimExpr> init = {},
716 TVM_DLL PrimExpr
all(PrimExpr source, Array<tir::IterVar> axis, Array<PrimExpr> init = {},
727 TVM_DLL PrimExpr
any(PrimExpr source, Array<tir::IterVar> axis, Array<PrimExpr> init = {},
738 TVM_DLL PrimExpr
max(PrimExpr source, Array<tir::IterVar> axis, Array<PrimExpr> init = {},
749 TVM_DLL PrimExpr
min(PrimExpr source, Array<tir::IterVar> axis, Array<PrimExpr> init = {},
760 TVM_DLL PrimExpr
prod(PrimExpr source, Array<tir::IterVar> axis, Array<PrimExpr> init = {},
834 TVM_DLL PrimExpr
q_multiply_shift(PrimExpr x, PrimExpr y, PrimExpr q, PrimExpr s,
838 #define TVM_DECLARE_INTRIN_UNARY(OpName) \ 839 inline PrimExpr OpName(PrimExpr x, Span span = Span()) { \ 840 static const Op& op = Op::Get("tir." #OpName); \ 841 return tir::Call(x.dtype(), op, {x}, span); \ 869 #define TVM_DECLARE_INTRIN_BINARY(OpName) \ 870 inline PrimExpr OpName(PrimExpr x, PrimExpr y, Span span = Span()) { \ 871 static const Op& op = Op::Get("tir." #OpName); \ 872 return tir::Call(x.dtype(), op, {x, y}, span); \ 890 if (!type.
defined())
return false;
892 if (
const auto* prim_type = ptr_type->element_type.as<
PrimTypeNode>()) {
893 return prim_type->dtype == element_type;
907 template <
typename ValueType,
908 typename =
typename std::enable_if<std::is_pod<ValueType>::value>::type>
942 if (!x.
defined())
return nullptr;
1004 template <
typename FReduce>
1044 return op->value > 0;
1052 return op->value < 0;
1060 return op->value == value;
1064 return opv->value == value;
1071 if (!stmt.
defined())
return true;
1076 return op->seq.size() == 0;
1081 template <
typename ValueType>
1083 if (t.
is_int())
return IntImm(t, static_cast<int64_t>(value), span);
1086 uint64_t uval =
static_cast<uint64_t
>(value);
1088 return IntImm(t, static_cast<int64_t>(value), span);
1090 uint64_t mask = (
static_cast<uint64_t
>(1) << 32U) - 1U;
1091 uint64_t low = uval & mask;
1092 uint64_t high = uval >> 32U;
1093 return LargeUIntImm(t, static_cast<int64_t>(low), static_cast<int64_t>(high), span);
1102 return FloatImm(t, static_cast<double>(value), span);
1104 LOG(FATAL) <<
"cannot make const for type " << t;
1108 template <
typename ValueType,
typename>
1110 if (t.
lanes() == 1) {
1124 template <
typename FReduce>
1128 init_value = freduce(init_value, val, span);
1136 #define TVM_DEFINE_ASSIGN_OP_OVERLOAD(Name, OpFunc) \ 1137 inline PrimExpr Name(PrimExpr& a, PrimExpr b) { \ 1142 #define TVM_DEFINE_BINOP_CONST_VAL_OVERLOAD(Name) \ 1143 inline PrimExpr Name(const PrimExpr& a, float b) { return Name(a, PrimExpr(b)); } \ 1144 inline PrimExpr Name(float a, const PrimExpr& b) { return Name(PrimExpr(a), b); } \ 1145 inline PrimExpr Name(int a, const PrimExpr& b) { \ 1146 return Name(tir::make_const(b.dtype(), a), b); \ 1148 inline PrimExpr Name(const PrimExpr& a, int b) { \ 1149 return Name(a, tir::make_const(a.dtype(), b)); \ 1151 inline PrimExpr Name(const PrimExpr& a, double b) { \ 1152 return Name(a, tir::make_const(DataType::Float(64), b)); \ 1155 #define TVM_DEFINE_BINOP_CONST_VAL_OVERLOAD_SPANNED(Name) \ 1156 inline PrimExpr Name(const PrimExpr& a, float b, Span span = Span()) { \ 1157 return Name(a, PrimExpr(b), span); \ 1159 inline PrimExpr Name(float a, const PrimExpr& b, Span span = Span()) { \ 1160 return Name(PrimExpr(a), b, span); \ 1162 inline PrimExpr Name(int a, const PrimExpr& b, Span span = Span()) { \ 1163 return Name(tir::make_const(b.dtype(), a), b, span); \ 1165 inline PrimExpr Name(const PrimExpr& a, int b, Span span = Span()) { \ 1166 return Name(a, tir::make_const(a.dtype(), b), span); \ 1168 inline PrimExpr Name(const PrimExpr& a, double b, Span span = Span()) { \ 1169 return Name(a, tir::make_const(DataType::Float(64), b), span); \ 1172 #define TVM_DEFINE_LOGICAL_OP_CONST_VAL_OVERLOAD(Name) \ 1173 inline PrimExpr Name(const PrimExpr& a, bool b) { return Name(a, PrimExpr(b)); } \ 1174 inline PrimExpr Name(bool a, const PrimExpr& b) { return Name(PrimExpr(a), b); } 1176 #define TVM_DEFINE_LOGICAL_OP_CONST_VAL_OVERLOAD_SPANNED(Name) \ 1177 inline PrimExpr Name(const PrimExpr& a, bool b, Span span = Span()) { \ 1178 return Name(a, PrimExpr(b), span); \ 1180 inline PrimExpr Name(bool a, const PrimExpr& b, Span span = Span()) { \ 1181 return Name(PrimExpr(a), b, span); \ 1184 #define TVM_DEFINE_INT_OP_CONST_VAL_OVERLOAD(Name) \ 1185 inline PrimExpr Name(const PrimExpr& a, int b) { \ 1186 return Name(a, tir::make_const(a.dtype(), b)); \ 1188 inline PrimExpr Name(int a, const PrimExpr& b) { return Name(tir::make_const(b.dtype(), a), b); } 1190 #define TVM_DEFINE_INT_OP_CONST_VAL_OVERLOAD_SPANNED(Name) \ 1191 inline PrimExpr Name(const PrimExpr& a, int b, Span span = Span()) { \ 1192 return Name(a, tir::make_const(a.dtype(), b), span); \ 1194 inline PrimExpr Name(int a, const PrimExpr& b, Span span = Span()) { \ 1195 return Name(tir::make_const(b.dtype(), a), b, span); \ 1246 template <
typename TA>
1248 constexpr
bool div_ambiguity = !std::is_class<TA>::value;
1249 static_assert(div_ambiguity,
1250 "TVM supports multiple types of integer divisions, " 1251 "please call div, indexdiv/indexmod, " 1252 "floordiv/floormod or truncdiv/truncmod directly " 1253 "to avoid ambiguity in the code. " 1254 "Checkout these functions in tir/op.h.");
1262 template <
typename TB>
1268 template <
typename TB>
1274 template <
typename TB>
1280 #endif // TVM_TIR_OP_H_ PrimExpr rsqrt(PrimExpr x, Span span=Span())
Definition: op.h:851
PrimExpr operator!=(PrimExpr a, PrimExpr b)
not_equal
tvm::Span Span
Definition: base.h:65
bool is_const_power_of_two_integer(const PrimExpr &x, int *shift)
Check whether x is a constant power of two If x is power of two, write the power to the shift...
PrimExpr operator<(PrimExpr a, PrimExpr b)
less
PrimExpr likely(PrimExpr cond, Span span=Span())
Mark condition as likely.
bool is_int() const
Definition: data_type.h:99
PrimExpr bitwise_xor(PrimExpr a, PrimExpr b, Span span=Span())
take bitwise xor of two values
PrimExpr log10(PrimExpr x, Span span=Span())
Definition: op.h:854
Bool operator &&(const Bool &a, bool b)
Definition: expr.h:342
PrimExpr min(PrimExpr a, PrimExpr b, Span span=Span())
take minimum of two values
PrimExpr neg(PrimExpr a, Span span=Span())
negation.
PrimExpr greater_equal(PrimExpr a, PrimExpr b, Span span=Span())
greater_equal
bool is_one(const PrimExpr &x)
Check whether x is a constant integer 1.
Definition: op.h:971
PrimExpr popcount(PrimExpr x, Span span=Span())
Definition: op.h:855
PrimExpr atan(PrimExpr x, Span span=Span())
Definition: op.h:863
Bool operator||(const Bool &a, bool b)
Definition: expr.h:337
PrimExpr abs(PrimExpr x, Span span=Span())
Calculate absolute value of x.
PrimExpr floor(PrimExpr x, Span span=Span())
Calculate floor(x)
PrimExpr exp10(PrimExpr x, Span span=Span())
Definition: op.h:846
Definition: data_type.h:57
PrimExpr min_value(const DataType &dtype, Span span=Span())
PrimExpr indexmod(PrimExpr a, PrimExpr b, Span span=Span())
compute the remainder floor(a / b) where a and b are non-negative.
PrimExpr make_const(DataType t, ValueType value, Span span=Span())
Make a const value with certain data type.
Definition: op.h:1109
PrimExpr sinh(PrimExpr x, Span span=Span())
Definition: op.h:860
PrimExpr add(PrimExpr a, PrimExpr b, Span span=Span())
add operator
#define TVM_DECLARE_INTRIN_BINARY(OpName)
Definition: op.h:869
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
#define TVM_DEFINE_ASSIGN_OP_OVERLOAD(Name, OpFunc)
Definition: op.h:1136
PrimExpr tan(PrimExpr x, Span span=Span())
Definition: op.h:856
PrimExpr sub(PrimExpr a, PrimExpr b, Span span=Span())
subtraction operator
PrimExpr atanh(PrimExpr x, Span span=Span())
Definition: op.h:866
PrimExpr nearbyint(PrimExpr x, Span span=Span())
Calculates std::nearbyint(x)
bool is_float() const
Definition: data_type.h:93
PrimExpr asin(PrimExpr x, Span span=Span())
Definition: op.h:861
The container of seq statement. Represent a sequence of statements.
Definition: stmt.h:592
PrimExpr equal(PrimExpr a, PrimExpr b, Span span=Span())
equal
PrimExpr ceil(PrimExpr x, Span span=Span())
Calculate ceil(x)
PrimExpr ldexp(PrimExpr x, PrimExpr y, Span span=Span())
Definition: op.h:879
PrimExpr if_then_else(PrimExpr cond, PrimExpr true_value, PrimExpr false_value, Span span=Span())
Conditional expression.
Constant floating point literals in the program.
Definition: expr.h:279
PrimExpr logical_or(PrimExpr a, PrimExpr b, Span span=Span())
or
int code() const
Definition: data_type.h:81
PrimExpr bitwise_or(PrimExpr a, PrimExpr b, Span span=Span())
take bitwise or of two values
PrimExpr max(const PrimExpr &a, double b, Span span=Span())
Definition: op.h:1208
PrimExpr foldl(FReduce freduce, PrimExpr init_value, const Array< PrimExpr > &values, Span span=Span())
Left fold.
Definition: op.h:1125
const int64_t * as_const_int(const PrimExpr &x)
Get x as constant int expression.
Definition: op.h:941
PrimExpr greater(PrimExpr a, PrimExpr b, Span span=Span())
greater
PrimExpr MakeConstScalar(DataType t, ValueType value, Span span=Span())
Definition: op.h:1082
PrimExpr atan2(PrimExpr x, PrimExpr y, Span span=Span())
Definition: op.h:875
PrimExpr operator-(PrimExpr a, PrimExpr b)
subtraction operator
#define TVM_DEFINE_LOGICAL_OP_CONST_VAL_OVERLOAD(Name)
Definition: op.h:1172
runtime::DataType GetRuntimeDataType(const Type &type)
Get the implied DataType for storing values with type during runtime.
Low-level raw pointer type.
Definition: type.h:150
PrimExpr asinh(PrimExpr x, Span span=Span())
Definition: op.h:865
#define TVM_DEFINE_LOGICAL_OP_CONST_VAL_OVERLOAD_SPANNED(Name)
Definition: op.h:1176
PrimExpr cast(const DataType &t, PrimExpr value, Span span=Span())
cast value to type.
PrimExpr log(PrimExpr x, Span span=Span())
Definition: op.h:852
PrimExpr round(PrimExpr x, Span span=Span())
Calculate round(x)
Constant integer literals in the program.
Definition: expr.h:233
Primitive operators(builtin intrinsics) and registry for them.
Managed reference class to FloatImmNode.
Definition: expr.h:308
PrimExpr exp2(PrimExpr x, Span span=Span())
Definition: op.h:845
PrimExpr operator &(PrimExpr a, PrimExpr b)
take bitwise and of two values
PrimExpr less_equal(PrimExpr a, PrimExpr b, Span span=Span())
less_equal
PrimExpr const_true(int lanes=1, Span span=Span())
Make a constant true expression.
Definition: op.h:923
PrimExpr floormod(PrimExpr a, PrimExpr b, Span span=Span())
compute the remainder of floordiv
PrimExpr operator/=(const PrimExpr &a, const TB &b)
Definition: op.h:1269
PrimExpr div(PrimExpr a, PrimExpr b, Span span=Span())
compute division in C semantics.
PrimExpr hypot(PrimExpr x, PrimExpr y, Span span=Span())
Definition: op.h:878
PrimExpr operator!(PrimExpr a)
not
PrimExpr const_false(int lanes=1, Span span=Span())
Make a constant false expression.
Definition: op.h:932
IR/AST nodes for the unified type system in TVM.
Managed reference to BroadcastNode.
Definition: expr.h:839
bool defined() const
Definition: object.h:537
Runtime primitive data type.
Definition: data_type.h:41
PrimExpr sum(PrimExpr source, Array< tir::IterVar > axis, Array< PrimExpr > init={}, Span span=Span())
sum of of source expression over axis
PrimExpr reinterpret(const DataType &t, PrimExpr value, Span span=Span())
perform reinterpret cast value to type.
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:270
PrimExpr indexdiv(PrimExpr a, PrimExpr b, Span span=Span())
compute floor(a / b) where a and b are non-negative.
Managed reference class to IntImmNode.
Definition: expr.h:262
PrimExpr q_multiply_shift(PrimExpr x, PrimExpr y, PrimExpr q, PrimExpr s, Span span=Span())
Execute a multiplication between two Q-numbers x and y followed by a right shift s. The mathematical expression is:
PrimExpr operator<<(PrimExpr a, PrimExpr b)
left shift operator
#define TVM_DECLARE_INTRIN_UNARY(OpName)
Definition: op.h:838
PrimExpr operator^(PrimExpr a, PrimExpr b)
take bitwise xor of two values
PrimExpr isfinite(PrimExpr x, Span span=Span())
Check if x is finite.
#define TVM_DEFINE_INT_OP_CONST_VAL_OVERLOAD(Name)
Definition: op.h:1184
Create a vector where all the elements are value.
Definition: expr.h:807
PrimExpr clz(PrimExpr x, Span span=Span())
Definition: op.h:867
Container of all statements.
Definition: stmt.h:57
PrimExpr cosh(PrimExpr x, Span span=Span())
Definition: op.h:858
bool is_uint() const
Definition: data_type.h:101
PrimExpr max(PrimExpr a, PrimExpr b, Span span=Span())
take maximum of two values
#define TVM_DEFINE_BINOP_CONST_VAL_OVERLOAD(Name)
Definition: op.h:1142
int64_t value
the Internal value.
Definition: expr.h:236
PrimExpr make_zero(DataType t, Span span=Span())
Make a const zero expr.
Definition: op.h:1117
PrimExpr bitwise_neg(PrimExpr a, Span span=Span())
take bitwise negation of two values
PrimExpr any(PrimExpr source, Array< tir::IterVar > axis, Array< PrimExpr > init={}, Span span=Span())
logical Or of of source expression over axis
PrimExpr erf(PrimExpr x, Span span=Span())
Definition: op.h:847
Evaluates an expression. This is mostly used for putting a Call node into Stmt.
Definition: stmt.h:738
PrimExpr operator>>(PrimExpr a, PrimExpr b)
right shift operator
PrimExpr nextafter(PrimExpr x, PrimExpr y, Span span=Span())
Definition: op.h:876
PrimExpr operator==(PrimExpr a, PrimExpr b)
equal
int lanes() const
Definition: data_type.h:87
PrimExpr logical_and(PrimExpr a, PrimExpr b, Span span=Span())
and
PrimExpr truncmod(PrimExpr a, PrimExpr b, Span span=Span())
compute the remainder of truncdiv
tvm::Type Type
Definition: type.h:47
bool is_bfloat16() const
Definition: data_type.h:97
PrimExpr operator>=(PrimExpr a, PrimExpr b)
greater_equal
PrimExpr floordiv(PrimExpr a, PrimExpr b, Span span=Span())
compute floor(a / b)
PrimExpr acos(PrimExpr x, Span span=Span())
Definition: op.h:862
Type GetType(const PrimExpr &expr)
Get the type of the expression under the unified type system.
PrimExpr operator*(PrimExpr a, PrimExpr b)
multiplication operator
PrimExpr log2(PrimExpr x, Span span=Span())
Definition: op.h:853
PrimExpr all(PrimExpr source, Array< tir::IterVar > axis, Array< PrimExpr > init={}, Span span=Span())
logical And of of source expression over axis
bool IsPointerType(const Type &type, const DataType &element_type)
Check if type is a pointer to a runtime element type.
Definition: op.h:889
bool is_const_int(const PrimExpr &x, int64_t value)
Check whether x is a constant integer expression.
Definition: op.h:1058
PrimExpr not_equal(PrimExpr a, PrimExpr b, Span span=Span())
not_equal
PrimExpr cos(PrimExpr x, Span span=Span())
Definition: op.h:857
PrimExpr acosh(PrimExpr x, Span span=Span())
Definition: op.h:864
PrimExpr sqrt(PrimExpr x, Span span=Span())
Definition: op.h:850
PrimExpr tanh(PrimExpr x, Span span=Span())
Definition: op.h:848
PrimExpr infinity(const DataType &dtype, Span span=Span())
PrimExpr LargeUIntImm(DataType dtype, int64_t low, int64_t high, Span span=Span())
Construct a large uint constant by its low 32 bits and high 32bits.
PrimExpr max_value(const DataType &dtype, Span span=Span())
bool is_const_number(const PrimExpr &x)
Check whether x is an integer/float constant.
Definition: op.h:1031
PrimExpr trunc(PrimExpr x, Span span=Span())
Calculate trunc(x)
#define TVM_DEFINE_INT_OP_CONST_VAL_OVERLOAD_SPANNED(Name)
Definition: op.h:1190
PrimExpr ret(PrimExpr value, Span span=Span())
Return the value.
PrimExpr sin(PrimExpr x, Span span=Span())
Definition: op.h:859
std::function< PrimExpr(PrimExpr source, const Array< IterVar > &axis, Array< PrimExpr > init, Span span)> FReduce
The operation to use for CommReduce.
Definition: reduction.h:47
bool is_negative_const(const PrimExpr &a)
Definition: op.h:1050
void DivAmbiguityError(const TA &a)
Helper function to raise a compiler error about division ambiguity.
Definition: op.h:1247
PrimExpr operator/(PrimExpr a, PrimExpr b)
division operator
PrimExpr mul(PrimExpr a, PrimExpr b, Span span=Span())
multiplication operator
PrimExpr operator<=(PrimExpr a, PrimExpr b)
less_equal
PrimExpr copysign(PrimExpr x, PrimExpr y, Span span=Span())
Definition: op.h:877
Managed reference to TypeNode.
Definition: type.h:93
PrimExpr logical_not(PrimExpr a, Span span=Span())
not
bool is_positive_const(const PrimExpr &a)
Definition: op.h:1042
PrimExpr operator%(const PrimExpr &a, const TB &b)
Definition: op.h:1275
PrimExpr right_shift(PrimExpr a, PrimExpr b, Span span=Span())
right shift operator
PrimExpr operator~(PrimExpr a)
take bitwise negation of two values
PrimExpr exp(PrimExpr x, Span span=Span())
Definition: op.h:844
bool is_handle() const
Definition: data_type.h:103
Reference to PrimExprNode.
Definition: expr.h:109
PrimExpr bitwise_and(PrimExpr a, PrimExpr b, Span span=Span())
take bitwise and of two values
Primitive data types used in the low-level IR.
Definition: type.h:106
bool is_no_op(const tir::Stmt &stmt)
Check whether stmt is nop.
Definition: op.h:1070
const ObjectType * as() const
Try to downcast the internal Object to a raw pointer of a corresponding type.
Definition: object.h:858
PrimExpr truncdiv(PrimExpr a, PrimExpr b, Span span=Span())
compute trunc(a / b)
PrimExpr sigmoid(PrimExpr x, Span span=Span())
Definition: op.h:849
#define TVM_DEFINE_BINOP_CONST_VAL_OVERLOAD_SPANNED(Name)
Definition: op.h:1155
PrimExpr left_shift(PrimExpr a, PrimExpr b, Span span=Span())
left shift operator
PrimExpr operator|(PrimExpr a, PrimExpr b)
take bitwise or of two values
PrimExpr prod(PrimExpr source, Array< tir::IterVar > axis, Array< PrimExpr > init={}, Span span=Span())
product of of source expression over axis
PrimExpr operator+(PrimExpr a, PrimExpr b)
add operator
bool is_zero(const PrimExpr &x)
Check whether x is a constant integer 0.
Definition: op.h:979
runtime::DataType DataType
Definition: data_type.h:389
PrimExpr less(PrimExpr a, PrimExpr b, Span span=Span())
less
static DataType UInt(int bits, int lanes=1)
Construct an uint type.
Definition: data_type.h:161
PrimExpr isinf(PrimExpr x, Span span=Span())
Check if x is infinite.
PrimExpr pow(PrimExpr x, PrimExpr y, Span span=Span())
Calculate power(x, y)
DataType element_of() const
Get the scalar version of the type.
Definition: data_type.h:126
PrimExpr isnan(PrimExpr x, Span span=Span())
Check if x is NaN.
PrimExpr operator>(PrimExpr a, PrimExpr b)
greater