📄 tree.def
字号:
DEFTREECODE (FIELD_DECL, "field_decl", "d", 0)/* References to storage. *//* Value is structure or union component. Operand 0 is the structure or union (an expression); operand 1 is the field (a node of type FIELD_DECL). */DEFTREECODE (COMPONENT_REF, "component_ref", "r", 2)/* Reference to a group of bits within an object. Similar to COMPONENT_REF except the position is given explicitly rather than via a FIELD_DECL. Operand 0 is the structure or union expression; operand 1 is a tree giving the number of bits being referenced; operand 2 is a tree giving the position of the first referenced bit. The field can be either a signed or unsigned field; TREE_UNSIGNED says which. */DEFTREECODE (BIT_FIELD_REF, "bit_field_ref", "r", 3) /* C unary `*' or Pascal `^'. One operand, an expression for a pointer. */DEFTREECODE (INDIRECT_REF, "indirect_ref", "r", 1)/* Reference to the contents of an offset (a value whose type is an OFFSET_TYPE). Operand 0 is the object within which the offset is taken. Operand 1 is the offset. */DEFTREECODE (OFFSET_REF, "offset_ref", "r", 2)/* Pascal `^` on a file. One operand, an expression for the file. */DEFTREECODE (BUFFER_REF, "buffer_ref", "r", 1)/* Array indexing in languages other than C. Operand 0 is the array; operand 1 is a list of indices stored as a chain of TREE_LIST nodes. */DEFTREECODE (ARRAY_REF, "array_ref", "r", 2)/* Constructor: return an aggregate value made from specified components. In C, this is used only for structure and array initializers. The first "operand" is really a pointer to the RTL, for constant constructors only. The second operand is a list of component values made out of a chain of TREE_LIST nodes. */DEFTREECODE (CONSTRUCTOR, "constructor", "e", 2)/* The expression types are mostly straightforward, with the fourth argument of DEFTREECODE saying how many operands there are. Unless otherwise specified, the operands are expressions. *//* Contains two expressions to compute, one followed by the other. the first value is ignored. The second one's value is used. */DEFTREECODE (COMPOUND_EXPR, "compound_expr", "e", 2)/* Assignment expression. Operand 0 is the what to set; 1, the new value. */DEFTREECODE (MODIFY_EXPR, "modify_expr", "e", 2)/* Initialization expression. Operand 0 is the variable to initialize; Operand 1 is the initializer. */DEFTREECODE (INIT_EXPR, "init_expr", "e", 2)/* For TARGET_EXPR, operand 0 is the target of an initialization, operand 1 is the initializer for the target, and operand 2 is the cleanup for this node, if any. */DEFTREECODE (TARGET_EXPR, "target_expr", "e", 3)/* Conditional expression ( ... ? ... : ... in C). Operand 0 is the condition. Operand 1 is the then-value. Operand 2 is the else-value. */DEFTREECODE (COND_EXPR, "cond_expr", "e", 3)/* Declare local variables, including making RTL and allocating space. Operand 0 is a chain of VAR_DECL nodes for the variables. Operand 1 is the body, the expression to be computed using the variables. The value of operand 1 becomes that of the BIND_EXPR. Operand 2 is the BLOCK that corresponds to these bindings for debugging purposes. If this BIND_EXPR is actually expanded, that sets the TREE_USED flag in the BLOCK. The BIND_EXPR is not responsible for informing parsers about these variables. If the body is coming from the input file, then the code that creates the BIND_EXPR is also responsible for informing the parser of the variables. If the BIND_EXPR is ever expanded, its TREE_USED flag is set. This tells the code for debugging symbol tables not to ignore the BIND_EXPR. If the BIND_EXPR should be output for debugging but will not be expanded, set the TREE_USED flag by hand. In order for the BIND_EXPR to be known at all, the code that creates it must also install it as a subblock in the tree of BLOCK nodes for the function. */DEFTREECODE (BIND_EXPR, "bind_expr", "e", 3)/* Function call. Operand 0 is the function. Operand 1 is the argument list, a list of expressions made out of a chain of TREE_LIST nodes. There is no operand 2. That slot is used for the CALL_EXPR_RTL macro (see preexpand_calls). */DEFTREECODE (CALL_EXPR, "call_expr", "e", 3)/* Call a method. Operand 0 is the method, whose type is a METHOD_TYPE. Operand 1 is the expression for "self". Operand 2 is the list of explicit arguments. */DEFTREECODE (METHOD_CALL_EXPR, "method_call_expr", "e", 4)/* Specify a value to compute along with its corresponding cleanup. Operand 0 argument is an expression whose value needs a cleanup. Operand 1 is an RTL_EXPR which will eventually represent that value. Operand 2 is the cleanup expression for the object. The RTL_EXPR is used in this expression, which is how the expression manages to act on the proper value. The cleanup is executed when the value is no longer needed, which is not at precisely the same time that this value is computed. */DEFTREECODE (WITH_CLEANUP_EXPR, "with_cleanup_expr", "e", 3)/* Simple arithmetic. Operands must have the same machine mode and the value shares that mode. */DEFTREECODE (PLUS_EXPR, "plus_expr", "2", 2)DEFTREECODE (MINUS_EXPR, "minus_expr", "2", 2)DEFTREECODE (MULT_EXPR, "mult_expr", "2", 2)/* Division for integer result that rounds the quotient toward zero. *//* Operands must have the same machine mode. In principle they may be real, but that is not currently supported. The result is always fixed point, and it has the same type as the operands if they are fixed point. */DEFTREECODE (TRUNC_DIV_EXPR, "trunc_div_expr", "2", 2)/* Division for integer result that rounds the quotient toward infinity. */DEFTREECODE (CEIL_DIV_EXPR, "ceil_div_expr", "2", 2)/* Division for integer result that rounds toward minus infinity. */DEFTREECODE (FLOOR_DIV_EXPR, "floor_div_expr", "2", 2)/* Division for integer result that rounds toward nearest integer. */DEFTREECODE (ROUND_DIV_EXPR, "round_div_expr", "2", 2)/* Four kinds of remainder that go with the four kinds of division. */DEFTREECODE (TRUNC_MOD_EXPR, "trunc_mod_expr", "2", 2)DEFTREECODE (CEIL_MOD_EXPR, "ceil_mod_expr", "2", 2)DEFTREECODE (FLOOR_MOD_EXPR, "floor_mod_expr", "2", 2)DEFTREECODE (ROUND_MOD_EXPR, "round_mod_expr", "2", 2)/* Division for real result. The two operands must have the same type. In principle they could be integers, but currently only real operands are supported. The result must have the same type as the operands. */DEFTREECODE (RDIV_EXPR, "rdiv_expr", "2", 2)/* Division which is not supposed to need rounding. Used for pointer subtraction in C. */DEFTREECODE (EXACT_DIV_EXPR, "exact_div_expr", "2", 2)/* Conversion of real to fixed point: four ways to round, like the four ways to divide. CONVERT_EXPR can also be used to convert a real to an integer, and that is what is used in languages that do not have ways of specifying which of these is wanted. Maybe these are not needed. */DEFTREECODE (FIX_TRUNC_EXPR, "fix_trunc_expr", "1", 1)DEFTREECODE (FIX_CEIL_EXPR, "fix_ceil_expr", "1", 1)DEFTREECODE (FIX_FLOOR_EXPR, "fix_floor_expr", "1", 1)DEFTREECODE (FIX_ROUND_EXPR, "fix_round_expr", "1", 1)/* Conversion of an integer to a real. */DEFTREECODE (FLOAT_EXPR, "float_expr", "1", 1)/* Exponentiation. Operands may have any types; constraints on value type are not known yet. */DEFTREECODE (EXPON_EXPR, "expon_expr", "2", 2)/* Unary negation. Value has same type as operand. */DEFTREECODE (NEGATE_EXPR, "negate_expr", "1", 1)DEFTREECODE (MIN_EXPR, "min_expr", "2", 2)DEFTREECODE (MAX_EXPR, "max_expr", "2", 2)DEFTREECODE (ABS_EXPR, "abs_expr", "1", 1)DEFTREECODE (FFS_EXPR, "ffs_expr", "1", 1)/* Shift operations for shift and rotate. Shift is supposed to mean logical shift if done on an unsigned type, arithmetic shift on a signed type. The second operand is the number of bits to shift by, and must always have mode SImode. The result has the same mode as the first operand. */DEFTREECODE (LSHIFT_EXPR, "alshift_expr", "2", 2)DEFTREECODE (RSHIFT_EXPR, "arshift_expr", "2", 2)DEFTREECODE (LROTATE_EXPR, "lrotate_expr", "2", 2)DEFTREECODE (RROTATE_EXPR, "rrotate_expr", "2", 2)/* Bitwise operations. Operands have same mode as result. */DEFTREECODE (BIT_IOR_EXPR, "bit_ior_expr", "2", 2)DEFTREECODE (BIT_XOR_EXPR, "bit_xor_expr", "2", 2)DEFTREECODE (BIT_AND_EXPR, "bit_and_expr", "2", 2)DEFTREECODE (BIT_ANDTC_EXPR, "bit_andtc_expr", "2", 2)DEFTREECODE (BIT_NOT_EXPR, "bit_not_expr", "1", 1)/* Combination of boolean values or of integers considered only as zero or nonzero. ANDIF and ORIF allow the second operand not to be computed if the value of the expression is determined from the first operand. AND and OR always compute the second operand whether its value is needed or not (for side effects). */DEFTREECODE (TRUTH_ANDIF_EXPR, "truth_andif_expr", "e", 2)DEFTREECODE (TRUTH_ORIF_EXPR, "truth_orif_expr", "e", 2)DEFTREECODE (TRUTH_AND_EXPR, "truth_and_expr", "2", 2)DEFTREECODE (TRUTH_OR_EXPR, "truth_or_expr", "2", 2)DEFTREECODE (TRUTH_NOT_EXPR, "truth_not_expr", "e", 1)/* Relational operators. `EQ_EXPR' and `NE_EXPR' are allowed for any types. The others are allowed only for integer (or pointer or enumeral) or real types. In all cases the operands will have the same type, and the value is always the type used by the language for booleans. */DEFTREECODE (LT_EXPR, "lt_expr", "<", 2)DEFTREECODE (LE_EXPR, "le_expr", "<", 2)DEFTREECODE (GT_EXPR, "gt_expr", "<", 2)DEFTREECODE (GE_EXPR, "ge_expr", "<", 2)DEFTREECODE (EQ_EXPR, "eq_expr", "<", 2)DEFTREECODE (NE_EXPR, "ne_expr", "<", 2)/* Operations for Pascal sets. Not used now. */DEFTREECODE (IN_EXPR, "in_expr", "2", 2)DEFTREECODE (SET_LE_EXPR, "set_le_expr", "<", 2)DEFTREECODE (CARD_EXPR, "card_expr", "1", 1)DEFTREECODE (RANGE_EXPR, "range_expr", "2", 2)/* Represents a conversion of type of a value. All conversions, including implicit ones, must be represented by CONVERT_EXPR nodes. */DEFTREECODE (CONVERT_EXPR, "convert_expr", "1", 1)/* Represents a conversion expected to require no code to be generated. */DEFTREECODE (NOP_EXPR, "nop_expr", "1", 1)/* Value is same as argument, but guaranteed not an lvalue. */DEFTREECODE (NON_LVALUE_EXPR, "non_lvalue_expr", "1", 1)/* Represents something we computed once and will use multiple times. First operand is that expression. Second is the function decl in which the SAVE_EXPR was created. The third operand is the RTL, nonzero only after the expression has been computed. */DEFTREECODE (SAVE_EXPR, "save_expr", "e", 3)/* Represents something whose RTL has already been expanded as a sequence which should be emitted when this expression is expanded. The first operand is the RTL to emit. It is the first of a chain of insns. The second is the RTL expression for the result. */DEFTREECODE (RTL_EXPR, "rtl_expr", "e", 2)/* & in C. Value is the address at which the operand's value resides. Operand may have any mode. Result mode is Pmode. */DEFTREECODE (ADDR_EXPR, "addr_expr", "e", 1)/* Non-lvalue reference or pointer to an object. */DEFTREECODE (REFERENCE_EXPR, "reference_expr", "e", 1)/* Operand is a function constant; result is a function variable value of typeEPmode. Used only for languages that need static chains. */DEFTREECODE (ENTRY_VALUE_EXPR, "entry_value_expr", "e", 1)/* Given two real or integer operands of the same type, returns a complex value of the corresponding complex type. */DEFTREECODE (COMPLEX_EXPR, "complex_expr", "2", 2)/* Complex conjugate of operand. Used only on complex types. The value has the same type as the operand. */DEFTREECODE (CONJ_EXPR, "conj_expr", "1", 1)/* Used only on an operand of complex type, these return a value of the corresponding component type. */DEFTREECODE (REALPART_EXPR, "realpart_expr", "1", 1)DEFTREECODE (IMAGPART_EXPR, "imagpart_expr", "1", 1)/* Nodes for ++ and -- in C. The second arg is how much to increment or decrement by. For a pointer, it would be the size of the object pointed to. */DEFTREECODE (PREDECREMENT_EXPR, "predecrement_expr", "e", 2)DEFTREECODE (PREINCREMENT_EXPR, "preincrement_expr", "e", 2)DEFTREECODE (POSTDECREMENT_EXPR, "postdecrement_expr", "e", 2)DEFTREECODE (POSTINCREMENT_EXPR, "postincrement_expr", "e", 2)/* These types of expressions have no useful value, and always have side effects. *//* A label definition, encapsulated as a statement. Operand 0 is the LABEL_DECL node for the label that appears here. The type should be void and the value should be ignored. */DEFTREECODE (LABEL_EXPR, "label_expr", "s", 1)/* GOTO. Operand 0 is a LABEL_DECL node. The type should be void and the value should be ignored. */DEFTREECODE (GOTO_EXPR, "goto_expr", "s", 1)/* RETURN. Evaluates operand 0, then returns from the current function. Presumably that operand is an assignment that stores into the RESULT_DECL that hold the value to be returned. The operand may be null. The type should be void and the value should be ignored. */DEFTREECODE (RETURN_EXPR, "return_expr", "s", 1)/* Exit the inner most loop conditionally. Operand 0 is the condition. The type should be void and the value should be ignored. */DEFTREECODE (EXIT_EXPR, "exit_expr", "s", 1)/* A loop. Operand 0 is the body of the loop. It must contain an EXIT_EXPR or is an infinite loop. The type should be void and the value should be ignored. */DEFTREECODE (LOOP_EXPR, "loop_expr", "s", 1)/*Local variables:mode:cversion-control: tEnd:*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -