forked from dotnet/coreclr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gtstructs.h
110 lines (99 loc) · 3.51 KB
/
gtstructs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*****************************************************************************/
#ifndef GTSTRUCT_0
#error Define GTSTRUCT_0 before including this file.
#endif
#ifndef GTSTRUCT_1
#error Define GTSTRUCT_1 before including this file.
#endif
#ifndef GTSTRUCT_2
#error Define GTSTRUCT_2 before including this file.
#endif
#ifndef GTSTRUCT_3
#error Define GTSTRUCT_3 before including this file.
#endif
#ifndef GTSTRUCT_4
#error Define GTSTRUCT_4 before including this file.
#endif
#ifndef GTSTRUCT_N
#error Define GTSTRUCT_N before including this file.
#endif
/*****************************************************************************/
//
// Field name , Allowed node enum(s)
//
GTSTRUCT_0(UnOp , GT_OP)
GTSTRUCT_0(Op , GT_OP)
#if !FEATURE_EH_FUNCLETS
GTSTRUCT_2(Val , GT_END_LFIN, GT_JMP)
#else
GTSTRUCT_1(Val , GT_JMP)
#endif
#ifndef LEGACY_BACKEND
GTSTRUCT_3(IntConCommon, GT_CNS_INT, GT_CNS_LNG, GT_JMPTABLE)
GTSTRUCT_1(JumpTable , GT_JMPTABLE)
#else // LEGACY_BACKEND
GTSTRUCT_2(IntConCommon, GT_CNS_INT, GT_CNS_LNG)
#endif// LEGACY_BACKEND
GTSTRUCT_1(IntCon , GT_CNS_INT)
GTSTRUCT_1(LngCon , GT_CNS_LNG)
GTSTRUCT_1(DblCon , GT_CNS_DBL)
GTSTRUCT_1(StrCon , GT_CNS_STR)
GTSTRUCT_N(LclVarCommon, GT_LCL_VAR, GT_LCL_FLD, GT_REG_VAR, GT_PHI_ARG, GT_STORE_LCL_VAR, GT_STORE_LCL_FLD, GT_LCL_VAR_ADDR, GT_LCL_FLD_ADDR)
GTSTRUCT_3(LclVar , GT_LCL_VAR, GT_LCL_VAR_ADDR, GT_STORE_LCL_VAR)
#ifndef LEGACY_BACKEND
GTSTRUCT_3(LclFld , GT_LCL_FLD, GT_STORE_LCL_FLD, GT_LCL_FLD_ADDR)
#else // LEGACY_BACKEND
GTSTRUCT_1(LclFld , GT_LCL_FLD)
#endif // LEGACY_BACKEND
GTSTRUCT_1(RegVar , GT_REG_VAR)
GTSTRUCT_1(Cast , GT_CAST)
GTSTRUCT_1(Box , GT_BOX)
GTSTRUCT_1(Field , GT_FIELD)
GTSTRUCT_1(Call , GT_CALL)
GTSTRUCT_1(ArgList , GT_LIST)
GTSTRUCT_1(Colon , GT_COLON)
GTSTRUCT_1(FptrVal , GT_FTN_ADDR)
GTSTRUCT_1(Math , GT_MATH)
GTSTRUCT_1(Index , GT_INDEX)
#ifdef FEATURE_SIMD
GTSTRUCT_2(BoundsChk , GT_ARR_BOUNDS_CHECK, GT_SIMD_CHK)
#else // !FEATURE_SIMD
GTSTRUCT_1(BoundsChk , GT_ARR_BOUNDS_CHECK)
#endif // !FEATURE_SIMD
GTSTRUCT_1(ArrLen , GT_ARR_LENGTH)
GTSTRUCT_1(ArrElem , GT_ARR_ELEM)
GTSTRUCT_1(ArrOffs , GT_ARR_OFFSET)
GTSTRUCT_1(ArrIndex , GT_ARR_INDEX)
GTSTRUCT_1(RetExpr , GT_RET_EXPR)
GTSTRUCT_1(Stmt , GT_STMT)
GTSTRUCT_1(LdObj , GT_LDOBJ)
GTSTRUCT_2(ClsVar , GT_CLS_VAR, GT_CLS_VAR_ADDR)
GTSTRUCT_1(ArgPlace , GT_ARGPLACE)
GTSTRUCT_1(Label , GT_LABEL)
GTSTRUCT_1(CmpXchg , GT_CMPXCHG)
GTSTRUCT_1(AddrMode , GT_LEA)
GTSTRUCT_1(Qmark , GT_QMARK)
GTSTRUCT_1(PhiArg , GT_PHI_ARG)
GTSTRUCT_1(StoreInd , GT_STOREIND)
GTSTRUCT_2(Indir , GT_STOREIND, GT_IND)
GTSTRUCT_1(PutArgStk , GT_PUTARG_STK)
GTSTRUCT_1(PhysReg , GT_PHYSREG)
GTSTRUCT_3(BlkOp , GT_COPYBLK, GT_INITBLK, GT_COPYOBJ)
GTSTRUCT_1(CpObj , GT_COPYOBJ)
GTSTRUCT_1(InitBlk , GT_INITBLK)
GTSTRUCT_1(CpBlk , GT_COPYBLK)
#ifdef FEATURE_SIMD
GTSTRUCT_1(SIMD , GT_SIMD)
#endif // FEATURE_SIMD
/*****************************************************************************/
#undef GTSTRUCT_0
#undef GTSTRUCT_1
#undef GTSTRUCT_2
#undef GTSTRUCT_3
#undef GTSTRUCT_4
#undef GTSTRUCT_N
/*****************************************************************************/