mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +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:
@@ -13,7 +13,7 @@
|
||||
|
||||
#include "InstCombine.h"
|
||||
#include "llvm/Analysis/ConstantFolding.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/DataLayout.h"
|
||||
#include "llvm/Target/TargetLibraryInfo.h"
|
||||
#include "llvm/Support/PatternMatch.h"
|
||||
using namespace llvm;
|
||||
@@ -78,7 +78,7 @@ static Value *DecomposeSimpleLinearExpr(Value *Val, unsigned &Scale,
|
||||
/// try to eliminate the cast by moving the type information into the alloc.
|
||||
Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI,
|
||||
AllocaInst &AI) {
|
||||
// This requires TargetData to get the alloca alignment and size information.
|
||||
// This requires DataLayout to get the alloca alignment and size information.
|
||||
if (!TD) return 0;
|
||||
|
||||
PointerType *PTy = cast<PointerType>(CI.getType());
|
||||
@@ -229,7 +229,7 @@ isEliminableCastPair(
|
||||
const CastInst *CI, ///< The first cast instruction
|
||||
unsigned opcode, ///< The opcode of the second cast instruction
|
||||
Type *DstTy, ///< The target type for the second cast instruction
|
||||
TargetData *TD ///< The target data for pointer size
|
||||
DataLayout *TD ///< The target data for pointer size
|
||||
) {
|
||||
|
||||
Type *SrcTy = CI->getOperand(0)->getType(); // A from above
|
||||
|
||||
Reference in New Issue
Block a user