|
LLVM 23.0.0git
|
Go to the source code of this file.
Classes | |
| struct | ValuePackHeader |
| Header for each value in a value pack. More... | |
| struct | ValuePackIterator |
| Iterator for reading values from a value pack. More... | |
Enumerations | |
| enum | LLVMTypeID { HalfTyID = 0 , BFloatTyID , FloatTyID , DoubleTyID , X86_FP80TyID , FP128TyID , PPC_FP128TyID , VoidTyID , LabelTyID , MetadataTyID , X86_AMXTyID , TokenTyID , IntegerTyID , ByteTyID , FunctionTyID , PointerTyID , StructTyID , ArrayTyID , FixedVectorTyID , ScalableVectorTyID , TypedPointerTyID , TargetExtTyID } |
| LLVM Type IDs for interpreting value pack data. More... | |
Functions | |
| static void | initValuePackIterator (ValuePackIterator *iter, const void *pack_ptr, uint32_t num_elements) |
| Initialize a value pack iterator. | |
| static ValuePackHeader | getValuePackHeader (const ValuePackIterator *iter) |
| Get the header for the current value. | |
| static const void * | getValuePackData (const ValuePackIterator *iter) |
| Get a pointer to the current value data. | |
| static void | nextValuePack (ValuePackIterator *iter) |
| Move to the next value in the pack. | |
| static uint64_t | getValuePackOffset (const ValuePackIterator *iter) |
| Get the current offset in bytes from the start of the pack. | |
| static const void * | getValuePackEntry (const void *pack_ptr, uint32_t num_elements, uint32_t index, ValuePackHeader *header) |
| Extract a specific value from a value pack by index. | |
| static const char * | getLLVMTypeIDName (uint32_t type_id) |
| Get the string name of an LLVM Type ID. | |
| enum LLVMTypeID |
LLVM Type IDs for interpreting value pack data.
These correspond to llvm::Type::TypeID enum values.
Definition at line 127 of file InstrumentorRuntimeHelper.h.
Get the string name of an LLVM Type ID.
Definition at line 154 of file InstrumentorRuntimeHelper.h.
References ArrayTyID, BFloatTyID, ByteTyID, DoubleTyID, FixedVectorTyID, FloatTyID, FP128TyID, FunctionTyID, HalfTyID, IntegerTyID, LabelTyID, MetadataTyID, PointerTyID, PPC_FP128TyID, ScalableVectorTyID, StructTyID, TargetExtTyID, TokenTyID, TypedPointerTyID, VoidTyID, X86_AMXTyID, and X86_FP80TyID.
|
inlinestatic |
Get a pointer to the current value data.
Definition at line 66 of file InstrumentorRuntimeHelper.h.
References ValuePackIterator::current, getValuePackHeader(), and ValuePackHeader::size.
Referenced by getValuePackEntry().
|
inlinestatic |
Extract a specific value from a value pack by index.
| pack_ptr | Pointer to the start of the value pack |
| num_elements | Number of elements in the pack |
| index | Zero-based index of the value to extract |
| header | Output parameter for the value header (can be NULL) |
Definition at line 102 of file InstrumentorRuntimeHelper.h.
References ValuePackIterator::count, ValuePackIterator::current, getValuePackData(), getValuePackHeader(), ValuePackIterator::index, initValuePackIterator(), and nextValuePack().
|
inlinestatic |
Get the header for the current value.
Definition at line 60 of file InstrumentorRuntimeHelper.h.
References ValuePackIterator::current.
Referenced by getValuePackData(), getValuePackEntry(), and nextValuePack().
|
inlinestatic |
Get the current offset in bytes from the start of the pack.
Definition at line 91 of file InstrumentorRuntimeHelper.h.
References ValuePackIterator::offset.
|
inlinestatic |
Initialize a value pack iterator.
| iter | The iterator to initialize |
| pack_ptr | Pointer to the start of the value pack |
| num_elements | Number of elements in the pack |
Definition at line 49 of file InstrumentorRuntimeHelper.h.
References ValuePackIterator::count, ValuePackIterator::current, ValuePackIterator::index, and ValuePackIterator::offset.
Referenced by getValuePackEntry().
|
inlinestatic |
Move to the next value in the pack.
Definition at line 77 of file InstrumentorRuntimeHelper.h.
References ValuePackIterator::count, ValuePackIterator::current, getValuePackHeader(), ValuePackIterator::index, ValuePackIterator::offset, and ValuePackHeader::size.
Referenced by getValuePackEntry().