blob: a1b5808c94b448dd70458bbb6c0ee15b7a6921d1 (
plain)
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
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using Internal.TypeSystem;
namespace ILCompiler.DependencyAnalysis.LoongArch64
{
/// <summary>
/// Maps logical registers to physical registers on a specified OS.
/// </summary>
public struct TargetRegisterMap
{
public readonly Register Arg0;
public readonly Register Arg1;
public readonly Register Arg2;
public readonly Register Arg3;
public readonly Register Arg4;
public readonly Register Arg5;
public readonly Register Arg6;
public readonly Register Arg7;
public readonly Register IntraProcedureCallScratch1;
public readonly Register Result;
public TargetRegisterMap(TargetOS os)
{
Arg0 = Register.R4;
Arg1 = Register.R5;
Arg2 = Register.R6;
Arg3 = Register.R7;
Arg4 = Register.R8;
Arg5 = Register.R9;
Arg6 = Register.R11;
Arg7 = Register.R12;
IntraProcedureCallScratch1 = Register.R21;
Result = Register.R4;
}
}
}
|