summaryrefslogtreecommitdiff
path: root/src/jit/jitee.h
diff options
context:
space:
mode:
authornoahfalk <noahfalk@microsoft.com>2017-03-30 00:07:59 -0700
committernoahfalk <noahfalk@microsoft.com>2017-03-31 19:06:31 -0700
commit4561dad3f38f8dd5a9637fc3a0be418abac1f088 (patch)
tree0894e2f92df51729a5e31b10c6e42b623b2f282d /src/jit/jitee.h
parentbf6a03a994fce9c4b1bb3ba904b67c09d7f40b68 (diff)
downloadcoreclr-4561dad3f38f8dd5a9637fc3a0be418abac1f088.tar.gz
coreclr-4561dad3f38f8dd5a9637fc3a0be418abac1f088.tar.bz2
coreclr-4561dad3f38f8dd5a9637fc3a0be418abac1f088.zip
Add Tier0/1 jit flags
These flags provides a hook to change the JIT policy in the future and diverge tier0/tier1 compilation from min_opt/speed_opt respectively.
Diffstat (limited to 'src/jit/jitee.h')
-rw-r--r--src/jit/jitee.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jit/jitee.h b/src/jit/jitee.h
index 810c93e988..7b0e4a02dc 100644
--- a/src/jit/jitee.h
+++ b/src/jit/jitee.h
@@ -78,6 +78,8 @@ public:
JIT_FLAG_USE_PINVOKE_HELPERS = 36, // The JIT should use the PINVOKE_{BEGIN,END} helpers instead of emitting inline transitions
JIT_FLAG_REVERSE_PINVOKE = 37, // The JIT should insert REVERSE_PINVOKE_{ENTER,EXIT} helpers into method prolog/epilog
JIT_FLAG_DESKTOP_QUIRKS = 38, // The JIT should generate desktop-quirk-compatible code
+ JIT_FLAG_TIER0 = 39, // This is the initial tier for tiered compilation which should generate code as quickly as possible
+ JIT_FLAG_TIER1 = 40, // This is the final tier (for now) for tiered compilation which should generate high quality code
};
// clang-format on
@@ -187,6 +189,8 @@ public:
FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_USE_PINVOKE_HELPERS, JIT_FLAG_USE_PINVOKE_HELPERS);
FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_REVERSE_PINVOKE, JIT_FLAG_REVERSE_PINVOKE);
FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_DESKTOP_QUIRKS, JIT_FLAG_DESKTOP_QUIRKS);
+ FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_TIER0, JIT_FLAG_TIER0);
+ FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_TIER1, JIT_FLAG_TIER1);
#undef FLAGS_EQUAL
}