Fix reading Time zone rules using Julian days (#17672)
[platform/upstream/coreclr.git] / src / jit / ssaconfig.h
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4
5 // ==++==
6 //
7
8 //
9
10 //
11 // ==--==
12
13 /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
14 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
15 XX                                                                           XX
16 XX                                  SSA                                      XX
17 XX                                                                           XX
18 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
19 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
20 */
21
22 #pragma once
23
24 #ifdef DEBUG
25 #define DBG_SSA_JITDUMP(...)                                                                                           \
26     if (JitTls::GetCompiler()->verboseSsa)                                                                             \
27     logf(__VA_ARGS__)
28 #else
29 #define DBG_SSA_JITDUMP(...)
30 #endif
31
32 // DBG_SSA_JITDUMP prints only if DEBUG, DEBUG_SSA, and tlsCompiler->verbose are all set.
33
34 namespace SsaConfig
35 {
36 // FIRST ssa num is given to the first definition of a variable which can either be:
37 // 1. A regular definition in the program.
38 // 2. Or initialization by compInitMem.
39 static const int FIRST_SSA_NUM = 2;
40
41 // UNINIT ssa num is given to variables whose definitions were never encountered:
42 // 1. Neither by SsaBuilder
43 // 2. Nor were they initialized using compInitMem.
44 static const int UNINIT_SSA_NUM = 1;
45
46 // Sentinel value to indicate variable not touched by SSA.
47 static const int RESERVED_SSA_NUM = 0;
48
49 } // end of namespace SsaConfig