MLIR  20.0.0git
Public Member Functions | List of all members
mlir::ScfToSPIRVContext Struct Reference

#include "mlir/Conversion/SCFToSPIRV/SCFToSPIRV.h"

Public Member Functions

 ScfToSPIRVContext ()
 We use ScfToSPIRVContext to store information about the lowering of the scf region that need to be used later on. More...
 
 ~ScfToSPIRVContext ()
 
ScfToSPIRVContextImplgetImpl ()
 

Detailed Description

Definition at line 25 of file SCFToSPIRV.h.

Constructor & Destructor Documentation

◆ ScfToSPIRVContext()

ScfToSPIRVContext::ScfToSPIRVContext ( )

We use ScfToSPIRVContext to store information about the lowering of the scf region that need to be used later on.

When we lower scf.for/scf.if we create VariableOp to store the results. We need to keep track of the VariableOp created as we need to insert stores into them when lowering Yield. Those StoreOp cannot be created earlier as they may use a different type than yield operands.

Definition at line 43 of file SCFToSPIRV.cpp.

◆ ~ScfToSPIRVContext()

ScfToSPIRVContext::~ScfToSPIRVContext ( )
default

Member Function Documentation

◆ getImpl()

ScfToSPIRVContextImpl* mlir::ScfToSPIRVContext::getImpl ( )
inline

Definition at line 29 of file SCFToSPIRV.h.

Referenced by mlir::populateSCFToSPIRVPatterns().


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