LLVM 22.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. | |
Public Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NodeTy, Options... >::type > | |
self_iterator | getIterator () |
reverse_self_iterator | getReverseIterator () |
std::enable_if_t< T::is_sentinel_tracking_explicit, bool > | isSentinel () const |
Check whether this is the sentinel node. | |
Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< ilist_detail::compute_node_options< NodeTy, Options... >::type >, ilist_detail::compute_node_options< NodeTy, Options... >::type::parent_ty > | |
const ilist_detail::compute_node_options< NodeTy, Options... >::type::parent_ty * | getParent () const |
void | setParent (ilist_detail::compute_node_options< NodeTy, Options... >::type::parent_ty *Parent) |
Protected Member Functions | |
ilist_node_with_parent ()=default | |
Protected Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NodeTy, Options... >::type > | |
ilist_node_impl ()=default |
Additional Inherited Members | |
Protected Types inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NodeTy, Options... >::type > | |
using | self_iterator |
using | const_self_iterator |
using | reverse_self_iterator |
using | const_reverse_self_iterator |
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 323 of file ilist_node.h.
|
protecteddefault |
Referenced by getNextNode(), and getPrevNode().
|
inline |
Get the next node, or nullptr
for the list tail.
Definition at line 355 of file ilist_node.h.
References llvm::List.
Referenced by llvm::CodeExtractor::extractCodeRegion(), findStoresToUninstrumentedArgAllocas(), llvm::getMachineInstrType(), llvm::MustBeExecutedContextExplorer::getMustBeExecutedNextInstruction(), getNextMachineInstr(), getNextNode(), getNextNode(), llvm::sandboxir::Instruction::getTopmostLLVMInstruction(), insertRelocationStores(), llvm::SampleProfileProber::instrumentOneFunc(), isPotentiallyReachable(), llvm::ARMBlockPlacement::moveBasicBlock(), OptimizeGlobalAddressOfAllocation(), removeEmptyCleanup(), RemovePreallocated(), rewriteDebugUsers(), simplifyRelocatesOffABase(), llvm::coro::sinkSpillUsesAfterCoroBegin(), llvm::sortBlocks(), llvm::OutlinableRegion::splitCandidate(), llvm::JumpThreadingPass::threadGuard(), updateScopeLine(), validateFunCallMachineDef(), versionCallSiteWithCond(), llvm::InstCombinerImpl::visitCallInst(), and llvm::InstCombinerImpl::visitFenceInst().
|
inline |
Get the next node, or nullptr
for the list tail.
Definition at line 364 of file ilist_node.h.
References getNextNode(), and ilist_node_with_parent().
|
inline |
Definition at line 341 of file ilist_node.h.
References llvm::List.
Referenced by findDominatingValue(), llvm::ARMBlockPlacement::fixBackwardsWLS(), llvm::CtxProfAnalysis::getCallsiteInstrumentation(), llvm::MustBeExecutedContextExplorer::getMustBeExecutedPrevInstruction(), getOrCreateDebugLoc(), getPrevNode(), llvm::CtxProfAnalysis::getSelectInstrumentation(), InsertStackProtectors(), LowerCallResults(), llvm::ARMBlockPlacement::moveBasicBlock(), llvm::LockstepReverseIterator< EarlyFailure >::operator--(), replaceIfBranchTargets(), llvm::LockstepReverseIterator< EarlyFailure >::reset(), simplifySuspendPoint(), updateKillStatus(), and llvm::InstCombinerImpl::visitFenceInst().
|
inline |
Get the previous node, or nullptr
for the list head.
Definition at line 350 of file ilist_node.h.
References getPrevNode(), and ilist_node_with_parent().