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

Unified Diff: src/IceInstX8632.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: Print out types in error messages. Created 6 years, 5 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
Index: src/IceInstX8632.h
diff --git a/src/IceInstX8632.h b/src/IceInstX8632.h
index 54df8695f1ccfd48198e9d45ea961a171de965ea..0e4964fd4f31b2eb1e1e00034c871da178622fd8 100644
--- a/src/IceInstX8632.h
+++ b/src/IceInstX8632.h
@@ -153,6 +153,7 @@ public:
Load,
Mfence,
Mov,
+ Movp,
Movq,
Movsx,
Movzx,
@@ -161,6 +162,7 @@ public:
Or,
Pop,
Push,
+ Pxor,
Ret,
Sar,
Sbb,
@@ -402,6 +404,7 @@ typedef InstX8632Binop<InstX8632::Sbb> InstX8632Sbb;
typedef InstX8632Binop<InstX8632::And> InstX8632And;
typedef InstX8632Binop<InstX8632::Or> InstX8632Or;
typedef InstX8632Binop<InstX8632::Xor> InstX8632Xor;
+typedef InstX8632Binop<InstX8632::Pxor> InstX8632Pxor;
typedef InstX8632Binop<InstX8632::Imul> InstX8632Imul;
typedef InstX8632Binop<InstX8632::Mulss> InstX8632Mulss;
typedef InstX8632Binop<InstX8632::Divss> InstX8632Divss;
@@ -638,6 +641,26 @@ private:
virtual ~InstX8632Mov() {}
};
+// Move packed - copy 128 bit values between XMM registers or mem128 and
+// XMM registers
+class InstX8632Movp : public InstX8632 {
+public:
+ static InstX8632Movp *create(Cfg *Func, Variable *Dest, Operand *Source) {
+ return new (Func->allocate<InstX8632Movp>())
+ InstX8632Movp(Func, Dest, Source);
+ }
+ virtual bool isRedundantAssign() const;
+ virtual void emit(const Cfg *Func) const;
+ virtual void dump(const Cfg *Func) const;
+ static bool classof(const Inst *Inst) { return isClassof(Inst, Movp); }
+
+private:
+ InstX8632Movp(Cfg *Func, Variable *Dest, Operand *Source);
+ InstX8632Movp(const InstX8632Movp &) LLVM_DELETED_FUNCTION;
+ InstX8632Movp &operator=(const InstX8632Movp &) LLVM_DELETED_FUNCTION;
+ virtual ~InstX8632Movp() {}
+};
+
// This is essentially a "movq" instruction with an OperandX8632Mem
// operand instead of Variable as the destination. It's important
// for liveness that there is no Dest operand.
« no previous file with comments | « src/IceGlobalContext.cpp ('k') | src/IceInstX8632.cpp » ('j') | src/IceTargetLoweringX8632.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698