MLIR  20.0.0git
Public Member Functions | List of all members
mlir::DataLayoutAnalysis Class Reference

Stores data layout objects for each operation that specifies the data layout above and below the given operation. More...

#include "mlir/Analysis/DataLayoutAnalysis.h"

Public Member Functions

 DataLayoutAnalysis (Operation *root)
 Constructs the data layouts. More...
 
const DataLayoutgetAbove (Operation *operation) const
 Returns the data layout active at the given operation, that is the data layout specified by the closest ancestor that can specify one, or the default layout if there is no such ancestor. More...
 
const DataLayoutgetAtOrAbove (Operation *operation) const
 Returns the data layout specified by the given operation or its closest ancestor that can specify one. More...
 

Detailed Description

Stores data layout objects for each operation that specifies the data layout above and below the given operation.

Definition at line 24 of file DataLayoutAnalysis.h.

Constructor & Destructor Documentation

◆ DataLayoutAnalysis()

DataLayoutAnalysis::DataLayoutAnalysis ( Operation root)
explicit

Constructs the data layouts.

Definition at line 18 of file DataLayoutAnalysis.cpp.

Member Function Documentation

◆ getAbove()

const DataLayout & DataLayoutAnalysis::getAbove ( Operation operation) const

Returns the data layout active at the given operation, that is the data layout specified by the closest ancestor that can specify one, or the default layout if there is no such ancestor.

Definition at line 36 of file DataLayoutAnalysis.cpp.

References mlir::Operation::getParentOp().

Referenced by getAtOrAbove().

◆ getAtOrAbove()

const DataLayout & DataLayoutAnalysis::getAtOrAbove ( Operation operation) const

Returns the data layout specified by the given operation or its closest ancestor that can specify one.

Definition at line 48 of file DataLayoutAnalysis.cpp.

References getAbove().


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