69 references to IsPrimitive
ILCompiler.Compiler (21)
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (2)
269
if (type.UnderlyingType.
IsPrimitive
|| type.IsString || value == null)
275
if (elementType.UnderlyingType.
IsPrimitive
|| elementType.IsString)
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (1)
96
if (type.
IsPrimitive
|| type.IsVoid)
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (1)
85
Debug.Assert(type.
IsPrimitive
, "it is not a primitive type");
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (1)
267
Debug.Assert(type.
IsPrimitive
, "it is not a primitive type");
Compiler\UserDefinedTypeDescriptor.cs (2)
256
if (type.
IsPrimitive
)
849
Debug.Assert(type.
IsPrimitive
, "it is not a primitive type");
IL\RvaIntrinsicPatternAnalyzer.cs (2)
284
if ((!elementType.
IsPrimitive
|| elementType.IsVoid)
344
&& (method.Instantiation[0].
IsPrimitive
|| method.Instantiation[0].IsEnum))
parent\parent\Common\JitInterface\WasmLowering.cs (3)
60
if (!(type.IsValueType && !type.
IsPrimitive
))
119
if (type.IsValueType && !type.
IsPrimitive
)
233
if (type.
IsPrimitive
)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
283
if (fieldType.
IsPrimitive
|| fieldType.IsEnum || fieldType.IsPointer || fieldType.IsFunctionPointer)
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\Interop\IL\MarshalHelpers.Aot.cs (1)
22
if (typeDesc.
IsPrimitive
)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (5)
239
if (type.IsValueType && !type.
IsPrimitive
&& !type.IsEnum && !isField
270
if (type.
IsPrimitive
)
517
if (type.IsValueType && !type.
IsPrimitive
&& !type.IsEnum && !isField
698
if (elementType.
IsPrimitive
)
924
else if (underlyingType.
IsPrimitive
)
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
357
if (type.
IsPrimitive
)
ILCompiler.ReadyToRun (31)
Compiler\DependencyAnalysis\ReadyToRun\SignatureContext.cs (1)
58
if (type.
IsPrimitive
|| type.IsString || type.IsObject || type.IsWellKnownType(WellKnownType.TypedReference))
Compiler\ExternalReferenceTokenManager.cs (1)
153
if (type.
IsPrimitive
|| type.IsVoid || type.IsObject || type.IsString || type.IsTypedReference)
Compiler\R2RTypeExtensions.cs (1)
35
else if (type.
IsPrimitive
)
Compiler\ReadyToRunCodegenCompilation.cs (1)
613
if (type.
IsPrimitive
|| type.IsEnum)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (7)
325
type.
IsPrimitive
||
351
!fieldType.
IsPrimitive
)
514
if (instArg.
IsPrimitive
)
604
if (local.Type.
IsPrimitive
)
827
if (type.
IsPrimitive
|| type.IsVoid || type.IsObject || type.IsString || type.IsTypedReference)
900
if (instType.
IsPrimitive
|| instType.IsObject || instType.IsString)
916
if (instType.
IsPrimitive
)
Compiler\ReadyToRunCompilerContext.cs (1)
172
return !fieldType.
IsPrimitive
&& !fieldType.IsEnum; // In CoreCLR, all structs are implicitly boxed i.e. stored as GC pointers
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (1)
102
if (fieldType.
IsPrimitive
|| fieldType.IsFunctionPointer || fieldType.IsPointer)
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
1708
!field.FieldType.UnderlyingType.
IsPrimitive
)
2427
if (!type.
IsPrimitive
)
2727
if (typeDefinition.
IsPrimitive
|| typeDefinition.IsVoid || typeDefinition.IsString || typeDefinition.IsObject
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
998
if (type.
IsPrimitive
)
3057
if (!type.
IsPrimitive
&& !type.IsEnum)
3205
if (type.
IsPrimitive
|| type.IsEnum)
parent\parent\Common\JitInterface\WasmLowering.cs (3)
60
if (!(type.IsValueType && !type.
IsPrimitive
))
119
if (type.IsValueType && !type.
IsPrimitive
)
233
if (type.
IsPrimitive
)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
283
if (fieldType.
IsPrimitive
|| fieldType.IsEnum || fieldType.IsPointer || fieldType.IsFunctionPointer)
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\Interop\IL\MarshalHelpers.cs (5)
239
if (type.IsValueType && !type.
IsPrimitive
&& !type.IsEnum && !isField
270
if (type.
IsPrimitive
)
517
if (type.IsValueType && !type.
IsPrimitive
&& !type.IsEnum && !isField
698
if (elementType.
IsPrimitive
)
924
else if (underlyingType.
IsPrimitive
)
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
357
if (type.
IsPrimitive
)
PortableCallHelpers\PInvokeTableGenerator.cs (1)
398
if (!type.IsValueType || type.
IsPrimitive
|| type.IsEnum || type is FunctionPointerType)
ILCompiler.RyuJit (3)
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
998
if (type.
IsPrimitive
)
3057
if (!type.
IsPrimitive
&& !type.IsEnum)
3205
if (type.
IsPrimitive
|| type.IsEnum)
ILCompiler.TypeSystem (14)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (4)
104
if (type1.
IsPrimitive
&& type2.
IsPrimitive
)
354
else if (fromParamUnderlyingType.
IsPrimitive
)
607
else if (arrayCovariance && fromUnderlyingType.
IsPrimitive
)
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (7)
88
if (type.
IsPrimitive
)
258
if (fieldType.
IsPrimitive
)
784
Debug.Assert(fieldType.
IsPrimitive
|| fieldType.IsPointer || fieldType.IsFunctionPointer || fieldType.IsEnum || fieldType.IsByRef);
854
Debug.Assert(fieldType.
IsPrimitive
|| fieldType.IsPointer || fieldType.IsFunctionPointer || fieldType.IsEnum || fieldType.IsByRef);
858
if (fieldType.
IsPrimitive
|| fieldType.IsEnum)
1102
return type.IsValueType && !type.
IsPrimitive
&& !type.IsEnum;
1397
if (!fieldType.IsValueType || fieldType.
IsPrimitive
)
parent\parent\Common\TypeSystem\Common\Utilities\ExceptionTypeNameFormatter.cs (1)
94
if (type.
IsPrimitive
)
parent\parent\Common\TypeSystem\IL\ILDisassembler.cs (2)
74
if (type.
IsPrimitive
|| type.IsString || type.IsObject)
449
&& !type.
IsPrimitive