MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::FileLineColLoc Class Reference

An instance of this location represents a tuple of file, line number, and column number. More...

#include "mlir/IR/Location.h"

+ Inheritance diagram for mlir::FileLineColLoc:

Public Member Functions

StringAttr getFilename () const
 
unsigned getLine () const
 
unsigned getColumn () const
 

Static Public Member Functions

static FileLineColLoc get (StringAttr filename, unsigned line, unsigned column)
 
static FileLineColLoc get (MLIRContext *context, StringRef fileName, unsigned line, unsigned column)
 
static bool classof (Attribute attr)
 Methods for support type inquiry through isa, cast, and dyn_cast. More...
 

Detailed Description

An instance of this location represents a tuple of file, line number, and column number.

This is similar to the type of location that you get from most source languages.

FileLineColLoc is a FileLineColRange with exactly one line and column.

Definition at line 181 of file Location.h.

Member Function Documentation

◆ classof()

bool FileLineColLoc::classof ( Attribute  attr)
static

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

Definition at line 180 of file Location.cpp.

◆ get() [1/2]

FileLineColLoc FileLineColLoc::get ( MLIRContext context,
StringRef  fileName,
unsigned  line,
unsigned  column 
)
static

Definition at line 166 of file Location.cpp.

References mlir::get().

◆ get() [2/2]

FileLineColLoc FileLineColLoc::get ( StringAttr  filename,
unsigned  line,
unsigned  column 
)
static

◆ getColumn()

unsigned FileLineColLoc::getColumn ( ) const

Definition at line 178 of file Location.cpp.

Referenced by addScopeToFunction(), and getLocationFromLoc().

◆ getFilename()

StringAttr FileLineColLoc::getFilename ( ) const

Definition at line 172 of file Location.cpp.

Referenced by addScopeToFunction(), and getLocationFromLoc().

◆ getLine()

unsigned FileLineColLoc::getLine ( ) const

Definition at line 176 of file Location.cpp.

Referenced by addScopeToFunction(), and getLocationFromLoc().


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