Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Array

571         // Handle array index arithmetic.
1403 && "Not looking at a struct or array?");
1505 // Handle a struct and array indices which add their offset to the pointer.
1556 // Make sure the index-ee is a pointer to array of i8.
1569 // into the array. If this occurs, we can't say anything meaningful about
1582 // initializer is the array that we'll use for optimization.
1596 // Must be a Constant Array
1597 const ConstantArray *Array = dyn_cast<ConstantArray>(GlobalInit);
1598 if (Array == 0 || !Array->getType()->getElementType()->isIntegerTy(8))
1601 // Get the number of elements in the array
1602 uint64_t NumElts = Array->getType()->getNumElements();
1607 // Traverse the constant array from 'Offset' which is the place the GEP refers
1608 // to in the array.
1611 const Constant *Elt = Array->getOperand(i);
1613 if (!CI) // This array
1620 // The array isn't null terminated, but maybe this is a memcpy, not a strcpy.
1696 // into the array. If this occurs, we can't say anything meaningful about
1706 // initializer is the array that we'll use for optimization.
1718 // Must be a Constant Array
1719 ConstantArray *Array = dyn_cast<ConstantArray>(GlobalInit);
1720 if (!Array || !Array->getType()->getElementType()->isIntegerTy(8))
1723 // Get the number of elements in the array
1724 uint64_t NumElts = Array->getType()->getNumElements();
1726 // Traverse the constant array from StartIdx (derived above) which is
1727 // the place the GEP refers to in the array.
1729 Constant *Elt = Array->getOperand(i);
1731 if (!CI) // This array isn't suitable, non-int initializer.
1737 return 0; // The array isn't null terminated, conservatively return 'unknown'.