blob: e2022aba97c46f7d6e35155d6210ab0784c1add6 [file] [log] [blame]
Chandler Carruth3bab7e12017-01-11 09:43:56 +00001//===- IVUsersPrinter.cpp - Induction Variable Users Printer ----*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Chandler Carruth3bab7e12017-01-11 09:43:56 +00006//
7//===----------------------------------------------------------------------===//
8
9#include "llvm/Transforms/Scalar/IVUsersPrinter.h"
10#include "llvm/Analysis/IVUsers.h"
11#include "llvm/Support/Debug.h"
12using namespace llvm;
13
14#define DEBUG_TYPE "iv-users"
15
16PreservedAnalyses IVUsersPrinterPass::run(Loop &L, LoopAnalysisManager &AM,
17 LoopStandardAnalysisResults &AR,
18 LPMUpdater &U) {
19 AM.getResult<IVUsersAnalysis>(L, AR).print(OS);
20 return PreservedAnalyses::all();
21}