MLIR  19.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::AsmParserState::SMDefinition Struct Reference

This class represents a definition within the source manager, containing it's defining location and locations of any uses. More...

#include "mlir/AsmParser/AsmParserState.h"

Public Member Functions

 SMDefinition ()=default
 
 SMDefinition (SMRange loc)
 

Public Attributes

SMRange loc
 The source location of the definition. More...
 
SmallVector< SMRange > uses
 The source location of all uses of the definition. More...
 

Detailed Description

This class represents a definition within the source manager, containing it's defining location and locations of any uses.

SMDefinitions are only provided for entities that have uses within an input file, e.g. SSA values, Blocks, and Symbols.

Definition at line 35 of file AsmParserState.h.

Constructor & Destructor Documentation

◆ SMDefinition() [1/2]

mlir::AsmParserState::SMDefinition::SMDefinition ( )
default

◆ SMDefinition() [2/2]

mlir::AsmParserState::SMDefinition::SMDefinition ( SMRange  loc)
inline

Definition at line 37 of file AsmParserState.h.

Member Data Documentation

◆ loc

SMRange mlir::AsmParserState::SMDefinition::loc

The source location of the definition.

Definition at line 40 of file AsmParserState.h.

Referenced by mlir::AsmParserState::addAttrAliasDefinition(), isDefOrUse(), and printDefBlockName().

◆ uses

SmallVector<SMRange> mlir::AsmParserState::SMDefinition::uses

The source location of all uses of the definition.

Definition at line 42 of file AsmParserState.h.

Referenced by mlir::AsmParserState::addAttrAliasUses(), mlir::AsmParserState::addTypeAliasUses(), mlir::AsmParserState::addUses(), and isDefOrUse().


The documentation for this struct was generated from the following file: