Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TargetDetails.CodeGen.cs « CodeGen « TypeSystem « Common « tools « coreclr « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f24974c811b78e7f44e10e6f65fe7b7de0616809 (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
41
42
43
44
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Internal.TypeSystem
{
    // Extension to TargetDetails related to code generation
    partial class TargetDetails
    {
        public TargetDetails(TargetArchitecture architecture, TargetOS targetOS, TargetAbi abi, SimdVectorLength simdVectorLength)
            : this(architecture, targetOS, abi)
        {
            MaximumSimdVectorLength = simdVectorLength;
        }

        /// <summary>
        /// Specifies the maximum size of native vectors on the target architecture.
        /// </summary>
        public SimdVectorLength MaximumSimdVectorLength
        {
            get;
        }
    }

    /// <summary>
    /// Specifies the size of native vectors.
    /// </summary>
    public enum SimdVectorLength
    {
        /// <summary>
        /// Specifies that native vectors are not supported.
        /// </summary>
        None,

        /// <summary>
        /// Specifies that native vectors are 128 bit (e.g. SSE on x86).
        /// </summary>
        Vector128Bit,

        /// <summary>
        /// Specifies that native vectors are 256 bit (e.g. AVX on x86).
        /// </summary>
        Vector256Bit,
    }
}