172 references to Add
ILCompiler.Compiler (169)
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\GvmDispatchCellInfoSectionNode.cs (2)
115
result.
Add
(factory.MaximallyConstructableType(targetMethod.OwningType), "Owning type of GVM decl");
116
result.
Add
(factory.ConstructedGenericComposition(targetMethod.Instantiation), "GVM instantiation info");
Compiler\DependencyAnalysis\InterfaceDispatchCellInfoSectionNode.cs (1)
103
result.
Add
(GetInterfaceTypeNode(factory, targetMethod), "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 (9)
1302
result.
Add
(dependency, "template construction dependency for method OwningType");
1308
result.
Add
(dependency, "template construction dependency for method Instantiation types");
1343
dependencies.
Add
(dependency, "template construction dependency for method OwningType");
1349
dependencies.
Add
(dependency, "template construction dependency for method Instantiation types");
1388
result.
Add
(dependency, "template construction dependency");
1427
result.
Add
(dependency, "template construction dependency for method OwningType");
1433
result.
Add
(dependency, "template construction dependency for method Instantiation types");
1589
dependencies.
Add
(dependency, "template construction dependency for method OwningType");
1595
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)
515
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 (114)
148
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.GetNonGCStaticBase, method.OwningType), "Owning type cctor");
152
_dependencies.
Add
(_factory.ReadyToRunHelper(ReadyToRunHelperId.GetNonGCStaticBase, method.OwningType), "Owning type cctor");
161
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.MonitorEnter), reason);
162
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.MonitorExit), reason);
165
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)), reason);
170
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, method.OwningType), reason);
174
_dependencies.
Add
(_factory.NecessaryTypeSymbol(method.OwningType), reason);
180
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)), reason);
189
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContexts"u8, null)), reason);
190
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContexts"u8, null)), reason);
278
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandleForCasting, catchType), "EH");
282
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.TypeHandleForCasting, catchType), "EH");
320
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandleForCasting, type), "IsInst/CastClass");
324
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.TypeHandleForCasting, type), "IsInst/CastClass");
612
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, owningType), reason);
616
_dependencies.
Add
(_factory.ConstructedTypeSymbol(owningType), reason);
624
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewMultiDimArrRare), reason);
626
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewMultiDimArr), reason);
631
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewObject), reason);
653
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DefaultConstructor, runtimeDeterminedMethod.Instantiation[0]), reason);
659
_dependencies.
Add
(type.IsValueType ? _factory.ExactCallableAddress(ctor) : _factory.CanonicalEntrypoint(ctor), reason);
669
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.ObjectAllocator, runtimeDeterminedMethod.Instantiation[0]), reason);
673
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.ObjectAllocator, method.Instantiation[0]), reason);
683
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.Instantiation[0]), reason);
687
_dependencies.
Add
(_factory.ConstructedTypeSymbol(method.Instantiation[0]), reason);
830
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.ConstrainedDirectCall, constrainedCallInfo), reason);
849
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodEntry, targetOfLookup), reason);
861
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodEntry, runtimeDeterminedMethod), reason);
865
_dependencies.
Add
(_factory.FatFunctionPointer(targetMethod), reason);
888
_dependencies.
Add
(_factory.StringAllocator(targetMethod), reason);
917
_dependencies.
Add
(instParam, reason);
920
_dependencies.
Add
(_factory.CanonicalEntrypoint(targetMethod), reason);
925
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
930
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, _constrained), reason);
932
_dependencies.
Add
(_factory.ConstructedTypeSymbol(_constrained), reason);
938
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.OwningType), reason);
958
_dependencies.
Add
(instParam, reason);
961
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
985
_dependencies.
Add
(GetGenericLookupHelper(constrainedHelperId, constrainedCallInfo), reason);
999
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DispatchCell, methodToLookup), reason);
1006
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GVMLookupForSlot), reason);
1012
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DispatchCell, runtimeDeterminedMethod), reason);
1047
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
1049
_dependencies.
Add
(_factory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
1062
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(resumptionStub), asyncReason);
1064
_dependencies.
Add
(_factory.ConstructedTypeSymbol(_compilation.TypeSystemContext.ContinuationType), asyncReason);
1068
_dependencies.
Add
(_compilation.GetHelperEntrypoint(ReadyToRunHelper.AllocContinuation), asyncReason);
1069
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureExecutionContext"u8, null)), asyncReason);
1070
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContinuationContext"u8, null)), asyncReason);
1071
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContextsOnSuspension"u8, null)), asyncReason);
1072
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionNoContinuationContext"u8, null)), asyncReason);
1073
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionWithContinuationContext"u8, null)), asyncReason);
1103
_dependencies.
Add
(_factory.CanonicalEntrypoint(stub), "calli");
1191
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, type), "Unbox");
1195
_dependencies.
Add
(_factory.NecessaryTypeSymbol(type), "Unbox");
1202
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Unbox_TypeTest), "Unbox");
1210
_dependencies.
Add
(GetHelperEntrypoint(helper), "Unbox");
1215
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRefAny), "refanyval");
1221
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.TypeHandleToRuntimeType), "mkrefany");
1222
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.TypeHandleToRuntimeTypeHandle), "mkrefany");
1232
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, type), reason);
1236
_dependencies.
Add
(_factory.MaximallyConstructableType(type), reason);
1265
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeTypeHandle), "ldtoken");
1266
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeType), "ldtoken");
1283
_dependencies.
Add
(reference, "ldtoken");
1291
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodHandle, method), "ldtoken");
1298
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeMethodHandle), "ldtoken");
1308
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.FieldHandle, field), "ldtoken");
1315
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeFieldHandle), "ldtoken");
1388
_dependencies.
Add
(_compilation.GetFieldRvaData(field), reason);
1414
_dependencies.
Add
(GetGenericLookupHelper(helperId, owningType), reason);
1418
_dependencies.
Add
(_factory.ReadyToRunHelper(helperId, owningType), reason);
1504
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, type), reason);
1508
_dependencies.
Add
(_factory.ConstructedTypeSymbol(type), reason);
1513
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Box_Nullable), reason);
1517
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Box), reason);
1532
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, elementType.MakeArrayType()), "newarr");
1533
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewArray), "newarr");
1539
_dependencies.
Add
(_factory.ConstructedTypeSymbol(elementType.MakeArrayType()), "newarr");
1545
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
1550
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
1562
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Stelem_Ref), "stelem");
1565
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "stelem");
1574
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, elementType), "ldelema");
1576
_dependencies.
Add
(_factory.NecessaryTypeSymbol(elementType), "ldelema");
1578
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Ldelema_Ref), "ldelema");
1581
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelema");
1592
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1598
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LMulOfv), "_lmulovf");
1599
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULMulOvf), "_ulmulovf");
1602
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1608
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULDiv), "_uldiv");
1609
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LDiv), "_ldiv");
1613
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.UDiv), "_udiv");
1614
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Div), "_div");
1619
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ThrowDivZero), "_divbyzero");
1622
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1630
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULMod), "_ulmod");
1631
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LMod), "_lmod");
1634
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.UMod), "_umod");
1635
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Mod), "_mod");
1640
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ThrowDivZero), "_divbyzero");
1643
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1647
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.DblRem), "rem");
1648
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.FltRem), "rem");
1657
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2IntOvf), "_dbl2intovf");
1658
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2UIntOvf), "_dbl2uintovf");
1659
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2LngOvf), "_dbl2lngovf");
1660
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2ULngOvf), "_dbl2ulngovf");
1662
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1966
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodDictionary, runtimeDeterminedResult), reason);
1967
_dependencies.
Add
(_factory.CanonicalEntrypoint(targetMethod), reason);
1973
_dependencies.
Add
(_compilation.NodeFactory.MethodGenericDictionary(runtimeDeterminedResult), reason);
1976
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
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)
276
dependencyList.
Add
(node, "classMustBeLoadedBeforeCodeIsRun");
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
508
_additionalDependencies.
Add
(node, reason);
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
67
dependencies.
Add
(reloc.Target, "reloc");