diff options
Diffstat (limited to 'ARMeilleure/Allocators.cs')
| -rw-r--r-- | ARMeilleure/Allocators.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ARMeilleure/Allocators.cs b/ARMeilleure/Allocators.cs index df762f4c..deabf9a2 100644 --- a/ARMeilleure/Allocators.cs +++ b/ARMeilleure/Allocators.cs @@ -10,11 +10,15 @@ namespace ARMeilleure [ThreadStatic] private static ArenaAllocator _operands; [ThreadStatic] private static ArenaAllocator _operations; [ThreadStatic] private static ArenaAllocator _references; + [ThreadStatic] private static ArenaAllocator _liveRanges; + [ThreadStatic] private static ArenaAllocator _liveIntervals; public static ArenaAllocator Default => GetAllocator(ref _default, 256 * 1024, 4); public static ArenaAllocator Operands => GetAllocator(ref _operands, 64 * 1024, 8); public static ArenaAllocator Operations => GetAllocator(ref _operations, 64 * 1024, 8); public static ArenaAllocator References => GetAllocator(ref _references, 64 * 1024, 8); + public static ArenaAllocator LiveRanges => GetAllocator(ref _liveRanges, 64 * 1024, 8); + public static ArenaAllocator LiveIntervals => GetAllocator(ref _liveIntervals, 64 * 1024, 8); [MethodImpl(MethodImplOptions.AggressiveInlining)] private static ArenaAllocator GetAllocator(ref ArenaAllocator alloc, uint pageSize, uint pageCount) |
