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

Unified Diff: src/compiler/instruction-selector.h

Issue 2700813002: [V8] Implement SIMD Boolean vector types to allow mask registers. (Closed)
Patch Set: Remove stray DCHECK. Created 3 years, 10 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/compiler/instruction-selector.h
diff --git a/src/compiler/instruction-selector.h b/src/compiler/instruction-selector.h
index dab2c0f70a40506975e7bb934441ea1ff757469f..d30d044b505b2ada6336e5d9c0636ebcd04e734c 100644
--- a/src/compiler/instruction-selector.h
+++ b/src/compiler/instruction-selector.h
@@ -263,6 +263,27 @@ class V8_EXPORT_PRIVATE InstructionSelector final {
void MarkAsSimd128(Node* node) {
MarkAsRepresentation(MachineRepresentation::kSimd128, node);
}
+ void MarkAsSimdBool4(Node* node) {
+ if (kSimdMaskRegisters) {
+ MarkAsRepresentation(MachineRepresentation::kSimdBool4, node);
+ } else {
+ MarkAsSimd128(node);
+ }
+ }
+ void MarkAsSimdBool8(Node* node) {
+ if (kSimdMaskRegisters) {
+ MarkAsRepresentation(MachineRepresentation::kSimdBool8, node);
+ } else {
+ MarkAsSimd128(node);
+ }
+ }
+ void MarkAsSimdBool16(Node* node) {
+ if (kSimdMaskRegisters) {
+ MarkAsRepresentation(MachineRepresentation::kSimdBool16, node);
+ } else {
+ MarkAsSimd128(node);
+ }
+ }
void MarkAsReference(Node* node) {
MarkAsRepresentation(MachineRepresentation::kTagged, node);
}

Powered by Google App Engine
This is Rietveld 408576698