168 references to Add
ILCompiler.Compiler (165)
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 (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");
535
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, owningType), reason);
539
_dependencies.
Add
(_factory.ConstructedTypeSymbol(owningType), reason);
547
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewMultiDimArrRare), reason);
549
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewMultiDimArr), reason);
554
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewObject), reason);
576
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DefaultConstructor, runtimeDeterminedMethod.Instantiation[0]), reason);
582
_dependencies.
Add
(type.IsValueType ? _factory.ExactCallableAddress(ctor) : _factory.CanonicalEntrypoint(ctor), reason);
592
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.ObjectAllocator, runtimeDeterminedMethod.Instantiation[0]), reason);
596
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.ObjectAllocator, method.Instantiation[0]), reason);
606
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.Instantiation[0]), reason);
610
_dependencies.
Add
(_factory.ConstructedTypeSymbol(method.Instantiation[0]), reason);
753
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.ConstrainedDirectCall, constrainedCallInfo), reason);
772
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodEntry, targetOfLookup), reason);
784
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodEntry, runtimeDeterminedMethod), reason);
788
_dependencies.
Add
(_factory.FatFunctionPointer(targetMethod), reason);
811
_dependencies.
Add
(_factory.StringAllocator(targetMethod), reason);
840
_dependencies.
Add
(instParam, reason);
843
_dependencies.
Add
(_factory.CanonicalEntrypoint(targetMethod), reason);
848
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
853
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, _constrained), reason);
855
_dependencies.
Add
(_factory.ConstructedTypeSymbol(_constrained), reason);
861
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.OwningType), reason);
881
_dependencies.
Add
(instParam, reason);
884
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
908
_dependencies.
Add
(GetGenericLookupHelper(constrainedHelperId, constrainedCallInfo), reason);
922
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodHandle, methodToLookup), reason);
929
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GVMLookupForSlot), reason);
935
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.VirtualDispatchCell, runtimeDeterminedMethod), reason);
970
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
972
_dependencies.
Add
(_factory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
985
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(resumptionStub), asyncReason);
987
_dependencies.
Add
(_factory.ConstructedTypeSymbol(_compilation.TypeSystemContext.ContinuationType), asyncReason);
991
_dependencies.
Add
(_compilation.GetHelperEntrypoint(ReadyToRunHelper.AllocContinuation), asyncReason);
992
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureExecutionContext"u8, null)), asyncReason);
993
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContinuationContext"u8, null)), asyncReason);
994
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContextsOnSuspension"u8, null)), asyncReason);
995
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionNoContinuationContext"u8, null)), asyncReason);
996
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionWithContinuationContext"u8, null)), asyncReason);
1026
_dependencies.
Add
(_factory.CanonicalEntrypoint(stub), "calli");
1114
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, type), "Unbox");
1118
_dependencies.
Add
(_factory.NecessaryTypeSymbol(type), "Unbox");
1125
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Unbox_TypeTest), "Unbox");
1133
_dependencies.
Add
(GetHelperEntrypoint(helper), "Unbox");
1138
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRefAny), "refanyval");
1144
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.TypeHandleToRuntimeType), "mkrefany");
1145
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.TypeHandleToRuntimeTypeHandle), "mkrefany");
1155
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, type), reason);
1159
_dependencies.
Add
(_factory.MaximallyConstructableType(type), reason);
1188
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeTypeHandle), "ldtoken");
1189
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeType), "ldtoken");
1206
_dependencies.
Add
(reference, "ldtoken");
1214
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodHandle, method), "ldtoken");
1221
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeMethodHandle), "ldtoken");
1231
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.FieldHandle, field), "ldtoken");
1238
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeFieldHandle), "ldtoken");
1311
_dependencies.
Add
(_compilation.GetFieldRvaData(field), reason);
1337
_dependencies.
Add
(GetGenericLookupHelper(helperId, owningType), reason);
1341
_dependencies.
Add
(_factory.ReadyToRunHelper(helperId, owningType), reason);
1427
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, type), reason);
1431
_dependencies.
Add
(_factory.ConstructedTypeSymbol(type), reason);
1436
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Box_Nullable), reason);
1440
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Box), reason);
1455
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, elementType.MakeArrayType()), "newarr");
1456
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewArray), "newarr");
1462
_dependencies.
Add
(_factory.ConstructedTypeSymbol(elementType.MakeArrayType()), "newarr");
1468
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
1473
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
1485
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Stelem_Ref), "stelem");
1488
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "stelem");
1497
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, elementType), "ldelema");
1499
_dependencies.
Add
(_factory.NecessaryTypeSymbol(elementType), "ldelema");
1501
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Ldelema_Ref), "ldelema");
1504
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelema");
1515
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1521
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LMulOfv), "_lmulovf");
1522
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULMulOvf), "_ulmulovf");
1525
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1531
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULDiv), "_uldiv");
1532
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LDiv), "_ldiv");
1536
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.UDiv), "_udiv");
1537
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Div), "_div");
1542
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ThrowDivZero), "_divbyzero");
1545
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1553
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULMod), "_ulmod");
1554
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LMod), "_lmod");
1557
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.UMod), "_umod");
1558
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Mod), "_mod");
1563
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ThrowDivZero), "_divbyzero");
1566
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1570
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.DblRem), "rem");
1571
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.FltRem), "rem");
1580
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2IntOvf), "_dbl2intovf");
1581
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2UIntOvf), "_dbl2uintovf");
1582
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2LngOvf), "_dbl2lngovf");
1583
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2ULngOvf), "_dbl2ulngovf");
1585
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1843
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodDictionary, runtimeDeterminedResult), reason);
1844
_dependencies.
Add
(_factory.CanonicalEntrypoint(targetMethod), reason);
1850
_dependencies.
Add
(_compilation.NodeFactory.MethodGenericDictionary(runtimeDeterminedResult), reason);
1853
_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");