//===- DataLayoutAnalysis.cpp ---------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/Analysis/DataLayoutAnalysis.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/IR/Operation.h" #include "mlir/Interfaces/DataLayoutInterfaces.h" #include "mlir/Support/LLVM.h" #include <memory> usingnamespacemlir; DataLayoutAnalysis::DataLayoutAnalysis(Operation *root) : … { … } const DataLayout &DataLayoutAnalysis::getAbove(Operation *operation) const { … } const DataLayout &DataLayoutAnalysis::getAtOrAbove(Operation *operation) const { … }