Lines Matching defs:Slice
6485 // If V refers to an initialized global constant, set Slice either to
6491 ConstantDataArraySlice &Slice,
6534 Slice.Array = nullptr;
6535 Slice.Offset = 0;
6536 // Return an empty Slice for undersized constants to let callers
6540 Slice.Length = Length < Offset ? 0 : Length - Offset;
6575 Slice.Array = Array;
6576 Slice.Offset = Offset;
6577 Slice.Length = NumElts - Offset;
6587 ConstantDataArraySlice Slice;
6588 if (!getConstantDataArrayInfo(V, Slice, 8))
6591 if (Slice.Array == nullptr) {
6593 // Return a nul-terminated string even for an empty Slice. This is
6602 if (Slice.Length == 1) {
6612 Str = Slice.Array->getAsString();
6614 Str = Str.substr(Slice.Offset);
6673 ConstantDataArraySlice Slice;
6674 if (!getConstantDataArrayInfo(V, Slice, CharSize))
6677 if (Slice.Array == nullptr)
6686 for (unsigned E = Slice.Length; NullIndex < E; ++NullIndex) {
6687 if (Slice.Array->getElementAsInteger(Slice.Offset + NullIndex) == 0)