MLIR  19.0.0git
Public Types | Public Member Functions | List of all members
mlir::ProgramPoint Struct Reference

Fundamental IR components are supported as first-class program points. More...

#include "mlir/Analysis/DataFlowFramework.h"

+ Inheritance diagram for mlir::ProgramPoint:

Public Types

using ParentTy = PointerUnion< GenericProgramPoint *, Operation *, Value, Block * >
 

Public Member Functions

 ProgramPoint (ParentTy point=nullptr)
 Allow implicit conversion from the parent type. More...
 
template<typename OpT , typename = std::enable_if_t< std::is_convertible<OpT, Operation *>::value && !std::is_same<OpT, Operation *>::value>>
 ProgramPoint (OpT op)
 Allow implicit conversions from operation wrappers. More...
 
void print (raw_ostream &os) const
 Print the program point. More...
 
Location getLoc () const
 Get the source location of the program point. More...
 

Detailed Description

Fundamental IR components are supported as first-class program points.

Definition at line 153 of file DataFlowFramework.h.

Member Typedef Documentation

◆ ParentTy

Definition at line 155 of file DataFlowFramework.h.

Constructor & Destructor Documentation

◆ ProgramPoint() [1/2]

mlir::ProgramPoint::ProgramPoint ( ParentTy  point = nullptr)
inline

Allow implicit conversion from the parent type.

Definition at line 160 of file DataFlowFramework.h.

◆ ProgramPoint() [2/2]

template<typename OpT , typename = std::enable_if_t< std::is_convertible<OpT, Operation *>::value && !std::is_same<OpT, Operation *>::value>>
mlir::ProgramPoint::ProgramPoint ( OpT  op)
inline

Allow implicit conversions from operation wrappers.

TODO: For Windows only. Find a better solution.

Definition at line 166 of file DataFlowFramework.h.

Member Function Documentation

◆ getLoc()

Location ProgramPoint::getLoc ( ) const

Get the source location of the program point.

Definition at line 74 of file DataFlowFramework.cpp.

◆ print()

void ProgramPoint::print ( raw_ostream &  os) const

Print the program point.

Definition at line 60 of file DataFlowFramework.cpp.

Referenced by mlir::operator<<().


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