LLVM 20.0.0git
Classes | Public Types | Public Member Functions | List of all members
llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT > Class Template Reference

Provides API functions, like getIterator() and getReverseIterator() to GlobalIFunc, Function, GlobalVariable and GlobalAlias. More...

#include "llvm/SandboxIR/Constant.h"

Inheritance diagram for llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT >:
Inheritance graph
[legend]

Public Types

using iterator = mapped_iterator< decltype(static_cast< LLVMGlobalT * >(nullptr) ->getIterator()), LLVMGVToGV >
 
using reverse_iterator = mapped_iterator< decltype(static_cast< LLVMGlobalT * >(nullptr) ->getReverseIterator()), LLVMGVToGV >
 

Public Member Functions

 GlobalWithNodeAPI (Value::ClassID ID, LLVMParentT *C, Context &Ctx)
 
ModulegetParent () const
 
iterator getIterator () const
 
reverse_iterator getReverseIterator () const
 

Detailed Description

template<typename GlobalT, typename LLVMGlobalT, typename ParentT, typename LLVMParentT>
class llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT >

Provides API functions, like getIterator() and getReverseIterator() to GlobalIFunc, Function, GlobalVariable and GlobalAlias.

In LLVM IR these are provided by ilist_node.

Definition at line 767 of file Constant.h.

Member Typedef Documentation

◆ iterator

template<typename GlobalT , typename LLVMGlobalT , typename ParentT , typename LLVMParentT >
using llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT >::iterator = mapped_iterator< decltype(static_cast<LLVMGlobalT *>(nullptr)->getIterator()), LLVMGVToGV>

Definition at line 784 of file Constant.h.

◆ reverse_iterator

template<typename GlobalT , typename LLVMGlobalT , typename ParentT , typename LLVMParentT >
using llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT >::reverse_iterator = mapped_iterator< decltype(static_cast<LLVMGlobalT *>(nullptr)->getReverseIterator()), LLVMGVToGV>

Definition at line 786 of file Constant.h.

Constructor & Destructor Documentation

◆ GlobalWithNodeAPI()

template<typename GlobalT , typename LLVMGlobalT , typename ParentT , typename LLVMParentT >
llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT >::GlobalWithNodeAPI ( Value::ClassID  ID,
LLVMParentT *  C,
Context Ctx 
)
inline

Definition at line 776 of file Constant.h.

Member Function Documentation

◆ getIterator()

template<typename GlobalT , typename LLVMGlobalT , typename ParentT , typename LLVMParentT >
iterator llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT >::getIterator ( ) const
inline

Definition at line 789 of file Constant.h.

References llvm::map_iterator().

◆ getParent()

template<typename GlobalT , typename LLVMGlobalT , typename ParentT , typename LLVMParentT >
Module * llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT >::getParent ( ) const
inline

Definition at line 779 of file Constant.h.

◆ getReverseIterator()

template<typename GlobalT , typename LLVMGlobalT , typename ParentT , typename LLVMParentT >
reverse_iterator llvm::sandboxir::GlobalWithNodeAPI< GlobalT, LLVMGlobalT, ParentT, LLVMParentT >::getReverseIterator ( ) const
inline

Definition at line 794 of file Constant.h.

References llvm::map_iterator().


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