MLIR
20.0.0git
|
This class provides a convenient API for interacting with source names. More...
#include "mlir/Tools/PDLL/AST/Nodes.h"
Public Member Functions | |
StringRef | getName () const |
Return the raw string name. More... | |
SMRange | getLoc () const |
Get the location of this name. More... | |
Static Public Member Functions | |
static const Name & | create (Context &ctx, StringRef name, SMRange location) |
This class provides a convenient API for interacting with source names.
It contains a string name as well as the source location for that name.
Definition at line 33 of file Nodes.cpp.
References copyStringWithNull(), and mlir::pdll::ast::Context::getAllocator().
|
inline |
|
inline |
Return the raw string name.
Definition at line 41 of file Nodes.h.
Referenced by mlir::pdll::ast::DeclScope::add(), mlir::pdll::ast::OpNameDecl::getName(), and shouldAddHintFor().