HardwareUnit.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-------------------------- HardwareUnit.h ------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. /// \file
  14. ///
  15. /// This file defines a base class for describing a simulated hardware
  16. /// unit. These units are used to construct a simulated backend.
  17. ///
  18. //===----------------------------------------------------------------------===//
  19. #ifndef LLVM_MCA_HARDWAREUNITS_HARDWAREUNIT_H
  20. #define LLVM_MCA_HARDWAREUNITS_HARDWAREUNIT_H
  21. namespace llvm {
  22. namespace mca {
  23. class HardwareUnit {
  24. HardwareUnit(const HardwareUnit &H) = delete;
  25. HardwareUnit &operator=(const HardwareUnit &H) = delete;
  26. public:
  27. HardwareUnit() = default;
  28. virtual ~HardwareUnit();
  29. };
  30. } // namespace mca
  31. } // namespace llvm
  32. #endif // LLVM_MCA_HARDWAREUNITS_HARDWAREUNIT_H
  33. #ifdef __GNUC__
  34. #pragma GCC diagnostic pop
  35. #endif