My Project
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | List of all members
mlir::FusedLoc Class Reference

#include <Location.h>

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

Public Member Functions

ArrayRef< LocationgetLocations () const
 
Attribute getMetadata () const
 

Static Public Member Functions

static Location get (ArrayRef< Location > locs, Attribute metadata, MLIRContext *context)
 
static Location get (ArrayRef< Location > locs, MLIRContext *context)
 
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 a value composed of multiple source constructs, with an optional metadata attribute.

Member Function Documentation

◆ get() [1/2]

Location FusedLoc::get ( ArrayRef< Location locs,
Attribute  metadata,
MLIRContext context 
)
static

Return a uniqued Fused Location object. The first location in the list will get precedence during diagnostic emission, with the rest being displayed as supplementary "fused from here" style notes.

◆ get() [2/2]

static Location mlir::FusedLoc::get ( ArrayRef< Location locs,
MLIRContext context 
)
inlinestatic

◆ getLocations()

ArrayRef< Location > FusedLoc::getLocations ( ) const

◆ getMetadata()

Attribute FusedLoc::getMetadata ( ) const

Returns the optional metadata attached to this fused location. Given that it is optional, the return value may be a null node.

◆ kindof()

static bool mlir::FusedLoc::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: