//===- TestAssert.cpp - Test cf.assert Lowering ----------------*- c++ -*-===// // // 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 // //===----------------------------------------------------------------------===// // // This file implements a pass for integration testing of wide integer // emulation patterns. Applies conversion patterns only to functions whose // names start with a specified prefix. // //===----------------------------------------------------------------------===// #include "mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h" #include "mlir/Conversion/LLVMCommon/ConversionTarget.h" #include "mlir/Conversion/LLVMCommon/TypeConverter.h" #include "mlir/Dialect/ControlFlow/IR/ControlFlow.h" #include "mlir/Dialect/LLVMIR/LLVMDialect.h" #include "mlir/Pass/Pass.h" #include "mlir/Transforms/DialectConversion.h" usingnamespacemlir; namespace { struct TestAssertPass : public PassWrapper<TestAssertPass, OperationPass<ModuleOp>> { … }; } // namespace namespace mlir::test { void registerTestCfAssertPass() { … } } // namespace mlir::test