LLVM: llvm::OptimizedStructLayoutField Struct Reference (original) (raw)
A field in a structure. More...
#include "[llvm/Support/OptimizedStructLayout.h](OptimizedStructLayout%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| OptimizedStructLayoutField (const void *Id, uint64_t Size, Align Alignment, uint64_t FixedOffset=FlexibleOffset) | |
| bool | hasFixedOffset () const |
| Return true if this field has been assigned a fixed offset. | |
| uint64_t | getEndOffset () const |
| Given that this field has a fixed offset, return the offset of the first byte following it. |
| Public Attributes | |
|---|---|
| uint64_t | Offset |
| The offset of this field in the final layout. | |
| uint64_t | Size |
| The required size of this field in bytes. | |
| const void * | Id |
| A opaque value which uniquely identifies this field. | |
| void * | Scratch |
| Private scratch space for the algorithm. | |
| Align | Alignment |
| The required alignment of this field. |
| Static Public Attributes | |
|---|---|
| static constexpr uint64_t | FlexibleOffset = ~(uint64_t)0 |
| A special value for Offset indicating that the field can be moved anywhere. |
A field in a structure.
Definition at line 46 of file OptimizedStructLayout.h.
| llvm::OptimizedStructLayoutField::OptimizedStructLayoutField ( const void * Id, uint64_t Size, Align Alignment, uint64_t FixedOffset = FlexibleOffset ) | inline |
|---|
◆ getEndOffset()
| uint64_t llvm::OptimizedStructLayoutField::getEndOffset ( ) const | inline |
|---|
◆ hasFixedOffset()
| bool llvm::OptimizedStructLayoutField::hasFixedOffset ( ) const | inline |
|---|
◆ Alignment
Align llvm::OptimizedStructLayoutField::Alignment
◆ FlexibleOffset
◆ Id
const void* llvm::OptimizedStructLayoutField::Id
◆ Offset
uint64_t llvm::OptimizedStructLayoutField::Offset
◆ Scratch
void* llvm::OptimizedStructLayoutField::Scratch
◆ Size
uint64_t llvm::OptimizedStructLayoutField::Size
The documentation for this struct was generated from the following file:
- include/llvm/Support/OptimizedStructLayout.h