MachineUniformityAnalysis.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- MachineUniformityAnalysis.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. //
  14. /// \file
  15. /// \brief Uniformity info and uniformity-aware uniform info for Machine IR
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_CODEGEN_MACHINEUNIFORMITYANALYSIS_H
  19. #define LLVM_CODEGEN_MACHINEUNIFORMITYANALYSIS_H
  20. #include "llvm/ADT/GenericUniformityInfo.h"
  21. #include "llvm/CodeGen/MachineCycleAnalysis.h"
  22. #include "llvm/CodeGen/MachineDominators.h"
  23. #include "llvm/CodeGen/MachineSSAContext.h"
  24. namespace llvm {
  25. extern template class GenericUniformityInfo<MachineSSAContext>;
  26. using MachineUniformityInfo = GenericUniformityInfo<MachineSSAContext>;
  27. /// \brief Compute the uniform information of a Machine IR function.
  28. MachineUniformityInfo
  29. computeMachineUniformityInfo(MachineFunction &F,
  30. const MachineCycleInfo &cycleInfo,
  31. const MachineDomTree &domTree);
  32. } // namespace llvm
  33. #endif // LLVM_CODEGEN_MACHINEUNIFORMITYANALYSIS_H
  34. #ifdef __GNUC__
  35. #pragma GCC diagnostic pop
  36. #endif