Index: src/IceDefs.h |
diff --git a/src/IceDefs.h b/src/IceDefs.h |
index 4c616f832bb68c19cb67412c91483c6a91c297a4..94b25a89b1bfaecea9f0a66d710e65521b9d2f2a 100644 |
--- a/src/IceDefs.h |
+++ b/src/IceDefs.h |
@@ -29,6 +29,7 @@ |
#include "llvm/ADT/BitVector.h" |
#include "llvm/ADT/SmallBitVector.h" |
+#include "llvm/ADT/SmallVector.h" |
#include "llvm/ADT/STLExtras.h" |
#include "llvm/Support/Casting.h" |
#include "llvm/Support/Compiler.h" // LLVM_STATIC_ASSERT |
@@ -65,6 +66,11 @@ typedef std::vector<Variable *> VarList; |
typedef std::vector<CfgNode *> NodeList; |
typedef std::vector<Constant *> ConstantList; |
+const unsigned VECT128_BYTES = 16; |
+// TODO(stichnot): Switch Vect128 to std::array after C++11 |
+typedef llvm::SmallVector<char, VECT128_BYTES> Vect128; |
JF
2014/06/30 17:48:50
You should use uint8_t here. I'd also name the cla
wala
2014/06/30 22:13:24
Unless vector constants are supported, this type i
|
+typedef llvm::SmallVector<bool, VECT128_BYTES> BitVect; |
JF
2014/06/30 17:48:50
Can you add a comment that explains this type?
wala
2014/06/30 22:13:24
Unless vector constants are supported, this type i
|
+ |
// SizeT is for holding small-ish limits like number of source |
// operands in an instruction. It is used instead of size_t (which |
// may be 64-bits wide) when we want to save space. |