Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: src/IceDefs.h

Issue 353553004: Add support for vector types and vector constants. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceGlobalContext.h » ('j') | src/IceGlobalContext.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceDefs.h
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 4c616f832bb68c19cb67412c91483c6a91c297a4..d8275c9eed1255f3dc24768fa863ece1ed599f64 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
@@ -64,6 +65,10 @@ typedef std::list<InstPhi *> PhiList;
typedef std::vector<Variable *> VarList;
typedef std::vector<CfgNode *> NodeList;
typedef std::vector<Constant *> ConstantList;
+typedef std::vector<IceString> StringList;
+// TODO(wala): Switch to std::array after C++11
+typedef llvm::SmallVector<char, 16> Vect128;
+typedef llvm::SmallVector<bool, 16> BitVect;
jvoung (off chromium) 2014/06/26 00:45:40 LLVM actually has a separate SmallBitVector<>: htt
wala 2014/06/26 17:32:42 SmallVector has operator<. SmallBitVector does not
// SizeT is for holding small-ish limits like number of source
// operands in an instruction. It is used instead of size_t (which
« no previous file with comments | « no previous file | src/IceGlobalContext.h » ('j') | src/IceGlobalContext.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698