164 references to Add
ILCompiler.Compiler (161)
Compiler\DependencyAnalysis\ConstructedEETypeNode.cs (3)
39
dependencyList.
Add
(factory.MetadataTypeSymbol(_type), "MetadataType for constructed type");
47
dependencyList.
Add
(factory.ConstructedTypeSymbol(_type.BaseType), "Array base type");
54
dependencyList.
Add
(factory.ConstructedTypeSymbol(arrayType.ElementType.MakeArrayType()), "Rank 1 array");
Compiler\DependencyAnalysis\EETypeNode.cs (3)
608
dependencies.
Add
(maximallyConstructableType, "Type is template-loadable");
631
dependencies.
Add
(factory.ConstructedTypeSymbol(canonicalType), "Type with generic virtual methods");
655
dependencies.
Add
(factory.MethodEntrypoint(method.GetCanonMethodTarget(CanonicalFormKind.Specific)),
Compiler\DependencyAnalysis\FrozenObjectNode.cs (1)
59
dependencies.
Add
(reloc.Target, "reloc");
Compiler\DependencyAnalysis\FunctionPointerMapNode.cs (2)
40
dependencies.
Add
(factory.NecessaryTypeSymbol(type.Signature.ReturnType), "Function pointer type composition");
42
dependencies.
Add
(factory.NecessaryTypeSymbol(paramType), "Function pointer type composition");
Compiler\DependencyAnalysis\GenericDefinitionEETypeNode.cs (1)
105
dependencyList.
Add
(factory.NecessaryTypeSymbol(_type), "Reflection invisible type for a visible type");
Compiler\DependencyAnalysis\GenericVirtualMethodImplNode.cs (1)
53
dependencies.
Add
(factory.MethodEntrypoint(_method, getUnboxingStub), "GVM Dependency - Canon method");
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (2)
55
dependencies.
Add
(factory.NecessaryTypeSymbol(openCallingMethod.OwningType), "Owning type of GVM declaration");
57
dependencies.
Add
(factory.NecessaryTypeSymbol(openImplementationMethod.OwningType), "Owning type of GVM implementation");
Compiler\DependencyAnalysis\InterfaceDispatchCellNode.cs (1)
105
result.
Add
(GetInterfaceTypeNode(factory), "Interface type");
Compiler\DependencyAnalysis\MetadataEETypeNode.cs (5)
38
dependencyList.
Add
(factory.NecessaryTypeSymbol(_type), "NecessaryType for metadata type");
49
dependencyList.
Add
(factory.MaximallyConstructableType(_type), "Reflection visible valuetype");
53
dependencyList.
Add
(factory.MaximallyConstructableType(_type), "Reflection visible delegate");
57
dependencyList.
Add
(factory.MaximallyConstructableType(_type), "Reflection visible array");
75
dependencyList.
Add
(factory.MaximallyConstructableType(_type), "Has static virtual methods");
Compiler\DependencyAnalysis\ModuleUseBasedDependencyAlgorithm.cs (1)
17
dependencyList.
Add
(factory.MethodEntrypoint(moduleCctor), "Module with a static constructor");
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (7)
1300
dependencies.
Add
(dependency, "template construction dependency for method OwningType");
1306
dependencies.
Add
(dependency, "template construction dependency for method Instantiation types");
1345
result.
Add
(dependency, "template construction dependency");
1384
result.
Add
(dependency, "template construction dependency for method OwningType");
1390
result.
Add
(dependency, "template construction dependency for method Instantiation types");
1546
dependencies.
Add
(dependency, "template construction dependency for method OwningType");
1552
dependencies.
Add
(dependency, "template construction dependency for method Instantiation types");
Compiler\DependencyAnalysis\ReadyToRunGenericHelperNode.cs (1)
187
result.
Add
(GetBadSlotHelper(factory), "Failure to build dictionary slot");
Compiler\DependencyAnalysis\ReflectedFieldNode.cs (5)
60
dependencies.
Add
(factory.MaximallyConstructableType(_field.OwningType), "Instance base of a reflectable field");
74
dependencies.
Add
(factory.TypeThreadStaticIndex(_field.OwningType), "Threadstatic base of a reflectable field");
78
dependencies.
Add
(factory.TypeGCStaticsSymbol(_field.OwningType), "GC static base of a reflectable field");
82
dependencies.
Add
(factory.TypeNonGCStaticsSymbol(_field.OwningType), "NonGC static base of a reflectable field");
88
dependencies.
Add
(factory.TypeNonGCStaticsSymbol(_field.OwningType), "CCtor context");
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (7)
47
dependencies.
Add
(factory.MaximallyConstructableType(method.OwningType), "Reflection invoke");
52
dependencies.
Add
(factory.MethodEntrypoint(invokeStub), "Reflection invoke");
61
dependencies.
Add
(factory.MethodEntrypoint(method, unboxingStub: true), "Reflection unboxing stub");
69
dependencies.
Add
(factory.AddressTakenMethodEntrypoint(method), "Body of a reflectable method");
76
dependencies.
Add
(factory.NecessaryTypeSymbol(instArg), "Reflectable generic method inst arg");
109
dependencies.
Add
(factory.MaximallyConstructableType(type.NormalizeInstantiation()), reason);
111
dependencies.
Add
(factory.MetadataTypeSymbol(type.NormalizeInstantiation()), reason);
Compiler\DependencyAnalysis\ReflectionInvokeSupportDependencyAlgorithm.cs (1)
49
dependencies.
Add
(
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
85
dependencies.
Add
(
Compiler\DependencyAnalysis\StaticsInfoHashtableNode.cs (3)
51
dependencies.
Add
(factory.TypeGCStaticsSymbol(metadataType), "GC statics indirection for StaticsInfoHashtable");
58
dependencies.
Add
(factory.TypeNonGCStaticsSymbol(metadataType), "Non-GC statics indirection for StaticsInfoHashtable");
63
dependencies.
Add
(factory.TypeThreadStaticIndex(metadataType), "Threadstatics indirection for StaticsInfoHashtable");
Compiler\DependencyAnalysis\StringAllocatorMethodNode.cs (2)
53
result.
Add
(
56
result.
Add
(
Compiler\MetadataManager.cs (1)
509
dependencies.
Add
(factory.TypeNonGCStaticsSymbol((MetadataType)method.OwningType), "Static constructor is reflection-callable");
Compiler\UsageBasedMetadataManager.cs (2)
273
dependencies.
Add
(factory.MethodEntrypoint(moduleCctor), "Module with a static constructor");
366
var rootProvider = new RootingServiceProvider(factory, dependencies.
Add
);
IL\ILImporter.Scanner.cs (110)
145
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.GetNonGCStaticBase, method.OwningType), "Owning type cctor");
149
_dependencies.
Add
(_factory.ReadyToRunHelper(ReadyToRunHelperId.GetNonGCStaticBase, method.OwningType), "Owning type cctor");
158
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.MonitorEnter), reason);
159
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.MonitorExit), reason);
162
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)), reason);
167
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, method.OwningType), reason);
171
_dependencies.
Add
(_factory.NecessaryTypeSymbol(method.OwningType), reason);
177
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)), reason);
186
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContexts"u8, null)), reason);
187
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContexts"u8, null)), reason);
263
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandleForCasting, catchType), "EH");
267
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.TypeHandleForCasting, catchType), "EH");
305
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandleForCasting, type), "IsInst/CastClass");
309
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.TypeHandleForCasting, type), "IsInst/CastClass");
447
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(resumptionStub), asyncReason);
449
_dependencies.
Add
(_factory.ConstructedTypeSymbol(_compilation.TypeSystemContext.ContinuationType), asyncReason);
453
_dependencies.
Add
(_compilation.GetHelperEntrypoint(ReadyToRunHelper.AllocContinuation), asyncReason);
454
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureExecutionContext"u8, null)), asyncReason);
455
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContinuationContext"u8, null)), asyncReason);
456
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContextsOnSuspension"u8, null)), asyncReason);
457
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionNoContinuationContext"u8, null)), asyncReason);
458
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionWithContinuationContext"u8, null)), asyncReason);
514
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, owningType), reason);
518
_dependencies.
Add
(_factory.ConstructedTypeSymbol(owningType), reason);
526
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewMultiDimArrRare), reason);
528
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewMultiDimArr), reason);
533
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewObject), reason);
555
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DefaultConstructor, runtimeDeterminedMethod.Instantiation[0]), reason);
561
_dependencies.
Add
(type.IsValueType ? _factory.ExactCallableAddress(ctor) : _factory.CanonicalEntrypoint(ctor), reason);
571
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.ObjectAllocator, runtimeDeterminedMethod.Instantiation[0]), reason);
575
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.ObjectAllocator, method.Instantiation[0]), reason);
585
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.Instantiation[0]), reason);
589
_dependencies.
Add
(_factory.ConstructedTypeSymbol(method.Instantiation[0]), reason);
732
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.ConstrainedDirectCall, constrainedCallInfo), reason);
751
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodEntry, targetOfLookup), reason);
763
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodEntry, runtimeDeterminedMethod), reason);
767
_dependencies.
Add
(_factory.FatFunctionPointer(targetMethod), reason);
790
_dependencies.
Add
(_factory.StringAllocator(targetMethod), reason);
819
_dependencies.
Add
(instParam, reason);
822
_dependencies.
Add
(_factory.CanonicalEntrypoint(targetMethod), reason);
827
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
832
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, _constrained), reason);
834
_dependencies.
Add
(_factory.ConstructedTypeSymbol(_constrained), reason);
840
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.OwningType), reason);
860
_dependencies.
Add
(instParam, reason);
863
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
887
_dependencies.
Add
(GetGenericLookupHelper(constrainedHelperId, constrainedCallInfo), reason);
901
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodHandle, methodToLookup), reason);
908
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GVMLookupForSlot), reason);
914
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.VirtualDispatchCell, runtimeDeterminedMethod), reason);
949
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
951
_dependencies.
Add
(_factory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
983
_dependencies.
Add
(_factory.CanonicalEntrypoint(stub), "calli");
1071
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, type), "Unbox");
1075
_dependencies.
Add
(_factory.NecessaryTypeSymbol(type), "Unbox");
1082
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Unbox_TypeTest), "Unbox");
1090
_dependencies.
Add
(GetHelperEntrypoint(helper), "Unbox");
1095
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRefAny), "refanyval");
1101
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.TypeHandleToRuntimeType), "mkrefany");
1102
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.TypeHandleToRuntimeTypeHandle), "mkrefany");
1112
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, type), reason);
1116
_dependencies.
Add
(_factory.MaximallyConstructableType(type), reason);
1145
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeTypeHandle), "ldtoken");
1146
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeType), "ldtoken");
1163
_dependencies.
Add
(reference, "ldtoken");
1171
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodHandle, method), "ldtoken");
1178
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeMethodHandle), "ldtoken");
1188
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.FieldHandle, field), "ldtoken");
1195
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeFieldHandle), "ldtoken");
1268
_dependencies.
Add
(_compilation.GetFieldRvaData(field), reason);
1294
_dependencies.
Add
(GetGenericLookupHelper(helperId, owningType), reason);
1298
_dependencies.
Add
(_factory.ReadyToRunHelper(helperId, owningType), reason);
1384
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, type), reason);
1388
_dependencies.
Add
(_factory.ConstructedTypeSymbol(type), reason);
1393
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Box_Nullable), reason);
1397
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Box), reason);
1412
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, elementType.MakeArrayType()), "newarr");
1413
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewArray), "newarr");
1419
_dependencies.
Add
(_factory.ConstructedTypeSymbol(elementType.MakeArrayType()), "newarr");
1425
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
1430
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
1442
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Stelem_Ref), "stelem");
1445
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "stelem");
1454
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, elementType), "ldelema");
1456
_dependencies.
Add
(_factory.NecessaryTypeSymbol(elementType), "ldelema");
1458
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Ldelema_Ref), "ldelema");
1461
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelema");
1472
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1478
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LMulOfv), "_lmulovf");
1479
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULMulOvf), "_ulmulovf");
1482
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1488
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULDiv), "_uldiv");
1489
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LDiv), "_ldiv");
1493
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.UDiv), "_udiv");
1494
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Div), "_div");
1499
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ThrowDivZero), "_divbyzero");
1502
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1510
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULMod), "_ulmod");
1511
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LMod), "_lmod");
1514
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.UMod), "_umod");
1515
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Mod), "_mod");
1520
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ThrowDivZero), "_divbyzero");
1523
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1527
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.DblRem), "rem");
1528
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.FltRem), "rem");
1537
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2IntOvf), "_dbl2intovf");
1538
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2UIntOvf), "_dbl2uintovf");
1539
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2LngOvf), "_dbl2lngovf");
1540
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2ULngOvf), "_dbl2ulngovf");
1542
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
67
dependencies.
Add
(reloc.Target, "reloc");
ILCompiler.ReadyToRun (3)
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (1)
275
dependencyList.
Add
(node, "classMustBeLoadedBeforeCodeIsRun");
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
510
_additionalDependencies.
Add
(node, reason);
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
67
dependencies.
Add
(reloc.Target, "reloc");