//===- DIExpressionLegalization.cpp - DIExpression Legalization Patterns --===// // // 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/Dialect/LLVMIR/Transforms/DIExpressionLegalization.h" #include "llvm/BinaryFormat/Dwarf.h" usingnamespacemlir; usingnamespaceLLVM; //===----------------------------------------------------------------------===// // MergeFragments //===----------------------------------------------------------------------===// MergeFragments::OpIterT MergeFragments::match(OpIterRange operators) const { … } SmallVector<MergeFragments::OperatorT> MergeFragments::replace(OpIterRange operators) const { … } //===----------------------------------------------------------------------===// // Runner //===----------------------------------------------------------------------===// void mlir::LLVM::legalizeDIExpressionsRecursively(Operation *op) { … }