62 references to AddReturnValue
illink (62)
Linker.Dataflow\HandleCallAction.cs (8)
75
AddReturnValue
(argumentValues[0]);
81
AddReturnValue
(ArrayValue.Create(0, ((GenericInstanceMethod)calledMethod.Method).GenericArguments[0]));
111
AddReturnValue
(MultiValueLattice.Top);
149
AddReturnValue
(_context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
154
AddReturnValue
(_context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj));
174
AddReturnValue
(new SystemTypeValue(new(staticType, _context)));
178
AddReturnValue
(_context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields));
192
AddReturnValue
(_context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (54)
134
AddReturnValue
(value switch
166
AddReturnValue
(value switch
183
AddReturnValue
(MultiValueLattice.Top);
201
AddReturnValue
(new SystemReflectionMethodBaseValue(methodHandle.RepresentedMethod));
203
AddReturnValue
(annotatedMethodReturnValue);
219
AddReturnValue
(new RuntimeMethodHandleValue(methodBaseValue.RepresentedMethod));
221
AddReturnValue
(annotatedMethodReturnValue);
255
AddReturnValue
(MultiValueLattice.Top);
259
AddReturnValue
(NullValue.Instance);
277
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, returnMemberTypes));
311
AddReturnValue
(new ArrayOfAnnotatedSystemTypeValue(_annotations.GetMethodReturnValue(calledMethod, isNewObj: false, returnMemberTypes)));
336
AddReturnValue
(valueWithDynamicallyAccessedMembers);
341
AddReturnValue
(MultiValueLattice.Top);
345
AddReturnValue
(UnknownValue.Instance);
614
AddReturnValue
(MultiValueLattice.Top); ; // Initialize return value (so that it's not autofilled if there are no matching methods)
616
AddReturnValue
(methodValue);
621
AddReturnValue
(MultiValueLattice.Top);
627
AddReturnValue
(annotatedMethodReturnValue);
634
AddReturnValue
(MultiValueLattice.Top);
645
AddReturnValue
(MultiValueLattice.Top);
651
AddReturnValue
(annotatedMethodReturnValue);
659
AddReturnValue
(annotatedMethodReturnValue);
702
AddReturnValue
(MultiValueLattice.Top);
706
AddReturnValue
(nestedTypeValue);
711
AddReturnValue
(MultiValueLattice.Top);
720
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel));
727
AddReturnValue
(MultiValueLattice.Top);
738
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.All));
740
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel));
795
AddReturnValue
(MultiValueLattice.Top); // Initialize return value (so that it's not autofilled if there are no matching methods)
797
AddReturnValue
(methodValue);
809
AddReturnValue
(MultiValueLattice.Top);
814
AddReturnValue
(annotatedMethodReturnValue);
821
AddReturnValue
(MultiValueLattice.Top);
826
AddReturnValue
(annotatedMethodReturnValue);
1015
AddReturnValue
(singlevalue switch
1065
AddReturnValue
(MultiValueLattice.Top);
1069
AddReturnValue
(new SystemTypeValue(foundType));
1075
AddReturnValue
(MultiValueLattice.Top);
1081
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, valueWithDynamicallyAccessedMembers.DynamicallyAccessedMemberTypes));
1086
AddReturnValue
(MultiValueLattice.Top);
1131
AddReturnValue
(MultiValueLattice.Top);
1134
AddReturnValue
(new NullableSystemTypeValue(typeValue.RepresentedType, new SystemTypeValue(systemTypeValue.RepresentedType)));
1138
AddReturnValue
(new NullableValueWithDynamicallyAccessedMembers(typeValue.RepresentedType, damValue));
1144
AddReturnValue
(value);
1153
AddReturnValue
(value);
1172
AddReturnValue
(MultiValueLattice.Top);
1183
AddReturnValue
(value);
1253
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, propagatedMemberTypes));
1258
AddReturnValue
(new SystemTypeValue(baseType.Value));
1260
AddReturnValue
(annotatedMethodReturnValue);
1265
AddReturnValue
(MultiValueLattice.Top);
1271
AddReturnValue
(annotatedMethodReturnValue);
1369
AddReturnValue
(instanceValue);