| MLIR
    22.0.0git
    | 
A symbol reference with a reference path containing a single element. More...
#include "mlir/IR/BuiltinAttributes.h"
 Inheritance diagram for mlir::FlatSymbolRefAttr:
 Inheritance 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... | |
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 871 of file BuiltinAttributes.h.
| using mlir::FlatSymbolRefAttr::ValueType = StringRef | 
Definition at line 874 of file BuiltinAttributes.h.
| 
 | inlinestatic | 
Methods for support type inquiry through isa, cast, and dyn_cast.
Definition at line 897 of file BuiltinAttributes.h.
| 
 | inlinestatic | 
Definition at line 880 of file BuiltinAttributes.h.
References mlir::get().
| 
 | inlinestatic | 
Convenience getter for building a SymbolRefAttr based on an operation that implements the SymbolTrait.
Definition at line 886 of file BuiltinAttributes.h.
References mlir::get().
| 
 | inlinestatic | 
Construct a symbol reference for the given value name.
Definition at line 877 of file BuiltinAttributes.h.
References mlir::get().
Referenced by addComdat(), collectValidReferencesFor(), convertCGProfileModuleFlagValue(), convertOperationImpl(), mlirFlatSymbolRefAttrGet(), and replaceAllSymbolUsesImpl().
| 
 | inline | 
Returns the name of the held symbol reference as a StringAttr.
Definition at line 891 of file BuiltinAttributes.h.
Referenced by mlir::SymbolCacheBase::getDefinition(), getLibraryCallSymbolRef(), mlir::LockedSymbolTableCollection::lookupSymbolIn(), and verifySymbolAttrUse().
| 
 | inline | 
Returns the name of the held symbol reference.
Definition at line 894 of file BuiltinAttributes.h.
Referenced by mlir::shard::Sharding::getGrid(), getGridAndVerify(), getLibraryCallSymbolRef(), and verifySymbolAttrUse().