[llvm-commits] [polly] r151902 - /polly/trunk/lib/CodeGeneration.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Fri Mar 2 03:27:12 PST 2012
Author: grosser
Date: Fri Mar 2 05:27:11 2012
New Revision: 151902
URL: http://llvm.org/viewvc/llvm-project?rev=151902&view=rev
Log:
CodeGenerator: Rename functions to show they produce vector code
Modified:
polly/trunk/lib/CodeGeneration.cpp
Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=151902&r1=151901&r2=151902&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Fri Mar 2 05:27:11 2012
@@ -250,11 +250,11 @@
void generateLoad(const LoadInst *Load, ValueMapT &VectorMap,
VectorValueMapT &ScalarMaps);
- void copyUnaryInst(const UnaryInstruction *Inst, ValueMapT &BBMap,
- ValueMapT &VectorMap);
+ void copyVectorUnaryInst(const UnaryInstruction *Inst, ValueMapT &BBMap,
+ ValueMapT &VectorMap);
- void copyBinInst(const BinaryOperator *Inst, ValueMapT &BBMap,
- ValueMapT &VectorMap);
+ void copyVectorBinInst(const BinaryOperator *Inst, ValueMapT &BBMap,
+ ValueMapT &VectorMap);
void copyVectorStore(const StoreInst *Store, ValueMapT &BBMap,
ValueMapT &VectorMap, VectorValueMapT &ScalarMaps);
@@ -558,8 +558,9 @@
VectorMap[Load] = NewLoad;
}
-void BlockGenerator::copyUnaryInst(const UnaryInstruction *Inst,
- ValueMapT &BBMap, ValueMapT &VectorMap) {
+void BlockGenerator::copyVectorUnaryInst(const UnaryInstruction *Inst,
+ ValueMapT &BBMap,
+ ValueMapT &VectorMap) {
int VectorWidth = getVectorWidth();
Value *NewOperand = getOperand(Inst->getOperand(0), BBMap, &VectorMap);
NewOperand = makeVectorOperand(NewOperand);
@@ -571,8 +572,8 @@
VectorMap[Inst] = Builder.CreateCast(Cast->getOpcode(), NewOperand, DestType);
}
-void BlockGenerator::copyBinInst(const BinaryOperator *Inst, ValueMapT &BBMap,
- ValueMapT &VectorMap) {
+void BlockGenerator::copyVectorBinInst(const BinaryOperator *Inst,
+ ValueMapT &BBMap, ValueMapT &VectorMap) {
Value *OpZero = Inst->getOperand(0);
Value *OpOne = Inst->getOperand(1);
@@ -698,12 +699,12 @@
}
if (const UnaryInstruction *UnaryInst = dyn_cast<UnaryInstruction>(Inst)) {
- copyUnaryInst(UnaryInst, BBMap, VectorMap);
+ copyVectorUnaryInst(UnaryInst, BBMap, VectorMap);
return;
}
if (const BinaryOperator *BinaryInst = dyn_cast<BinaryOperator>(Inst)) {
- copyBinInst(BinaryInst, BBMap, VectorMap);
+ copyVectorBinInst(BinaryInst, BBMap, VectorMap);
return;
}
More information about the llvm-commits
mailing list