110 references to Category
ILCompiler.Compiler (37)
Compiler\BodySubstitutionParser.cs (2)
167
if (type.IsEnum && type.UnderlyingType.
Category
== TypeFlags.Int32)
187
switch (type.UnderlyingType.
Category
)
Compiler\DependencyAnalysis\ConstructedEETypeNode.cs (1)
99
switch (type.
Category
)
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (3)
320
switch (type.
Category
)
363
switch (_type.
Category
)
424
switch (_type.
Category
)
Compiler\DependencyAnalysis\TypeMetadataNode.cs (1)
126
switch (type.
Category
)
Compiler\MetadataManager.cs (1)
1171
switch (type.
Category
)
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (1)
86
return GetPrimitiveTypeIndex(type.
Category
);
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (1)
268
return GetPrimitiveTypeIndex(type.
Category
);
Compiler\SubstitutedILProvider.cs (1)
681
TypeFlags returnType = method.Signature.ReturnType.UnderlyingType.
Category
;
Compiler\TypePreinit.cs (6)
1772
opcode = type.
Category
switch
2063
switch (locationType.UnderlyingType.
Category
)
2131
switch (locationType.
Category
)
2160
switch (locationType.
Category
)
2193
&& locationType.
Category
is not TypeFlags.IntPtr and not TypeFlags.UIntPtr and not TypeFlags.Pointer and not TypeFlags.FunctionPointer)
2642
if (field.FieldType.
Category
!= TypeFlags.FunctionPointer)
parent\parent\Common\Compiler\DevirtualizationManager.cs (1)
23
switch (type.
Category
)
parent\parent\Common\Compiler\NativeAotNameMangler.cs (2)
330
switch (t.
Category
)
370
switch (type.
Category
)
parent\parent\Common\Compiler\TypeExtensions.cs (2)
188
TypeFlags category = type1.
Category
;
189
if (category != type2.
Category
)
parent\parent\Common\Internal\Runtime\EETypeBuilderHelpers.cs (1)
34
EETypeElementType elementType = (EETypeElementType)type.
Category
;
parent\parent\Common\JitInterface\WasmLowering.cs (2)
342
switch (abiType.UnderlyingType.
Category
)
377
throw new NotSupportedException($"Unknown wasm mapping for type: {type.UnderlyingType.
Category
}");
parent\parent\Common\TypeSystem\IL\DelegateInfo.cs (1)
163
switch (firstParam.
Category
)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
285
TypeFlags category = fieldType.UnderlyingType.
Category
;
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
44
else if ((tType.IsPrimitive || tType.IsEnum) && (tType.UnderlyingType.
Category
is not (TypeFlags.Single or TypeFlags.Double)))
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
40
switch (elementType.UnderlyingType.
Category
)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.Aot.cs (1)
24
return typeDesc.
Category
is TypeFlags.Boolean or TypeFlags.Char;
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (3)
272
switch (type.
Category
)
700
switch (elementType.
Category
)
915
if (underlyingType.
Category
== TypeFlags.Void)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
1186
switch (indexType.
Category
)
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
360
switch (type.
Category
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
34
switch (type.
Category
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
141
switch (type.
Category
)
ILCompiler.MetadataTransform (4)
ILCompiler\Metadata\Transform.cs (1)
27
switch (type.
Category
)
ILCompiler\Metadata\Transform.CustomAttribute.cs (2)
89
switch (type.UnderlyingType.
Category
)
93
case <= Cts.TypeFlags.UInt64: return (Ecma.SerializationTypeCode)type.UnderlyingType.
Category
;
ILCompiler\Metadata\Transform.Type.cs (1)
42
switch (type.
Category
)
ILCompiler.ReadyToRun (30)
Compiler\DependencyAnalysis\ReadyToRun\GCRefMapBuilder.cs (1)
235
switch (type.
Category
)
Compiler\DependencyAnalysis\ReadyToRun\SignatureBuilder.cs (1)
210
switch (typeDesc.
Category
)
Compiler\DependencyAnalysis\ReadyToRun\TypeHandle.cs (2)
104
Internal.TypeSystem.TypeFlags category = _type.UnderlyingType.
Category
;
164
switch (typeOfEmbeddedField.UnderlyingType.
Category
)
parent\parent\Common\Compiler\DevirtualizationManager.cs (1)
23
switch (type.
Category
)
parent\parent\Common\Compiler\NativeAotNameMangler.cs (2)
330
switch (t.
Category
)
370
switch (type.
Category
)
parent\parent\Common\Compiler\TypeExtensions.cs (2)
188
TypeFlags category = type1.
Category
;
189
if (category != type2.
Category
)
parent\parent\Common\Internal\Runtime\RiscVLoongArch64FpStruct.cs (1)
152
TypeFlags category = field.FieldType.
Category
;
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
1004
return (CorInfoType)type.
Category
;
parent\parent\Common\JitInterface\SwiftPhysicalLowering.cs (4)
74
if (fieldType.
Category
is TypeFlags.Single)
79
if (fieldType.
Category
is TypeFlags.Double)
84
if (fieldType.
Category
is TypeFlags.UInt64 or TypeFlags.Int64)
91
if (fieldType.
Category
is TypeFlags.IntPtr or TypeFlags.UIntPtr or TypeFlags.Pointer or TypeFlags.FunctionPointer)
parent\parent\Common\JitInterface\SystemVStructClassificator.cs (2)
102
switch (typeDesc.
Category
)
136
Debug.Fail($"Type {typeDesc} with unexpected category {typeDesc.
Category
}");
parent\parent\Common\JitInterface\WasmLowering.cs (2)
342
switch (abiType.UnderlyingType.
Category
)
377
throw new NotSupportedException($"Unknown wasm mapping for type: {type.UnderlyingType.
Category
}");
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
285
TypeFlags category = fieldType.UnderlyingType.
Category
;
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
44
else if ((tType.IsPrimitive || tType.IsEnum) && (tType.UnderlyingType.
Category
is not (TypeFlags.Single or TypeFlags.Double)))
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
40
switch (elementType.UnderlyingType.
Category
)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (3)
272
switch (type.
Category
)
700
switch (elementType.
Category
)
915
if (underlyingType.
Category
== TypeFlags.Void)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
1186
switch (indexType.
Category
)
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
360
switch (type.
Category
)
PortableCallHelpers\PInvokeTableGenerator.cs (1)
415
private static string MapType(TypeDesc type) => type.
Category
switch
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
34
switch (type.
Category
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
141
switch (type.
Category
)
ILCompiler.RyuJit (8)
parent\parent\Common\Internal\Runtime\RiscVLoongArch64FpStruct.cs (1)
152
TypeFlags category = field.FieldType.
Category
;
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
1004
return (CorInfoType)type.
Category
;
parent\parent\Common\JitInterface\SwiftPhysicalLowering.cs (4)
74
if (fieldType.
Category
is TypeFlags.Single)
79
if (fieldType.
Category
is TypeFlags.Double)
84
if (fieldType.
Category
is TypeFlags.UInt64 or TypeFlags.Int64)
91
if (fieldType.
Category
is TypeFlags.IntPtr or TypeFlags.UIntPtr or TypeFlags.Pointer or TypeFlags.FunctionPointer)
parent\parent\Common\JitInterface\SystemVStructClassificator.cs (2)
102
switch (typeDesc.
Category
)
136
Debug.Fail($"Type {typeDesc} with unexpected category {typeDesc.
Category
}");
ILCompiler.TypeSystem (31)
parent\parent\Common\TypeSystem\Canon\CastingHelper.Canon.cs (2)
54
&& type.
Category
== otherType.
Category
)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (9)
33
switch (elementType.UnderlyingType.
Category
)
231
switch (thisType.
Category
)
242
if (otherType.
Category
== thisType.
Category
)
303
if (thisType.
Category
!= otherType.
Category
)
306
if (thisType.
Category
== TypeFlags.SzArray
307
&& otherType.
Category
== TypeFlags.Array
400
TypeFlags elementType = type.
Category
;
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (3)
26
if (thisType.
Category
!= otherType.
Category
)
29
switch (thisType.
Category
)
parent\parent\Common\TypeSystem\Common\DefType.FieldLayout.cs (1)
298
if (
Category
!= TypeFlags.Class)
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
97
flags |= _typeDef.
Category
;
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (1)
1294
switch (metadataType.
Category
)
parent\parent\Common\TypeSystem\Common\TargetDetails.cs (1)
227
switch (type.
Category
)
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (1)
328
switch (thisType.
Category
)
parent\parent\Common\TypeSystem\Common\Utilities\CSharpTypeNameFormatter.cs (1)
173
string keyword = type.
Category
switch
parent\parent\Common\TypeSystem\Common\Utilities\DebugNameFormatter.cs (1)
106
switch (type.
Category
)
parent\parent\Common\TypeSystem\Common\Utilities\TypeNameFormatter.cs (1)
17
switch (type.
Category
)
parent\parent\Common\TypeSystem\Ecma\CustomAttributeTypeProvider.cs (1)
64
switch (type.UnderlyingType.
Category
)
parent\parent\Common\TypeSystem\Ecma\EcmaSignatureEncoder.cs (1)
54
switch (type.
Category
)
parent\parent\Common\TypeSystem\IL\ILDisassembler.cs (1)
542
switch (type.
Category
)
parent\parent\Common\TypeSystem\IL\Stubs\ILEmitter.cs (4)
235
switch (type.UnderlyingType.
Category
)
292
switch (type.UnderlyingType.
Category
)
342
switch (type.UnderlyingType.
Category
)
392
switch (type.UnderlyingType.
Category
)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (2)
734
if (context.DeclarationSignature[i] is {
Category
: TypeFlags.Class } classType)
738
else if (context.DeclarationSignature[i] is ByRefType { ParameterType.
Category
: TypeFlags.Class } byrefType)