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

Represents an identity name attached to a child location. More...

#include <Location.h>

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

Public Member Functions

Identifier getName () const
 Return the name identifier. More...
 
Location getChildLoc () const
 Return the child location. More...
 

Static Public Member Functions

static Location get (Identifier name, Location child)
 
static Location get (Identifier name, MLIRContext *context)
 Return a uniqued name location object with an unknown child. More...
 
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

- 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
 
- 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

Represents an identity name attached to a child location.

Member Function Documentation

◆ get() [1/2]

Location NameLoc::get ( Identifier  name,
Location  child 
)
static

Return a uniqued name location object. The child location must not be another NameLoc.

◆ get() [2/2]

Location NameLoc::get ( Identifier  name,
MLIRContext context 
)
static

Return a uniqued name location object with an unknown child.

◆ getChildLoc()

Location NameLoc::getChildLoc ( ) const

Return the child location.

◆ getName()

Identifier NameLoc::getName ( ) const

Return the name identifier.

◆ kindof()

static bool mlir::NameLoc::kindof ( unsigned  kind)
inlinestatic

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


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