29 if (
auto mod = llvm::dyn_cast<ModuleOp>(current)) {
30 if (mod.getDataLayoutSpec())
32 }
else if (
auto dataLayoutOp =
33 llvm::dyn_cast<DataLayoutOpInterface>(current)) {
35 if (dataLayoutOp.getDataLayoutSpec())
44 if (
auto mod = llvm::dyn_cast<ModuleOp>(op))
The main mechanism for performing data layout queries.
Operation is the basic unit of execution within MLIR.
Operation * getParentOp()
Returns the closest surrounding operation that contains this operation or nullptr if this is a top-le...
OpTy getParentOfType()
Return the closest surrounding parent operation that is of type 'OpTy'.
std::optional< DataLayout > getDataLayout(Operation *op, bool allowDefault=true)
Get the data layout for an operation.
Include the generated interface declarations.