//===- TestTraits.cpp - Test trait folding --------------------------------===// // // 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 "TestOps.h" #include "mlir/Pass/Pass.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" usingnamespacemlir; usingnamespacetest; //===----------------------------------------------------------------------===// // Trait Folder. //===----------------------------------------------------------------------===// OpFoldResult TestInvolutionTraitFailingOperationFolderOp::fold( FoldAdaptor adaptor) { … } OpFoldResult TestInvolutionTraitSuccesfulOperationFolderOp::fold( FoldAdaptor adaptor) { … } namespace { struct TestTraitFolder : public PassWrapper<TestTraitFolder, OperationPass<func::FuncOp>> { … }; } // namespace namespace mlir { void registerTestTraitsPass() { … } } // namespace mlir