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

Unified Diff: src/IceInst.cpp

Issue 412593002: Lower icmp operations between vector values. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Pass -filetype=obj to llvm-mc. 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/IceInst.cpp
diff --git a/src/IceInst.cpp b/src/IceInst.cpp
index 004b5550baab037ed52cfab41cad584766990a34..1b2a52d76dfb9097be252428ac42f588b2410fbb 100644
--- a/src/IceInst.cpp
+++ b/src/IceInst.cpp
@@ -63,9 +63,10 @@ const size_t InstFcmpAttributesSize = llvm::array_lengthof(InstFcmpAttributes);
// Using non-anonymous struct so that array_lengthof works.
const struct InstIcmpAttributes_ {
const char *DisplayString;
+ bool IsUnsigned;
} InstIcmpAttributes[] = {
-#define X(tag, str) \
- { str } \
+#define X(tag, str, isunsigned) \
+ { str, isunsigned } \
,
ICEINSTICMP_TABLE
#undef X
@@ -281,6 +282,10 @@ InstFcmp::InstFcmp(Cfg *Func, FCond Condition, Variable *Dest, Operand *Source1,
addSource(Source2);
}
+bool InstIcmp::isUnsigned() const {
+ return InstIcmpAttributes[getCondition()].IsUnsigned;
+}
+
InstIcmp::InstIcmp(Cfg *Func, ICond Condition, Variable *Dest, Operand *Source1,
Operand *Source2)
: Inst(Func, Inst::Icmp, 2, Dest), Condition(Condition) {

Powered by Google App Engine
This is Rietveld 408576698