3 instantiations of ArrayValue
illink (3)
Linker.Dataflow\ArrayValue.cs (3)
21
result = MultiValueLattice.Meet (result, new MultiValue (new
ArrayValue
(sizeValue, elementType)));
29
return new
ArrayValue
(new ConstIntValue (size), elementType);
84
var newValue = new
ArrayValue
(Size.DeepCopy (), ElementType);
22 references to ArrayValue
illink (22)
Linker.Dataflow\ArrayValue.cs (4)
27
public static
ArrayValue
Create (int size, TypeReference elementType)
61
public bool Equals (
ArrayValue
? otherArr)
84
var
newValue = new ArrayValue (Size.DeepCopy (), ElementType);
91
System.Diagnostics.Debug.Assert (v is not
ArrayValue
);
Linker.Dataflow\FlowAnnotations.cs (1)
757
"EmptyTypes" when field.DeclaringType.IsTypeOf (WellKnownType.System_Type) =>
ArrayValue
.Create (0, field.DeclaringType),
Linker.Dataflow\HandleCallAction.cs (1)
76
AddReturnValue (
ArrayValue
.Create (0, ((GenericInstanceMethod) calledMethod.Method).GenericArguments[0]));
Linker.Dataflow\MethodBodyScanner.cs (6)
503
currentStack.Push (new StackSlot (
ArrayValue
.Create (count.Value, (TypeReference) operation.Operand)));
1110
if (v is
ArrayValue
arr) {
1128
private static void MarkArrayValuesAsUnknown (
ArrayValue
arrValue, int curBasicBlock)
1149
if (array is
ArrayValue
arrValue) {
1154
StoreMethodLocalValue (arrValue.IndexValues,
ArrayValue
.SanitizeArrayElementValue (valueToStore.Value), indexToStoreAtInt.Value, curBasicBlock, MaxTrackedArrayValues);
1168
if (arrayToLoadFrom.Value.AsSingleValue () is not
ArrayValue
arr) {
src\tools\illink\src\ILLink.Shared\TrimAnalysis\ArrayValue.cs (2)
38
if (v is
ArrayValue
)
45
return new(input.AsEnumerable ().Select (v => v is
ArrayValue
? UnknownValue.Instance : v));
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (8)
751
bool hasTypeArguments = (argumentValues[2].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt () != 0;
879
if ((argumentValue as
ArrayValue
)?.TryGetValueByIndex (0, out var underlyingMultiValue) == true) {
1032
1 => (argumentValues[0].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt (),
1033
2 => (argumentValues[1].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt (),
1034
4 => (argumentValues[2].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt (),
1035
5 => (argumentValues[3].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt (),
1118
if (argumentValues[argsParam].AsSingleValue () is
ArrayValue
arrayValue &&
1286
if (typesValue is not
ArrayValue
array) {