MLIR 22.0.0git
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 163 of file Location.cpp.

◆ get() [2/2]

◆ getColumn()

unsigned FileLineColLoc::getColumn ( ) const

Definition at line 175 of file Location.cpp.

Referenced by getLocationFromLoc(), and getLocationFromLoc().

◆ getFilename()

StringAttr FileLineColLoc::getFilename ( ) const

◆ getLine()

unsigned FileLineColLoc::getLine ( ) const

Definition at line 173 of file Location.cpp.

Referenced by getLocationFromLoc(), and getLocationFromLoc().


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