LLVM  14.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::ConstantDataArraySlice Struct Reference

Represents offset+length into a ConstantDataArray. More...

#include "llvm/Analysis/ValueTracking.h"

Collaboration diagram for llvm::ConstantDataArraySlice:
Collaboration graph

Public Member Functions

void move (uint64_t Delta)
 Moves the Offset and adjusts Length accordingly. More...
uint64_t operator[] (unsigned I) const
 Convenience accessor for elements in the slice. More...

Public Attributes

const ConstantDataArrayArray
 ConstantDataArray pointer. More...
uint64_t Offset
 Slice starts at this Offset. More...
uint64_t Length
 Length of the slice. More...

Detailed Description

Represents offset+length into a ConstantDataArray.

Definition at line 303 of file ValueTracking.h.

Member Function Documentation

◆ move()

void llvm::ConstantDataArraySlice::move ( uint64_t  Delta)

Moves the Offset and adjusts Length accordingly.

Definition at line 315 of file ValueTracking.h.

References assert(), Length, and Offset.

Referenced by getMemcpyLoadsAndStores().

◆ operator[]()

uint64_t llvm::ConstantDataArraySlice::operator[] ( unsigned  I) const

Convenience accessor for elements in the slice.

Definition at line 322 of file ValueTracking.h.

References Array, llvm::ConstantDataSequential::getElementAsInteger(), I, and Offset.

Member Data Documentation

◆ Array

const ConstantDataArray* llvm::ConstantDataArraySlice::Array

ConstantDataArray pointer.

nullptr indicates a zeroinitializer (a valid initializer, it just doesn't fit the ConstantDataArray interface).

Definition at line 306 of file ValueTracking.h.

Referenced by llvm::getConstantDataArrayInfo(), llvm::getConstantStringInfo(), getMemcpyLoadsAndStores(), getMemsetStringVal(), GetStringLengthH(), and operator[]().

◆ Length

uint64_t llvm::ConstantDataArraySlice::Length

◆ Offset

uint64_t llvm::ConstantDataArraySlice::Offset

The documentation for this struct was generated from the following file: