[llvm] r179483 - Miscellaneous cleanups for VecUtils.h
Benjamin Kramer
benny.kra at googlemail.com
Sun Apr 14 02:33:09 PDT 2013
Author: d0k
Date: Sun Apr 14 04:33:08 2013
New Revision: 179483
URL: http://llvm.org/viewvc/llvm-project?rev=179483&view=rev
Log:
Miscellaneous cleanups for VecUtils.h
Modified:
llvm/trunk/lib/Transforms/Vectorize/VecUtils.h
Modified: llvm/trunk/lib/Transforms/Vectorize/VecUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/VecUtils.h?rev=179483&r1=179482&r2=179483&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/VecUtils.h (original)
+++ llvm/trunk/lib/Transforms/Vectorize/VecUtils.h Sun Apr 14 04:33:08 2013
@@ -12,18 +12,15 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_TRANSFORMS_VECTORIZE_AOSVECTORIZER_H
-#define LLVM_TRANSFORMS_VECTORIZE_AOSVECTORIZER_H
+#ifndef LLVM_TRANSFORMS_VECTORIZE_VECUTILS_H
+#define LLVM_TRANSFORMS_VECTORIZE_VECUTILS_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallPtrSet.h"
-#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include <vector>
-using namespace llvm;
-
namespace llvm {
class BasicBlock; class Instruction; class Type;
@@ -75,10 +72,10 @@ struct BoUpSLP {
void vectorizeArith(ValueList &Operands);
private:
- /// \returns This method contains the recursive part of getTreeCost.
+ /// \brief This method contains the recursive part of getTreeCost.
int getTreeCost_rec(ValueList &VL, unsigned Depth);
- /// \returns This recursive method looks for vectorization hazards such as
+ /// \brief This recursive method looks for vectorization hazards such as
/// values that are used by multiple users and checks that values are used
/// by only one vector lane. It updates the variables LaneMap, MultiUserVals.
void getTreeUses_rec(ValueList &VL, unsigned Depth);
@@ -132,7 +129,7 @@ private:
std::map<Value*, int> LaneMap;
// A list of instructions to ignore while sinking
// memory instructions. This map must be reset between runs of getCost.
- SmallSet<Value*, 8> MemBarrierIgnoreList;
+ SmallPtrSet<Value *, 8> MemBarrierIgnoreList;
// -- containers that are used during vectorizeTree -- //
// Maps between the first scalar to the vector. This map must be reset between
@@ -148,5 +145,5 @@ private:
};
} // end of namespace
-# endif //LLVM_TRANSFORMS_VECTORIZE_AOSVECTORIZER_H
+#endif // LLVM_TRANSFORMS_VECTORIZE_VECUTILS_H
More information about the llvm-commits
mailing list