MLIR  16.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:
+ Collaboration 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 = 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 152 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 159 of file DataFlowFramework.h.

References value.

◆ ProgramPoint() [2/2]

template<typename OpT , typename = 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 165 of file DataFlowFramework.h.

References print().

Member Function Documentation

◆ getLoc()

Location ProgramPoint::getLoc ( ) const

Get the source location of the program point.

Definition at line 51 of file DataFlowFramework.cpp.

References value.

Referenced by mlir::dataflow::DeadCodeAnalysis::visit().

◆ print()

void ProgramPoint::print ( raw_ostream &  os) const

Print the program point.

Definition at line 37 of file DataFlowFramework.cpp.

References value.

Referenced by mlir::operator<<().


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