LLVM  14.0.0git
Public Types | Public Member Functions | List of all members
llvm::StateWrapper< StateTy, BaseType, Ts > Struct Template Reference

Helper to tie a abstract state implementation to an abstract attribute. More...

#include "llvm/Transforms/IPO/Attributor.h"

Inheritance diagram for llvm::StateWrapper< StateTy, BaseType, Ts >:
Inheritance graph
[legend]
Collaboration diagram for llvm::StateWrapper< StateTy, BaseType, Ts >:
Collaboration graph
[legend]

Public Types

using StateType = StateTy
 Provide static access to the type of the state. More...
 

Public Member Functions

 StateWrapper (const IRPosition &IRP, Ts... Args)
 
StateTypegetState () override
 See AbstractAttribute::getState(...). More...
 
const StateTypegetState () const override
 See AbstractAttribute::getState(...). More...
 

Detailed Description

template<typename StateTy, typename BaseType, class... Ts>
struct llvm::StateWrapper< StateTy, BaseType, Ts >

Helper to tie a abstract state implementation to an abstract attribute.

Definition at line 2524 of file Attributor.h.

Member Typedef Documentation

◆ StateType

template<typename StateTy , typename BaseType , class... Ts>
using llvm::StateWrapper< StateTy, BaseType, Ts >::StateType = StateTy

Provide static access to the type of the state.

Definition at line 2526 of file Attributor.h.

Constructor & Destructor Documentation

◆ StateWrapper()

template<typename StateTy , typename BaseType , class... Ts>
llvm::StateWrapper< StateTy, BaseType, Ts >::StateWrapper ( const IRPosition IRP,
Ts...  Args 
)
inline

Definition at line 2528 of file Attributor.h.

Member Function Documentation

◆ getState() [1/2]

template<typename StateTy , typename BaseType , class... Ts>
const StateType& llvm::StateWrapper< StateTy, BaseType, Ts >::getState ( ) const
inlineoverride

See AbstractAttribute::getState(...).

Definition at line 2535 of file Attributor.h.

◆ getState() [2/2]

template<typename StateTy , typename BaseType , class... Ts>
StateType& llvm::StateWrapper< StateTy, BaseType, Ts >::getState ( )
inlineoverride

See AbstractAttribute::getState(...).

Definition at line 2532 of file Attributor.h.


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