MLIR  16.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"

+ Collaboration diagram for mlir::AsmParserState::SMDefinition:

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 36 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 38 of file AsmParserState.h.

Member Data Documentation

◆ loc

SMRange mlir::AsmParserState::SMDefinition::loc

The source location of the definition.

Definition at line 41 of file AsmParserState.h.

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

◆ uses

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

The source location of all uses of the definition.

Definition at line 43 of file AsmParserState.h.

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


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