mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Move TargetData to DataLayout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/IntrinsicInst.h"
|
||||
#include "llvm/Analysis/ConstantFolding.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/DataLayout.h"
|
||||
#include "llvm/Target/TargetLibraryInfo.h"
|
||||
#include "llvm/Support/CFG.h"
|
||||
#include "llvm/Support/ConstantRange.h"
|
||||
@@ -212,7 +212,7 @@ public:
|
||||
|
||||
// Unless we can prove that the two Constants are different, we must
|
||||
// move to overdefined.
|
||||
// FIXME: use TargetData/TargetLibraryInfo for smarter constant folding.
|
||||
// FIXME: use DataLayout/TargetLibraryInfo for smarter constant folding.
|
||||
if (ConstantInt *Res = dyn_cast<ConstantInt>(
|
||||
ConstantFoldCompareInstOperands(CmpInst::ICMP_NE,
|
||||
getConstant(),
|
||||
@@ -238,7 +238,7 @@ public:
|
||||
|
||||
// Unless we can prove that the two Constants are different, we must
|
||||
// move to overdefined.
|
||||
// FIXME: use TargetData/TargetLibraryInfo for smarter constant folding.
|
||||
// FIXME: use DataLayout/TargetLibraryInfo for smarter constant folding.
|
||||
if (ConstantInt *Res = dyn_cast<ConstantInt>(
|
||||
ConstantFoldCompareInstOperands(CmpInst::ICMP_NE,
|
||||
getNotConstant(),
|
||||
@@ -1009,7 +1009,7 @@ bool LazyValueInfo::runOnFunction(Function &F) {
|
||||
if (PImpl)
|
||||
getCache(PImpl).clear();
|
||||
|
||||
TD = getAnalysisIfAvailable<TargetData>();
|
||||
TD = getAnalysisIfAvailable<DataLayout>();
|
||||
TLI = &getAnalysis<TargetLibraryInfo>();
|
||||
|
||||
// Fully lazy.
|
||||
|
Reference in New Issue
Block a user