xref: /llvm-project/llvm/unittests/tools/llvm-mca/X86/X86TestBase.h (revision 97579dcc6d3cd129c75b0502f7c43a18292d44b1)
1 //===---- X86TestBase.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 X86 MCA tests.
9 //===----------------------------------------------------------------------===//
10 
11 #ifndef LLVM_UNITTESTS_TOOLS_LLVMMCA_X86_X86TESTBASE_H
12 #define LLVM_UNITTESTS_TOOLS_LLVMMCA_X86_X86TESTBASE_H
13 
14 #include "MCATestBase.h"
15 #include "llvm/ADT/SmallVector.h"
16 
17 namespace llvm {
18 namespace mca {
19 
20 class X86TestBase : public MCATestBase {
21 protected:
22   X86TestBase();
23 
24   void getSimpleInsts(SmallVectorImpl<MCInst> &Insts, unsigned Repeats = 1);
25 };
26 
27 } // end namespace mca
28 } // end namespace llvm
29 
30 #endif
31