LLVM 22.0.0git
Protected Member Functions | List of all members
llvm::ilist_node_with_parent< NodeTy, ParentTy, Options > Class Template Reference

An ilist node that can access its parent list. More...

#include "llvm/ADT/ilist_node.h"

Inheritance diagram for llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >:
[legend]

Public Member Functions

Adjacent Node Accessors

Get the previous node, or nullptr for the list head.

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.
 
- Public Member Functions inherited from llvm::ilist_node_impl< OptionsT >
self_iterator getIterator ()
 
const_self_iterator getIterator () const
 
reverse_self_iterator getReverseIterator ()
 
const_reverse_self_iterator getReverseIterator () const
 
template<typename T = OptionsT>
std::enable_if_t< T::is_sentinel_tracking_explicit, boolisSentinel () const
 Check whether this is the sentinel node.
 
- Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< OptionsT >, OptionsT::parent_ty >
const OptionsT::parent_ty * getParent () const
 
OptionsT::parent_ty * getParent ()
 
void setParent (OptionsT::parent_ty *Parent)
 

Protected Member Functions

 ilist_node_with_parent ()=default
 
- Protected Member Functions inherited from llvm::ilist_node_impl< OptionsT >
 ilist_node_impl ()=default
 

Additional Inherited Members

- Protected Types inherited from llvm::ilist_node_impl< OptionsT >
using self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, false >::type
 
using const_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, true >::type
 
using reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, false >::type
 
using const_reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, true >::type
 

Detailed Description

template<typename NodeTy, typename ParentTy, class... Options>
class llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >

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 327 of file ilist_node.h.

Constructor & Destructor Documentation

◆ ilist_node_with_parent()

template<typename NodeTy , typename ParentTy , class... Options>
llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::ilist_node_with_parent ( )
protecteddefault

Member Function Documentation

◆ getNextNode() [1/2]

template<typename NodeTy , typename ParentTy , class... Options>
NodeTy * llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode ( )
inline

Get the next node, or nullptr for the list tail.

Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/llvm/include/llvm/ADT/ilist_node.h.

Definition at line 359 of file ilist_node.h.

References llvm::List.

Referenced by AlignBlocks(), llvm::AArch64InstrInfo::analyzeBranchPredicate(), llvm::X86InstrInfo::analyzeBranchPredicate(), llvm::OpenMPIRBuilder::applySimd(), llvm::DwarfCompileUnit::attachRangesOrLowHighPC(), llvm::OpenMPIRBuilder::collapseLoops(), llvm::OpenMPIRBuilder::createCanonicalLoop(), llvm::OpenMPIRBuilder::createParallel(), llvm::DebugHandlerBase::endInstruction(), llvm::CodeExtractor::extractCodeRegion(), findStoresToUninstrumentedArgAllocas(), llvm::getMachineInstrType(), llvm::MustBeExecutedContextExplorer::getMustBeExecutedNextInstruction(), getNextMachineInstr(), llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode(), getNextNode(), llvm::sandboxir::Instruction::getTopmostLLVMInstruction(), insertRelocationStores(), llvm::SampleProfileProber::instrumentOneFunc(), isPotentiallyReachable(), llvm::ARMBlockPlacement::moveBasicBlock(), llvm::LockstepReverseIterator< EarlyFailure >::operator++(), OptimizeGlobalAddressOfAllocation(), removeEmptyCleanup(), RemovePreallocated(), simplifyRelocatesOffABase(), llvm::coro::sinkSpillUsesAfterCoroBegin(), llvm::sortBlocks(), llvm::splitBB(), llvm::OutlinableRegion::splitCandidate(), llvm::JumpThreadingPass::threadGuard(), updateScopeLine(), validateFunCallMachineDef(), versionCallSiteWithCond(), llvm::InstCombinerImpl::visitCallInst(), and llvm::InstCombinerImpl::visitFenceInst().

◆ getNextNode() [2/2]

template<typename NodeTy , typename ParentTy , class... Options>
const NodeTy * llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode ( ) const
inline

Get the next node, or nullptr for the list tail.

Definition at line 368 of file ilist_node.h.

References llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode().

◆ getPrevNode() [1/2]

template<typename NodeTy , typename ParentTy , class... Options>
NodeTy * llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getPrevNode ( )
inline

◆ getPrevNode() [2/2]

template<typename NodeTy , typename ParentTy , class... Options>
const NodeTy * llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getPrevNode ( ) const
inline

Get the previous node, or nullptr for the list head.

Definition at line 354 of file ilist_node.h.

References llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getPrevNode().


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