llvm::sandboxir::GlobalWithNodeAPI

Mixin that adds module list iterators to SandboxIR globals.

Synopsis

Declared in <llvm/SandboxIR/Constant.h>

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

Description

Provides API functions like getIterator() and getReverseIterator() to GlobalIFunc, Function, GlobalVariable and GlobalAlias. In LLVM IR these are provided by ilist_node.

Base Classes

NameDescription
ParentT

Type Aliases

NameDescription
iterator Forward iterator over globals of this kind in the parent module.
reverse_iterator Reverse iterator over globals of this kind in the parent module.

Member Functions

NameDescription
GlobalWithNodeAPI [constructor]Construct a GlobalWithNodeAPI wrapper around C.
getIterator Return an iterator to this global in its parent module list.
getParent Return the parent Module that contains this global.
getReverseIterator Return a reverse iterator to this global in its parent module list.

Derived Classes

NameDescription
Function SandboxIR wrapper around an LLVM Function.
GlobalAlias A SandboxIR wrapper for an LLVM global alias.
GlobalIFunc A SandboxIR wrapper for an LLVM indirect function (ifunc).
GlobalVariable A SandboxIR wrapper for an LLVM global variable.

Return Value

Mixin that adds module list iterators to SandboxIR globals.