My Project
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mlir::FlatSymbolRefAttr Class Reference

#include <Attributes.h>

Inheritance diagram for mlir::FlatSymbolRefAttr:
Inheritance graph
[legend]
Collaboration diagram for mlir::FlatSymbolRefAttr:
Collaboration graph
[legend]

Public Types

using ValueType = StringRef
 
- Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
using Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
 Utility declarations for the concrete attribute class. More...
 
using ImplType = StorageT
 

Public Member Functions

StringRef getValue () const
 Returns the name of the held symbol reference. More...
 
- Public Member Functions inherited from mlir::SymbolRefAttr
StringRef getRootReference () const
 
StringRef getLeafReference () const
 
ArrayRef< FlatSymbolRefAttrgetNestedReferences () const
 

Static Public Member Functions

static FlatSymbolRefAttr get (StringRef value, MLIRContext *ctx)
 Construct a symbol reference for the given value name. More...
 
static bool classof (Attribute attr)
 Methods for support type inquiry through isa, cast, and dyn_cast. More...
 
- Static Public Member Functions inherited from mlir::SymbolRefAttr
static FlatSymbolRefAttr get (StringRef value, MLIRContext *ctx)
 Construct a symbol reference for the given value name. More...
 
static SymbolRefAttr get (StringRef value, ArrayRef< FlatSymbolRefAttr > references, MLIRContext *ctx)
 
static bool kindof (unsigned kind)
 Methods for support type inquiry through isa, cast, and dyn_cast. More...
 
- Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
static ClassIDgetClassID ()
 Return a unique identifier for the concrete type. More...
 
template<typename T >
static bool classof (T val)
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
ImplTypegetImpl () const
 Utility for easy access to the storage instance. More...
 
- Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
template<typename... Args>
static ConcreteT get (MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static ConcreteT getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static LogicalResult verifyConstructionInvariants (Args... args)
 Default implementation that just returns success. More...
 

Detailed Description

A symbol reference with a reference path containing a single element. This is used to refer to an operation within the current symbol table.

Member Typedef Documentation

◆ ValueType

Member Function Documentation

◆ classof()

static bool mlir::FlatSymbolRefAttr::classof ( Attribute  attr)
inlinestatic

Methods for support type inquiry through isa, cast, and dyn_cast.

◆ get()

static FlatSymbolRefAttr mlir::FlatSymbolRefAttr::get ( StringRef  value,
MLIRContext ctx 
)
inlinestatic

Construct a symbol reference for the given value name.

◆ getValue()

StringRef mlir::FlatSymbolRefAttr::getValue ( ) const
inline

Returns the name of the held symbol reference.


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