Deleted Added
full compact
1//===- AliasAnalysisEvaluator.cpp - Alias Analysis Accuracy Evaluator -----===//
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//===----------------------------------------------------------------------===//

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

23#include "llvm/Instructions.h"
24#include "llvm/Pass.h"
25#include "llvm/Analysis/Passes.h"
26#include "llvm/Analysis/AliasAnalysis.h"
27#include "llvm/Assembly/Writer.h"
28#include "llvm/Target/TargetData.h"
29#include "llvm/Support/InstIterator.h"
30#include "llvm/Support/CommandLine.h"
31#include "llvm/Support/Compiler.h"
31#include "llvm/Support/raw_ostream.h"
32#include "llvm/ADT/SetVector.h"
33using namespace llvm;
34
35static cl::opt<bool> PrintAll("print-all-alias-modref-info", cl::ReallyHidden);
36
37static cl::opt<bool> PrintNoAlias("print-no-aliases", cl::ReallyHidden);
38static cl::opt<bool> PrintMayAlias("print-may-aliases", cl::ReallyHidden);
39static cl::opt<bool> PrintMustAlias("print-must-aliases", cl::ReallyHidden);
40
41static cl::opt<bool> PrintNoModRef("print-no-modref", cl::ReallyHidden);
42static cl::opt<bool> PrintMod("print-mod", cl::ReallyHidden);
43static cl::opt<bool> PrintRef("print-ref", cl::ReallyHidden);
44static cl::opt<bool> PrintModRef("print-modref", cl::ReallyHidden);
45
46namespace {
48 class VISIBILITY_HIDDEN AAEval : public FunctionPass {
47 class AAEval : public FunctionPass {
48 unsigned NoAlias, MayAlias, MustAlias;
49 unsigned NoModRef, Mod, Ref, ModRef;
50
51 public:
52 static char ID; // Pass identification, replacement for typeid
53 AAEval() : FunctionPass(&ID) {}
54
55 virtual void getAnalysisUsage(AnalysisUsage &AU) const {

--- 190 unchanged lines hidden ---