projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
R600: Add ISA documents to the CompilerWriterInfo page
[oota-llvm.git]
/
tools
/
llvm-diff
/
DifferenceEngine.h
diff --git
a/tools/llvm-diff/DifferenceEngine.h
b/tools/llvm-diff/DifferenceEngine.h
index 5b4f80b99e55760c0cc539b2d5043ec35f2f8493..73bf6eb6ea5b972c3361de1e365942c58ef1e993 100644
(file)
--- a/
tools/llvm-diff/DifferenceEngine.h
+++ b/
tools/llvm-diff/DifferenceEngine.h
@@
-15,11
+15,10
@@
#ifndef _LLVM_DIFFERENCE_ENGINE_H_
#define _LLVM_DIFFERENCE_ENGINE_H_
#ifndef _LLVM_DIFFERENCE_ENGINE_H_
#define _LLVM_DIFFERENCE_ENGINE_H_
+#include "DiffConsumer.h"
+#include "DiffLog.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
-#include "DiffLog.h"
-#include "DiffConsumer.h"
-
#include <utility>
namespace llvm {
#include <utility>
namespace llvm {
@@
-50,15
+49,17
@@
namespace llvm {
/// An oracle for answering whether two values are equivalent as
/// operands.
/// An oracle for answering whether two values are equivalent as
/// operands.
- struct Oracle {
+ class Oracle {
+ virtual void anchor();
+ public:
virtual bool operator()(Value *L, Value *R) = 0;
protected:
virtual ~Oracle() {}
};
virtual bool operator()(Value *L, Value *R) = 0;
protected:
virtual ~Oracle() {}
};
- DifferenceEngine(
LLVMContext &context,
Consumer &consumer)
- : con
text(context), con
sumer(consumer), globalValueOracle(0) {}
+ DifferenceEngine(Consumer &consumer)
+ : consumer(consumer), globalValueOracle(0) {}
void diff(Module *L, Module *R);
void diff(Function *L, Function *R);
void diff(Module *L, Module *R);
void diff(Function *L, Function *R);
@@
-82,7
+83,6
@@
namespace llvm {
bool equivalentAsOperands(GlobalValue *L, GlobalValue *R);
private:
bool equivalentAsOperands(GlobalValue *L, GlobalValue *R);
private:
- LLVMContext &context;
Consumer &consumer;
Oracle *globalValueOracle;
};
Consumer &consumer;
Oracle *globalValueOracle;
};