Deleted Added
full compact
PassAnalysisSupport.h (198396) PassAnalysisSupport.h (199481)
1//===- llvm/PassAnalysisSupport.h - Analysis Pass Support code --*- 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//===----------------------------------------------------------------------===//

--- 8 unchanged lines hidden (view full) ---

17//===----------------------------------------------------------------------===//
18
19#ifndef LLVM_PASS_ANALYSIS_SUPPORT_H
20#define LLVM_PASS_ANALYSIS_SUPPORT_H
21
22#include <vector>
23#include "llvm/Pass.h"
24#include "llvm/ADT/SmallVector.h"
1//===- llvm/PassAnalysisSupport.h - Analysis Pass Support code --*- 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//===----------------------------------------------------------------------===//

--- 8 unchanged lines hidden (view full) ---

17//===----------------------------------------------------------------------===//
18
19#ifndef LLVM_PASS_ANALYSIS_SUPPORT_H
20#define LLVM_PASS_ANALYSIS_SUPPORT_H
21
22#include <vector>
23#include "llvm/Pass.h"
24#include "llvm/ADT/SmallVector.h"
25#include "llvm/ADT/StringRef.h"
25
26namespace llvm {
27
28class StringRef;
29
30//===----------------------------------------------------------------------===//
31// AnalysisUsage - Represent the analysis usage information of a pass. This
32// tracks analyses that the pass REQUIRES (must be available when the pass

--- 57 unchanged lines hidden (view full) ---

90 return *this;
91 }
92
93 // addPreserved - Add the Pass with the specified argument string to the set
94 // of analyses preserved by this pass. If no such Pass exists, do nothing.
95 // This can be useful when a pass is trivially preserved, but may not be
96 // linked in. Be careful about spelling!
97 //
26
27namespace llvm {
28
29class StringRef;
30
31//===----------------------------------------------------------------------===//
32// AnalysisUsage - Represent the analysis usage information of a pass. This
33// tracks analyses that the pass REQUIRES (must be available when the pass

--- 57 unchanged lines hidden (view full) ---

91 return *this;
92 }
93
94 // addPreserved - Add the Pass with the specified argument string to the set
95 // of analyses preserved by this pass. If no such Pass exists, do nothing.
96 // This can be useful when a pass is trivially preserved, but may not be
97 // linked in. Be careful about spelling!
98 //
98 AnalysisUsage &addPreserved(const StringRef &Arg) {
99 AnalysisUsage &addPreserved(StringRef Arg) {
99 const PassInfo *PI = Pass::lookupPassInfo(Arg);
100 // If the pass exists, preserve it. Otherwise silently do nothing.
101 if (PI) Preserved.push_back(PI);
102 return *this;
103 }
104
105 // setPreservesAll - Set by analyses that do not transform their input at all
106 void setPreservesAll() { PreservesAll = true; }

--- 158 unchanged lines hidden ---
100 const PassInfo *PI = Pass::lookupPassInfo(Arg);
101 // If the pass exists, preserve it. Otherwise silently do nothing.
102 if (PI) Preserved.push_back(PI);
103 return *this;
104 }
105
106 // setPreservesAll - Set by analyses that do not transform their input at all
107 void setPreservesAll() { PreservesAll = true; }

--- 158 unchanged lines hidden ---