//===- DIExpressionRewriter.cpp - Rewriter for DIExpression operators -----===// // // 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/DIExpressionRewriter.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" #include "llvm/Support/Debug.h" usingnamespacemlir; usingnamespaceLLVM; #define DEBUG_TYPE … //===----------------------------------------------------------------------===// // DIExpressionRewriter //===----------------------------------------------------------------------===// void DIExpressionRewriter::addPattern( std::unique_ptr<ExprRewritePattern> pattern) { … } DIExpressionAttr DIExpressionRewriter::simplify(DIExpressionAttr expr, std::optional<uint64_t> maxNumRewrites) const { … }