diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-14 11:27:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-14 11:27:58 +0000 |
commit | 65ea171409e8c25db20806fb09e820f46e3d11a2 (patch) | |
tree | 081a79420f9555f0962134e7cd6d1fd2696c93db /lib/Transforms/ExprTypeConvert.cpp | |
parent | c2ae4f6d3b72d153272b244fc1c8701ee89cbddb (diff) |
Remove much cruft from the MemAccessInst instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ExprTypeConvert.cpp')
-rw-r--r-- | lib/Transforms/ExprTypeConvert.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index f8052b2494..2e7c297907 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -131,8 +131,8 @@ bool ExpressionConvertableToType(Value *V, const Type *Ty, if (!CPV[i]->isNullValue()) return false; } - if (!ExpressionConvertableToType(LI->getPtrOperand(), PointerType::get(Ty), - CTMap)) + if (!ExpressionConvertableToType(LI->getPointerOperand(), + PointerType::get(Ty), CTMap)) return false; break; } @@ -163,7 +163,7 @@ bool ExpressionConvertableToType(Value *V, const Type *Ty, // get to the right type... // vector<ConstPoolVal*> Indices = GEP->getIndices(); - const Type *BaseType = GEP->getPtrOperand()->getType(); + const Type *BaseType = GEP->getPointerOperand()->getType(); while (Indices.size() && cast<ConstPoolUInt>(Indices.back())->getValue() == 0) { @@ -268,7 +268,7 @@ Value *ConvertExpressionToType(Value *V, const Type *Ty, ValueMapCache &VMC) { Res = new LoadInst(ConstPoolVal::getNullConstant(PointerType::get(Ty)), Name); VMC.ExprMap[I] = Res; - Res->setOperand(0, ConvertExpressionToType(LI->getPtrOperand(), + Res->setOperand(0, ConvertExpressionToType(LI->getPointerOperand(), PointerType::get(Ty), VMC)); assert(Res->getOperand(0)->getType() == PointerType::get(Ty)); assert(Ty == Res->getType()); @@ -310,7 +310,7 @@ Value *ConvertExpressionToType(Value *V, const Type *Ty, ValueMapCache &VMC) { // get to the right type... // vector<ConstPoolVal*> Indices = GEP->getIndices(); - const Type *BaseType = GEP->getPtrOperand()->getType(); + const Type *BaseType = GEP->getPointerOperand()->getType(); const Type *PVTy = cast<PointerType>(Ty)->getValueType(); Res = 0; while (Indices.size() && @@ -318,9 +318,9 @@ Value *ConvertExpressionToType(Value *V, const Type *Ty, ValueMapCache &VMC) { Indices.pop_back(); if (GetElementPtrInst::getIndexedType(BaseType, Indices, true) == PVTy) { if (Indices.size() == 0) { - Res = new CastInst(GEP->getPtrOperand(), BaseType); // NOOP + Res = new CastInst(GEP->getPointerOperand(), BaseType); // NOOP } else { - Res = new GetElementPtrInst(GEP->getPtrOperand(), Indices, Name); + Res = new GetElementPtrInst(GEP->getPointerOperand(), Indices, Name); } break; } @@ -549,7 +549,7 @@ static bool OperandConvertableToType(User *U, Value *V, const Type *Ty, // get to the right type... // vector<ConstPoolVal*> Indices = GEP->getIndices(); - const Type *BaseType = GEP->getPtrOperand()->getType(); + const Type *BaseType = GEP->getPointerOperand()->getType(); while (Indices.size() && cast<ConstPoolUInt>(Indices.back())->getValue() == 0) { @@ -713,7 +713,7 @@ static void ConvertOperandToType(User *U, Value *OldVal, Value *NewVal, // get to the right type... // vector<ConstPoolVal*> Indices = GEP->getIndices(); - const Type *BaseType = GEP->getPtrOperand()->getType(); + const Type *BaseType = GEP->getPointerOperand()->getType(); const Type *PVTy = cast<PointerType>(Ty)->getValueType(); Res = 0; while (Indices.size() && @@ -721,9 +721,9 @@ static void ConvertOperandToType(User *U, Value *OldVal, Value *NewVal, Indices.pop_back(); if (GetElementPtrInst::getIndexedType(BaseType, Indices, true) == PVTy) { if (Indices.size() == 0) { - Res = new CastInst(GEP->getPtrOperand(), BaseType); // NOOP + Res = new CastInst(GEP->getPointerOperand(), BaseType); // NOOP } else { - Res = new GetElementPtrInst(GEP->getPtrOperand(), Indices, Name); + Res = new GetElementPtrInst(GEP->getPointerOperand(), Indices, Name); } break; } |