IVUsersPrinter.cpp 807 B

1234567891011121314151617181920
  1. //===- IVUsersPrinter.cpp - Induction Variable Users Printer ----*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #include "llvm/Transforms/Scalar/IVUsersPrinter.h"
  9. #include "llvm/Analysis/IVUsers.h"
  10. using namespace llvm;
  11. #define DEBUG_TYPE "iv-users"
  12. PreservedAnalyses IVUsersPrinterPass::run(Loop &L, LoopAnalysisManager &AM,
  13. LoopStandardAnalysisResults &AR,
  14. LPMUpdater &U) {
  15. AM.getResult<IVUsersAnalysis>(L, AR).print(OS);
  16. return PreservedAnalyses::all();
  17. }