blob: 5616941cae238ffddad27a2086bcfce821b6524c (
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
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace ILCompiler.DependencyAnalysis.LoongArch64
{
public enum AddrModeSize
{
Int8 = 1,
Int16 = 2,
Int32 = 4,
Int64 = 8,
Int128 = 16
}
public struct AddrMode
{
public readonly Register BaseReg;
public readonly Register? IndexReg;
public readonly int Offset;
public readonly byte Scale;
public readonly AddrModeSize Size;
public AddrMode(Register baseRegister, Register? indexRegister, int offset, byte scale, AddrModeSize size)
{
BaseReg = baseRegister;
IndexReg = indexRegister;
Offset = offset;
Scale = scale;
Size = size;
}
}
}
|