31 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8// Test fixture common to all X86 MCA tests.9//===----------------------------------------------------------------------===//10 11#ifndef LLVM_UNITTESTS_TOOLS_LLVMMCA_X86_X86TESTBASE_H12#define LLVM_UNITTESTS_TOOLS_LLVMMCA_X86_X86TESTBASE_H13 14#include "MCATestBase.h"15#include "llvm/ADT/SmallVector.h"16 17namespace llvm {18namespace mca {19 20class X86TestBase : public MCATestBase {21protected:22 X86TestBase();23 24 void getSimpleInsts(SmallVectorImpl<MCInst> &Insts, unsigned Repeats = 1);25};26 27} // end namespace mca28} // end namespace llvm29 30#endif31