aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/CodeGen/RegisterAllocators/AllocationResult.cs
blob: 43e5c7e2c942907619fdcb0946c33beca27cbf7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace ARMeilleure.CodeGen.RegisterAllocators
{
    readonly struct AllocationResult
    {
        public int IntUsedRegisters { get; }
        public int VecUsedRegisters { get; }
        public int SpillRegionSize  { get; }

        public AllocationResult(
            int intUsedRegisters,
            int vecUsedRegisters,
            int spillRegionSize)
        {
            IntUsedRegisters = intUsedRegisters;
            VecUsedRegisters = vecUsedRegisters;
            SpillRegionSize  = spillRegionSize;
        }
    }
}