1*d4102861SMin-Yih Hsu //===- LLVMTestBase.h - Test fixure for LLVM dialect tests ------*- C++ -*-===// 2*d4102861SMin-Yih Hsu // 3*d4102861SMin-Yih Hsu // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*d4102861SMin-Yih Hsu // See https://llvm.org/LICENSE.txt for license information. 5*d4102861SMin-Yih Hsu // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*d4102861SMin-Yih Hsu // 7*d4102861SMin-Yih Hsu //===----------------------------------------------------------------------===// 8*d4102861SMin-Yih Hsu // 9*d4102861SMin-Yih Hsu // Test fixure for LLVM dialect tests. 10*d4102861SMin-Yih Hsu // 11*d4102861SMin-Yih Hsu //===----------------------------------------------------------------------===// 12*d4102861SMin-Yih Hsu 13*d4102861SMin-Yih Hsu #ifndef MLIR_UNITTEST_DIALECT_LLVMIR_LLVMTESTBASE_H 14*d4102861SMin-Yih Hsu #define MLIR_UNITTEST_DIALECT_LLVMIR_LLVMTESTBASE_H 15*d4102861SMin-Yih Hsu 16*d4102861SMin-Yih Hsu #include "mlir/Dialect/LLVMIR/LLVMDialect.h" 17*d4102861SMin-Yih Hsu #include "mlir/IR/MLIRContext.h" 18*d4102861SMin-Yih Hsu #include "gtest/gtest.h" 19*d4102861SMin-Yih Hsu 20*d4102861SMin-Yih Hsu class LLVMIRTest : public ::testing::Test { 21*d4102861SMin-Yih Hsu protected: LLVMIRTest()22*d4102861SMin-Yih Hsu LLVMIRTest() { context.getOrLoadDialect<mlir::LLVM::LLVMDialect>(); } 23*d4102861SMin-Yih Hsu 24*d4102861SMin-Yih Hsu mlir::MLIRContext context; 25*d4102861SMin-Yih Hsu }; 26*d4102861SMin-Yih Hsu 27*d4102861SMin-Yih Hsu #endif 28