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

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: 1) Fix alignment in type table. 2) Add VECT128_BYTES constant. 3) add _movp() function. 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.cpp » ('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..266ff7248d25cb40d4175092cc74e908384fd009 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,12 @@ 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
Jim Stichnoth 2014/06/27 18:30:16 Assign this TODO to me instead, not sure you'll ge
+typedef llvm::SmallVector<char, 16> Vect128;
Jim Stichnoth 2014/06/27 18:30:16 Can/should you use VECT128_BYTES instead of 16 on
wala 2014/06/27 21:09:19 It makes sense for Vect128, which should have 16 b
+typedef llvm::SmallVector<bool, 16> BitVect;
+
+const unsigned VECT128_BYTES = 16;
// 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.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698