|
LLVM
10.0.0
|
StackOffset is a wrapper around scalable and non-scalable offsets and is used in several functions such as 'isAArch64FrameOffsetLegal' and 'emitFrameOffset()'. More...
#include "Target/AArch64/AArch64StackOffset.h"
Public Types | |
| using | Part = std::pair< int64_t, MVT > |
Public Member Functions | |
| StackOffset () | |
| StackOffset (int64_t Offset, MVT::SimpleValueType T) | |
| StackOffset (const StackOffset &Other) | |
| StackOffset & | operator= (const StackOffset &)=default |
| StackOffset & | operator+= (const StackOffset::Part &Other) |
| StackOffset & | operator+= (const StackOffset &Other) |
| StackOffset | operator+ (const StackOffset &Other) const |
| StackOffset & | operator-= (const StackOffset &Other) |
| StackOffset | operator- (const StackOffset &Other) const |
| StackOffset | operator- () const |
| int64_t | getScalableBytes () const |
| Returns the scalable part of the offset in bytes. More... | |
| int64_t | getBytes () const |
| Returns the non-scalable part of the offset in bytes. More... | |
| void | getForFrameOffset (int64_t &NumBytes, int64_t &NumPredicateVectors, int64_t &NumDataVectors) const |
| Returns the offset in parts to which this frame offset can be decomposed for the purpose of describing a frame offset. More... | |
| operator bool () const | |
| Returns whether the offset is known zero. More... | |
| bool | isValid () const |
StackOffset is a wrapper around scalable and non-scalable offsets and is used in several functions such as 'isAArch64FrameOffsetLegal' and 'emitFrameOffset()'.
StackOffsets are described by MVTs, e.g. StackOffset(1, MVT::nxv16i8) would describe an offset as being the size of a single SVE vector.
The class also implements simple arithmetic (addition/subtraction) on these offsets, e.g. StackOffset(1, MVT::nxv16i8) + StackOffset(1, MVT::i64) describes an offset that spans the combined storage required for an SVE vector and a 64bit GPR.
Definition at line 37 of file AArch64StackOffset.h.
| using llvm::StackOffset::Part = std::pair<int64_t, MVT> |
Definition at line 44 of file AArch64StackOffset.h.
|
inline |
Definition at line 46 of file AArch64StackOffset.h.
|
inline |
Definition at line 48 of file AArch64StackOffset.h.
References assert().
|
inline |
Definition at line 53 of file AArch64StackOffset.h.
References operator=().
|
inline |
Returns the non-scalable part of the offset in bytes.
Definition at line 102 of file AArch64StackOffset.h.
Referenced by llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::AArch64FrameLowering::getSEHFrameIndexOffset(), llvm::isAArch64FrameOffsetLegal(), and llvm::AArch64FrameLowering::resolveFrameOffsetReference().
|
inline |
Returns the offset in parts to which this frame offset can be decomposed for the purpose of describing a frame offset.
For non-scalable offsets this is simply its byte size.
Definition at line 107 of file AArch64StackOffset.h.
References assert(), and isValid().
Referenced by llvm::emitFrameOffset().
|
inline |
Returns the scalable part of the offset in bytes.
Definition at line 99 of file AArch64StackOffset.h.
Referenced by llvm::isAArch64FrameOffsetLegal(), and llvm::AArch64FrameLowering::resolveFrameOffsetReference().
|
inline |
Definition at line 128 of file AArch64StackOffset.h.
Referenced by getForFrameOffset().
|
inlineexplicit |
Returns whether the offset is known zero.
Definition at line 126 of file AArch64StackOffset.h.
|
inline |
Definition at line 73 of file AArch64StackOffset.h.
References llvm::Other.
|
inline |
Definition at line 58 of file AArch64StackOffset.h.
References llvm::TypeSize::getFixedSize(), llvm::TypeSize::getKnownMinSize(), llvm::TypeSize::isScalable(), and Size.
|
inline |
Definition at line 67 of file AArch64StackOffset.h.
|
inline |
Definition at line 85 of file AArch64StackOffset.h.
References llvm::Other.
|
inline |
Definition at line 91 of file AArch64StackOffset.h.
References llvm::Other.
|
inline |
Definition at line 79 of file AArch64StackOffset.h.
|
default |
Referenced by StackOffset().
1.8.13