MLIR  21.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)
 

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 view to FileLineColRange with one line and column.

Definition at line 174 of file Location.h.

Member Function Documentation

◆ get() [1/2]

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

Definition at line 167 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 179 of file Location.cpp.

Referenced by getLocationFromLoc().

◆ getFilename()

StringAttr FileLineColLoc::getFilename ( ) const

Definition at line 173 of file Location.cpp.

Referenced by getLocationFromLoc(), and getNestedLoc().

◆ getLine()

unsigned FileLineColLoc::getLine ( ) const

Definition at line 177 of file Location.cpp.

Referenced by getLocationFromLoc().


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