tvm
|
Doc that represents operation. More...
#include <doc.h>
Public Types | |
enum class | Kind : int32_t { kUnaryStart = 0 , kUSub = 1 , kInvert = 2 , kNot = 3 , kUnaryEnd = 4 , kBinaryStart = 5 , kAdd = 6 , kSub = 7 , kMult = 8 , kDiv = 9 , kFloorDiv = 10 , kMod = 11 , kPow = 12 , kLShift = 13 , kRShift = 14 , kBitAnd = 15 , kBitOr = 16 , kBitXor = 17 , kLt = 18 , kLtE = 19 , kEq = 20 , kNotEq = 21 , kGt = 22 , kGtE = 23 , kAnd = 24 , kOr = 25 , kBinaryEnd = 26 , kSpecialStart = 27 , kIfThenElse = 28 , kSpecialEnd = 29 } |
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (OperationDocNode, ExprDocNode) | |
![]() | |
ExprDoc | Attr (String attr) const |
Create a doc representing attribute access on the current ExprDoc. More... | |
ExprDoc | operator[] (Array< Doc > indices) const |
Create a doc representing index access on the current ExprDoc. More... | |
ExprDoc | Call (Array< ExprDoc, void > args) const |
Create a doc representing calling the current ExprDoc. More... | |
ExprDoc | Call (Array< ExprDoc, void > args, Array< String > kwargs_keys, Array< ExprDoc, void > kwargs_values) const |
Create a doc representing attribute access on the current ExprDoc. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (ExprDocNode, DocNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (DocNode, Object) | |
virtual | ~DocNode ()=default |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
Kind | kind |
The kind of operation (operator) More... | |
Array< ExprDoc > | operands |
Operands of this expression. More... | |
![]() | |
Array< ffi::reflection::AccessPath > | source_paths |
The list of object paths of the source IR node. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "script.printer.OperationDoc" |
![]() | |
static constexpr const char * | _type_key = "script.printer.ExprDoc" |
![]() | |
static constexpr const char * | _type_key = "script.printer.Doc" |
static constexpr bool | _type_mutable = true |
Doc that represents operation.
It can be unary, binary and other special operators (for example, the if-then-else expression).
|
strong |
|
inlinestatic |
tvm::script::printer::OperationDocNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | OperationDocNode | , |
ExprDocNode | |||
) |
|
staticconstexpr |
Kind tvm::script::printer::OperationDocNode::kind |
The kind of operation (operator)
Array<ExprDoc> tvm::script::printer::OperationDocNode::operands |
Operands of this expression.