summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-04 08:08:34 +0000
committerChris Lattner <sabre@nondot.org>2001-11-04 08:08:34 +0000
commit33d9cb990365f9ab0b131a65a13ed0838bd0a316 (patch)
treec5a0f416d5f6ff546bf6930546d2c50e55195a2e /llvm/lib
parentf00563d39d789f4cddb1c33a1b41c3f2959c6948 (diff)
downloadbcm5719-llvm-33d9cb990365f9ab0b131a65a13ed0838bd0a316.tar.gz
bcm5719-llvm-33d9cb990365f9ab0b131a65a13ed0838bd0a316.zip
Minor method rename
llvm-svn: 1119
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp4
-rw-r--r--llvm/lib/Target/Sparc/SparcInstrSelection.cpp2
-rw-r--r--llvm/lib/Transforms/Instrumentation/TraceValues.cpp2
-rw-r--r--llvm/lib/Transforms/LevelRaise.cpp8
4 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
index 400d5948d4f..88fd4a41386 100644
--- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
+++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
@@ -118,7 +118,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode,
// Initialize return values from the incoming instruction
Value* ptrVal = getElemInst->getPtrOperand();
- chainIdxVec = getElemInst->getIndexVec(); // copies index vector values
+ chainIdxVec = getElemInst->getIndices(); // copies index vector values
// Now chase the chain of getElementInstr instructions, if any
InstrTreeNode* ptrChild = getElemInstrNode->leftChild();
@@ -128,7 +128,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode,
// Child is a GetElemPtr instruction
getElemInst = (MemAccessInst*)
((InstructionNode*) ptrChild)->getInstruction();
- const vector<ConstPoolVal*>& idxVec = getElemInst->getIndexVec();
+ const vector<ConstPoolVal*>& idxVec = getElemInst->getIndices();
// Get the pointer value out of ptrChild and *prepend* its index vector
ptrVal = getElemInst->getPtrOperand();
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
index 4bcb9f5f10e..2533d1427f4 100644
--- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
@@ -719,7 +719,7 @@ SetOperandsForMemInstr(MachineInstr* minstr,
// The major work here is to extract these for all 3 instruction types
// and then call the common function SetMemOperands_Internal().
//
- const vector<ConstPoolVal*>* idxVec = & memInst->getIndexVec();
+ const vector<ConstPoolVal*>* idxVec = &memInst->getIndices();
vector<ConstPoolVal*>* newIdxVec = NULL;
Value* ptrVal;
Value* arrayOffsetVal = NULL;
diff --git a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp
index 3547b298c16..06c8438f26f 100644
--- a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp
+++ b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp
@@ -311,7 +311,7 @@ InsertLoadInst(StoreInst* storeInst,
BasicBlock::iterator &BBI)
{
LoadInst* loadInst = new LoadInst(storeInst->getPtrOperand(),
- storeInst->getIndexVec());
+ storeInst->getIndices());
BBI = bb->getInstList().insert(BBI, loadInst) + 1;
return loadInst;
}
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp
index b5f70568929..ff932b69123 100644
--- a/llvm/lib/Transforms/LevelRaise.cpp
+++ b/llvm/lib/Transforms/LevelRaise.cpp
@@ -250,7 +250,7 @@ static bool ExpressionConvertableToType(Value *V, const Type *Ty) {
// index array. If there are, check to see if removing them causes us to
// get to the right type...
//
- vector<ConstPoolVal*> Indices = GEP->getIndexVec();
+ vector<ConstPoolVal*> Indices = GEP->getIndices();
const Type *BaseType = GEP->getPtrOperand()->getType();
while (Indices.size() &&
@@ -333,7 +333,7 @@ static Value *ConvertExpressionToType(Value *V, const Type *Ty) {
// index array. If there are, check to see if removing them causes us to
// get to the right type...
//
- vector<ConstPoolVal*> Indices = GEP->getIndexVec();
+ vector<ConstPoolVal*> Indices = GEP->getIndices();
const Type *BaseType = GEP->getPtrOperand()->getType();
const Type *PVTy = cast<PointerType>(Ty)->getValueType();
Res = 0;
@@ -709,7 +709,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
PRINT_PEEPHOLE2("gep-store:in", GEP, SI);
ReplaceInstWithInst(BB->getInstList(), BI,
SI = new StoreInst(Val, GEP->getPtrOperand(),
- GEP->getIndexVec()));
+ GEP->getIndices()));
PRINT_PEEPHOLE1("gep-store:out", SI);
return true;
}
@@ -757,7 +757,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
PRINT_PEEPHOLE2("gep-load:in", GEP, LI);
ReplaceInstWithInst(BB->getInstList(), BI,
LI = new LoadInst(GEP->getPtrOperand(),
- GEP->getIndexVec()));
+ GEP->getIndices()));
PRINT_PEEPHOLE1("gep-load:out", LI);
return true;
}
OpenPOWER on IntegriCloud