LLVM 18.0.0git
|
An ilist node that can access its parent list. More...
#include "llvm/ADT/ilist_node.h"
Public Member Functions | |
Adjacent Node Accessors | |
Get the previous node, or | |
NodeTy * | getPrevNode () |
const NodeTy * | getPrevNode () const |
Get the previous node, or nullptr for the list head. | |
NodeTy * | getNextNode () |
Get the next node, or nullptr for the list tail. | |
const NodeTy * | getNextNode () const |
Get the next node, or nullptr for the list tail. | |
![]() | |
self_iterator | getIterator () |
const_self_iterator | getIterator () const |
reverse_self_iterator | getReverseIterator () |
const_reverse_self_iterator | getReverseIterator () const |
bool | isSentinel () const |
Check whether this is the sentinel node. | |
Protected Member Functions | |
ilist_node_with_parent ()=default | |
![]() | |
ilist_node_impl ()=default | |
Additional Inherited Members | |
![]() | |
using | self_iterator = ilist_iterator< OptionsT, false, false > |
using | const_self_iterator = ilist_iterator< OptionsT, false, true > |
using | reverse_self_iterator = ilist_iterator< OptionsT, true, false > |
using | const_reverse_self_iterator = ilist_iterator< OptionsT, true, true > |
An ilist node that can access its parent list.
Requires NodeTy
to have getParent() to find the parent node, and the ParentTy
to have getSublistAccess() to get a reference to the list.
Definition at line 257 of file ilist_node.h.
|
protecteddefault |
|
inline |
Get the next node, or nullptr
for the list tail.
Definition at line 289 of file ilist_node.h.
References llvm::List.
Referenced by AlignBlocks(), llvm::AArch64InstrInfo::analyzeBranchPredicate(), llvm::X86InstrInfo::analyzeBranchPredicate(), llvm::DwarfCompileUnit::attachRangesOrLowHighPC(), llvm::OpenMPIRBuilder::collapseLoops(), llvm::OpenMPIRBuilder::createCanonicalLoop(), llvm::OpenMPIRBuilder::createParallel(), llvm::RandomIRBuilder::createStackMemory(), llvm::DebugHandlerBase::endInstruction(), llvm::getMachineInstrType(), llvm::MustBeExecutedContextExplorer::getMustBeExecutedNextInstruction(), getNextMachineInstr(), llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode(), hasCallsBetween(), insertRelocationStores(), insertRematerializationStores(), llvm::SampleProfileProber::instrumentOneFunc(), llvm::ARMBlockPlacement::moveBasicBlock(), OptimizeGlobalAddressOfAllocation(), processSwitches(), removeEmptyCleanup(), simplifyRelocatesOffABase(), sinkSpillUsesAfterCoroBegin(), llvm::splitBB(), llvm::JumpThreadingPass::threadGuard(), and llvm::versionCallSite().
|
inline |
Get the next node, or nullptr
for the list tail.
Definition at line 298 of file ilist_node.h.
References llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode().
|
inline |
Definition at line 275 of file ilist_node.h.
References llvm::List.
Referenced by llvm::VPlan::execute(), llvm::ARMBlockPlacement::fixBackwardsWLS(), llvm::MustBeExecutedContextExplorer::getMustBeExecutedPrevInstruction(), getOrCreateDebugLoc(), llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getPrevNode(), llvm::BasicBlock::getTerminatingMustTailCall(), LowerCallResults(), llvm::ARMBlockPlacement::moveBasicBlock(), PrevCrossBBInst(), simplifySuspendPoint(), and updateKillStatus().
|
inline |
Get the previous node, or nullptr
for the list head.
Definition at line 284 of file ilist_node.h.
References llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getPrevNode().