//===- IndexOpsFoldersTest.cpp - unit tests for index op folders ----------===// // // 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/Index/IR/IndexDialect.h" #include "mlir/Dialect/Index/IR/IndexOps.h" #include "mlir/IR/OwningOpRef.h" #include "gtest/gtest.h" usingnamespacemlir; namespace { /// Test fixture for testing operation folders. class IndexFolderTest : public testing::Test { … }; } // namespace template <typename OpT> void IndexFolderTest::foldOp(IntegerAttr &value, Type type, ArrayRef<Attribute> operands) { … } TEST_F(IndexFolderTest, TestCastUOpFolder) { … } TEST_F(IndexFolderTest, TestCastSOpFolder) { … }