projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reapply "blockfreq: Rewrite BlockFrequencyInfoImpl"
[oota-llvm.git]
/
include
/
llvm
/
Analysis
/
PHITransAddr.h
diff --git
a/include/llvm/Analysis/PHITransAddr.h
b/include/llvm/Analysis/PHITransAddr.h
index ff9a24790a9973e642dc9805dd7163364280d31d..69f59071f94fc56e6a2a52d01dce854e0b33de55 100644
(file)
--- a/
include/llvm/Analysis/PHITransAddr.h
+++ b/
include/llvm/Analysis/PHITransAddr.h
@@
-14,12
+14,12
@@
#ifndef LLVM_ANALYSIS_PHITRANSADDR_H
#define LLVM_ANALYSIS_PHITRANSADDR_H
#ifndef LLVM_ANALYSIS_PHITRANSADDR_H
#define LLVM_ANALYSIS_PHITRANSADDR_H
-#include "llvm/Instruction.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/SmallVector.h"
+#include "llvm/IR/Instruction.h"
namespace llvm {
class DominatorTree;
namespace llvm {
class DominatorTree;
- class
TargetData
;
+ class
DataLayout
;
class TargetLibraryInfo;
/// PHITransAddr - An address value which tracks and handles phi translation.
class TargetLibraryInfo;
/// PHITransAddr - An address value which tracks and handles phi translation.
@@
-36,8
+36,8
@@
class PHITransAddr {
/// Addr - The actual address we're analyzing.
Value *Addr;
/// Addr - The actual address we're analyzing.
Value *Addr;
- /// T
D - The target data
we are playing with if known, otherwise null.
- const
TargetData *TD
;
+ /// T
he DataLayout
we are playing with if known, otherwise null.
+ const
DataLayout *DL
;
/// TLI - The target library info if known, otherwise null.
const TargetLibraryInfo *TLI;
/// TLI - The target library info if known, otherwise null.
const TargetLibraryInfo *TLI;
@@
-45,7
+45,8
@@
class PHITransAddr {
/// InstInputs - The inputs for our symbolic address.
SmallVector<Instruction*, 4> InstInputs;
public:
/// InstInputs - The inputs for our symbolic address.
SmallVector<Instruction*, 4> InstInputs;
public:
- PHITransAddr(Value *addr, const TargetData *td) : Addr(addr), TD(td), TLI(0) {
+ PHITransAddr(Value *addr, const DataLayout *DL)
+ : Addr(addr), DL(DL), TLI(nullptr) {
// If the address is an instruction, the whole thing is considered an input.
if (Instruction *I = dyn_cast<Instruction>(Addr))
InstInputs.push_back(I);
// If the address is an instruction, the whole thing is considered an input.
if (Instruction *I = dyn_cast<Instruction>(Addr))
InstInputs.push_back(I);