]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/MCA/HardwareUnits/HardwareUnit.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / MCA / HardwareUnits / HardwareUnit.h
1 //===-------------------------- HardwareUnit.h ------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 /// \file
10 ///
11 /// This file defines a base class for describing a simulated hardware
12 /// unit.  These units are used to construct a simulated backend.
13 ///
14 //===----------------------------------------------------------------------===//
15
16 #ifndef LLVM_MCA_HARDWAREUNIT_H
17 #define LLVM_MCA_HARDWAREUNIT_H
18
19 namespace llvm {
20 namespace mca {
21
22 class HardwareUnit {
23   HardwareUnit(const HardwareUnit &H) = delete;
24   HardwareUnit &operator=(const HardwareUnit &H) = delete;
25
26 public:
27   HardwareUnit() = default;
28   virtual ~HardwareUnit();
29 };
30
31 } // namespace mca
32 } // namespace llvm
33 #endif // LLVM_MCA_HARDWAREUNIT_H