MLIR  15.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mlir::FlatSymbolRefAttr Class Reference

A symbol reference with a reference path containing a single element. More...

#include "mlir/IR/BuiltinAttributes.h"

+ Inheritance diagram for mlir::FlatSymbolRefAttr:
+ Collaboration diagram for mlir::FlatSymbolRefAttr:

Public Types

using ValueType = StringRef
 

Public Member Functions

StringAttr getAttr () const
 Returns the name of the held symbol reference as a StringAttr. More...
 
StringRef getValue () const
 Returns the name of the held symbol reference. More...
 

Static Public Member Functions

static FlatSymbolRefAttr get (StringAttr value)
 Construct a symbol reference for the given value name. More...
 
static FlatSymbolRefAttr get (MLIRContext *ctx, StringRef value)
 
static FlatSymbolRefAttr get (Operation *symbol)
 Convenience getter for building a SymbolRefAttr based on an operation that implements the SymbolTrait. More...
 
static bool classof (Attribute attr)
 Methods for support type inquiry through isa, cast, and dyn_cast. 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.

Definition at line 825 of file BuiltinAttributes.h.

Member Typedef Documentation

◆ ValueType

Definition at line 828 of file BuiltinAttributes.h.

Member Function Documentation

◆ classof()

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

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

Definition at line 851 of file BuiltinAttributes.h.

References mlir::Attribute::dyn_cast().

◆ get() [1/3]

static FlatSymbolRefAttr mlir::FlatSymbolRefAttr::get ( StringAttr  value)
inlinestatic

Construct a symbol reference for the given value name.

Definition at line 831 of file BuiltinAttributes.h.

References value.

Referenced by collectValidReferencesFor(), mlirFlatSymbolRefAttrGet(), replaceAllSymbolUsesImpl(), and wrapInExecuteRegion().

◆ get() [2/3]

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

Definition at line 834 of file BuiltinAttributes.h.

References value.

◆ get() [3/3]

static FlatSymbolRefAttr mlir::FlatSymbolRefAttr::get ( Operation symbol)
inlinestatic

Convenience getter for building a SymbolRefAttr based on an operation that implements the SymbolTrait.

Definition at line 840 of file BuiltinAttributes.h.

◆ getAttr()

StringAttr mlir::FlatSymbolRefAttr::getAttr ( ) const
inline

Returns the name of the held symbol reference as a StringAttr.

Definition at line 845 of file BuiltinAttributes.h.

Referenced by getLibraryCallSymbolRef(), getLoadStoreElementType(), and verifySymbolAttrUse().

◆ getValue()

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

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