LLVM  14.0.0git
Public Member Functions | List of all members
llvm::IRAttribute< AK, BaseType > Struct Template Reference

Helper class that provides common functionality to manifest IR attributes. More...

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

Inheritance diagram for llvm::IRAttribute< AK, BaseType >:
Inheritance graph
[legend]
Collaboration diagram for llvm::IRAttribute< AK, BaseType >:
Collaboration graph
[legend]

Public Member Functions

 IRAttribute (const IRPosition &IRP)
 
virtual void initialize (Attributor &A) override
 See AbstractAttribute::initialize(...). More...
 
ChangeStatus manifest (Attributor &A) override
 See AbstractAttribute::manifest(...). More...
 
Attribute::AttrKind getAttrKind () const
 Return the kind that identifies the abstract attribute implementation. More...
 
virtual void getDeducedAttributes (LLVMContext &Ctx, SmallVectorImpl< Attribute > &Attrs) const
 Return the deduced attributes in Attrs. More...
 

Detailed Description

template<Attribute::AttrKind AK, typename BaseType>
struct llvm::IRAttribute< AK, BaseType >

Helper class that provides common functionality to manifest IR attributes.

Definition at line 2674 of file Attributor.h.

Constructor & Destructor Documentation

◆ IRAttribute()

template<Attribute::AttrKind AK, typename BaseType >
llvm::IRAttribute< AK, BaseType >::IRAttribute ( const IRPosition IRP)
inline

Definition at line 2675 of file Attributor.h.

Member Function Documentation

◆ getAttrKind()

template<Attribute::AttrKind AK, typename BaseType >
Attribute::AttrKind llvm::IRAttribute< AK, BaseType >::getAttrKind ( ) const
inline

Return the kind that identifies the abstract attribute implementation.

Definition at line 2711 of file Attributor.h.

Referenced by llvm::IRAttribute< Attribute::Returned, AbstractAttribute >::getDeducedAttributes(), and llvm::IRAttribute< Attribute::Returned, AbstractAttribute >::initialize().

◆ getDeducedAttributes()

template<Attribute::AttrKind AK, typename BaseType >
virtual void llvm::IRAttribute< AK, BaseType >::getDeducedAttributes ( LLVMContext Ctx,
SmallVectorImpl< Attribute > &  Attrs 
) const
inlinevirtual

Return the deduced attributes in Attrs.

Definition at line 2714 of file Attributor.h.

Referenced by llvm::IRAttribute< Attribute::Returned, AbstractAttribute >::manifest().

◆ initialize()

template<Attribute::AttrKind AK, typename BaseType >
virtual void llvm::IRAttribute< AK, BaseType >::initialize ( Attributor A)
inlineoverridevirtual

See AbstractAttribute::initialize(...).

Definition at line 2678 of file Attributor.h.

◆ manifest()

template<Attribute::AttrKind AK, typename BaseType >
ChangeStatus llvm::IRAttribute< AK, BaseType >::manifest ( Attributor A)
inlineoverride

See AbstractAttribute::manifest(...).

Definition at line 2701 of file Attributor.h.


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