Lines Matching defs:Slice
6243 // If V refers to an initialized global constant, set Slice either to
6249 ConstantDataArraySlice &Slice,
6292 Slice.Array = nullptr;
6293 Slice.Offset = 0;
6294 // Return an empty Slice for undersized constants to let callers
6298 Slice.Length = Length < Offset ? 0 : Length - Offset;
6333 Slice.Array = Array;
6334 Slice.Offset = Offset;
6335 Slice.Length = NumElts - Offset;
6345 ConstantDataArraySlice Slice;
6346 if (!getConstantDataArrayInfo(V, Slice, 8))
6349 if (Slice.Array == nullptr) {
6351 // Return a nul-terminated string even for an empty Slice. This is
6360 if (Slice.Length == 1) {
6370 Str = Slice.Array->getAsString();
6372 Str = Str.substr(Slice.Offset);
6431 ConstantDataArraySlice Slice;
6432 if (!getConstantDataArrayInfo(V, Slice, CharSize))
6435 if (Slice.Array == nullptr)
6444 for (unsigned E = Slice.Length; NullIndex < E; ++NullIndex) {
6445 if (Slice.Array->getElementAsInteger(Slice.Offset + NullIndex) == 0)