Chandler Carruth | 3bab7e1 | 2017-01-11 09:43:56 +0000 | [diff] [blame] | 1 | //===- IVUsersPrinter.cpp - Induction Variable Users Printer ----*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "llvm/Transforms/Scalar/IVUsersPrinter.h" |
| 11 | #include "llvm/Analysis/IVUsers.h" |
| 12 | #include "llvm/Support/Debug.h" |
| 13 | using namespace llvm; |
| 14 | |
| 15 | #define DEBUG_TYPE "iv-users" |
| 16 | |
| 17 | PreservedAnalyses IVUsersPrinterPass::run(Loop &L, LoopAnalysisManager &AM, |
| 18 | LoopStandardAnalysisResults &AR, |
| 19 | LPMUpdater &U) { |
| 20 | AM.getResult<IVUsersAnalysis>(L, AR).print(OS); |
| 21 | return PreservedAnalyses::all(); |
| 22 | } |