[Github] Bump max ccache size for premerge
[llvm-project.git] / llvm / unittests / tools / llvm-exegesis / Mips / TestBase.h
blobd92b8494b551a605e2ccf92d16a70bbbf8405a79
1 //===-- TestBase.h ----------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 // Test fixture common to all Mips tests.
9 //===----------------------------------------------------------------------===//
11 #ifndef LLVM_UNITTESTS_TOOLS_LLVMEXEGESIS_MIPS_TESTBASE_H
12 #define LLVM_UNITTESTS_TOOLS_LLVMEXEGESIS_MIPS_TESTBASE_H
14 #include "LlvmState.h"
15 #include "llvm/MC/TargetRegistry.h"
16 #include "llvm/Support/TargetSelect.h"
17 #include "gmock/gmock.h"
18 #include "gtest/gtest.h"
20 namespace llvm {
21 namespace exegesis {
23 void InitializeMipsExegesisTarget();
25 class MipsTestBase : public ::testing::Test {
26 protected:
27 MipsTestBase()
28 : State(cantFail(LLVMState::Create("mips-unknown-linux", "mips32"))) {}
30 static void SetUpTestCase() {
31 LLVMInitializeMipsTargetInfo();
32 LLVMInitializeMipsTargetMC();
33 LLVMInitializeMipsTarget();
34 InitializeMipsExegesisTarget();
37 const LLVMState State;
40 } // namespace exegesis
41 } // namespace llvm
43 #endif