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

#include <Location.h>

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

Public Member Functions

Location getCallee () const
 The concrete location information this object presents. More...
 
Location getCaller () const
 The caller's location. More...
 

Static Public Member Functions

static Location get (Location callee, Location caller)
 Return a uniqued call location object. More...
 
static Location get (Location name, ArrayRef< Location > frames)
 
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 location as call site. "callee" is the concrete location (Unknown/NameLocation/FileLineColLoc/OpaqueLoc) and "caller" points to the caller's location (another CallLocation or a concrete location). Multiple CallSiteLocs can be chained to form a call stack.

Member Function Documentation

◆ get() [1/2]

Location CallSiteLoc::get ( Location  callee,
Location  caller 
)
static

Return a uniqued call location object.

◆ get() [2/2]

Location CallSiteLoc::get ( Location  name,
ArrayRef< Location frames 
)
static

Return a call site location which represents a name reference in one line or a stack of frames. The input frames are ordered from innermost to outermost.

◆ getCallee()

Location CallSiteLoc::getCallee ( ) const

The concrete location information this object presents.

◆ getCaller()

Location CallSiteLoc::getCaller ( ) const

The caller's location.

◆ kindof()

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