LoopDataPrefetch.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-------- LoopDataPrefetch.h - Loop Data Prefetching Pass ---*- C++ -*-===//
  7. //
  8. //
  9. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  10. // See https://llvm.org/LICENSE.txt for license information.
  11. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  12. //
  13. //===----------------------------------------------------------------------===//
  14. /// \file
  15. /// This file provides the interface for LLVM's Loop Data Prefetching Pass.
  16. //===----------------------------------------------------------------------===//
  17. #ifndef LLVM_TRANSFORMS_SCALAR_LOOPDATAPREFETCH_H
  18. #define LLVM_TRANSFORMS_SCALAR_LOOPDATAPREFETCH_H
  19. #include "llvm/IR/PassManager.h"
  20. namespace llvm {
  21. class Function;
  22. /// An optimization pass inserting data prefetches in loops.
  23. class LoopDataPrefetchPass : public PassInfoMixin<LoopDataPrefetchPass> {
  24. public:
  25. LoopDataPrefetchPass() = default;
  26. /// Run the pass over the function.
  27. PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
  28. };
  29. } // end namespace llvm
  30. #endif // LLVM_TRANSFORMS_SCALAR_LOOPDATAPREFETCH_H
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif