MLIR
20.0.0git
|
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 DataLayout & | 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. More... | |
const DataLayout & | getAtOrAbove (Operation *operation) const |
Returns the data layout specified by the given operation or its closest ancestor that can specify one. More... | |
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.
|
explicit |
Constructs the data layouts.
Definition at line 18 of file DataLayoutAnalysis.cpp.
References mlir::Operation::getParentOp(), and mlir::Operation::walk().
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().
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().