//===- CycleAnalysis.h - Cycle Info for LLVM IR -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// \file /// /// This file declares an analysis pass that computes CycleInfo for /// LLVM IR, specialized from GenericCycleInfo. /// //===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CYCLEANALYSIS_H #define LLVM_ANALYSIS_CYCLEANALYSIS_H #include "llvm/IR/CycleInfo.h" #include "llvm/IR/PassManager.h" #include "llvm/Pass.h" namespace llvm { /// Legacy analysis pass which computes a \ref CycleInfo. class CycleInfoWrapperPass : public FunctionPass { … }; /// Analysis pass which computes a \ref CycleInfo. class CycleAnalysis : public AnalysisInfoMixin<CycleAnalysis> { … }; class CycleInfoPrinterPass : public PassInfoMixin<CycleInfoPrinterPass> { … }; struct CycleInfoVerifierPass : public PassInfoMixin<CycleInfoVerifierPass> { … }; } // end namespace llvm #endif // LLVM_ANALYSIS_CYCLEANALYSIS_H