MLIR  16.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 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 16 of file DataLayoutAnalysis.cpp.

References mlir::Operation::getParentOp(), and mlir::Operation::walk().

Member Function Documentation

◆ getAbove()

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

Returns the data layout active 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 34 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 46 of file DataLayoutAnalysis.cpp.

References getAbove().


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