2 instantiations of ArrayValue
ILLink.RoslynAnalyzer (2)
TrimAnalysis\ArrayValue.cs (2)
18
result = MultiValueLattice.Meet (result, new MultiValue (new
ArrayValue
(sizeValue)));
70
var newArray = new
ArrayValue
(Size);
24 references to ArrayValue
ILLink.RoslynAnalyzer (24)
RequiresDynamicCodeAnalyzer.cs (1)
96
if (typesValue is not
ArrayValue
array) {
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)
760
bool hasTypeArguments = (argumentValues[2].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt () != 0;
888
if ((argumentValue as
ArrayValue
)?.TryGetValueByIndex (0, out var underlyingMultiValue) == true) {
1041
1 => (argumentValues[0].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt (),
1042
2 => (argumentValues[1].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt (),
1043
4 => (argumentValues[2].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt (),
1044
5 => (argumentValues[3].AsSingleValue () as
ArrayValue
)?.Size.AsConstInt (),
1127
if (argumentValues[argsParam].AsSingleValue () is
ArrayValue
arrayValue &&
1295
if (typesValue is not
ArrayValue
array) {
TrimAnalysis\ArrayValue.cs (3)
46
public bool Equals (
ArrayValue
? otherArr)
70
var
newArray = new ArrayValue (Size);
77
System.Diagnostics.Debug.Assert (v is not
ArrayValue
);
TrimAnalysis\HandleCallAction.cs (1)
59
AddReturnValue (
ArrayValue
.Create (0));
TrimAnalysis\TrimAnalysisVisitor.cs (9)
109
var arrayValue =
ArrayValue
.Create (Visit (operation.DimensionSizes[0], state));
111
foreach (
var
array in arrayValue.AsEnumerable ().Cast<
ArrayValue
> ()) {
113
array.IndexValues.Add (i,
ArrayValue
.SanitizeArrayElementValue(elements[i]));
164
return
ArrayValue
.Create (0);
251
if (value is
ArrayValue
arr && arr.TryGetValueByIndex (index, out var elementValue))
263
if (arraySingleValue is
ArrayValue
arr) {
268
var sanitizedValue =
ArrayValue
.SanitizeArrayElementValue(valueToWrite);
309
if (argumentValue is
ArrayValue
arrayValue)