1 #ifndef __TAN_INCLUDE_INTRINSIC_H__
2 #define __TAN_INCLUDE_INTRINSIC_H__
15 enum class IntrinsicType {
72 static inline const str STACK_TRACE_FUNCTION_REAL_NAME =
"__tan_runtime_stack_trace";
73 static inline const str TEST_COMP_ERROR_NAME =
"test_comp_error";
74 static inline const str ABORT_NAME =
"abort";
75 static inline const str COMP_PRINT_NAME =
"compprint";
78 IntrinsicType get_intrinsic_type()
const;
79 void set_intrinsic_type(IntrinsicType intrinsic_type);
89 IntrinsicType _intrinsic_type = IntrinsicType::INVALID;
All named AST nodes should inherit this class.
A generic representation of Intrinsic variables/functions.
static umap< str, IntrinsicType > INTRINSIC_NAME_TO_TYPES
A mapping from intrinsic names to IntrinsicType.
static vector< FunctionDecl * > GetIntrinsicFunctionDeclarations()
Generate a list of intrinsics function prototypes/declarations, such as @abort
vector< ASTBase * > get_children() const override
Get a ordered list of child nodes.
str terminal_token() const override
Which terminal token is expected immediately after this node.
Different from SourceFile, TokenizedSourceFile manages the tokenized text of a source file.