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

Side by Side Diff: src/compiler/wasm-compiler.cc

Issue 2713613005: [wasm]implement simd lowering for F32x4 and I32x4 binops (Closed)
Patch Set: use namespace 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/wasm-compiler.h" 5 #include "src/compiler/wasm-compiler.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 3357 matching lines...) Expand 10 before | Expand all | Expand 10 after
3368 case wasm::kExprF32x4Abs: 3368 case wasm::kExprF32x4Abs:
3369 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]); 3369 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]);
3370 case wasm::kExprF32x4Neg: 3370 case wasm::kExprF32x4Neg:
3371 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]); 3371 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]);
3372 case wasm::kExprF32x4Add: 3372 case wasm::kExprF32x4Add:
3373 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0], 3373 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0],
3374 inputs[1]); 3374 inputs[1]);
3375 case wasm::kExprF32x4Sub: 3375 case wasm::kExprF32x4Sub:
3376 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0], 3376 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0],
3377 inputs[1]); 3377 inputs[1]);
3378 case wasm::kExprF32x4Mul:
3379 return graph()->NewNode(jsgraph()->machine()->Float32x4Mul(), inputs[0],
3380 inputs[1]);
3381 case wasm::kExprF32x4Div:
3382 return graph()->NewNode(jsgraph()->machine()->Float32x4Div(), inputs[0],
3383 inputs[1]);
3384 case wasm::kExprF32x4Min:
3385 return graph()->NewNode(jsgraph()->machine()->Float32x4Min(), inputs[0],
3386 inputs[1]);
3387 case wasm::kExprF32x4Max:
3388 return graph()->NewNode(jsgraph()->machine()->Float32x4Max(), inputs[0],
3389 inputs[1]);
3378 case wasm::kExprF32x4Eq: 3390 case wasm::kExprF32x4Eq:
3379 return graph()->NewNode(jsgraph()->machine()->Float32x4Equal(), inputs[0], 3391 return graph()->NewNode(jsgraph()->machine()->Float32x4Equal(), inputs[0],
3380 inputs[1]); 3392 inputs[1]);
3381 case wasm::kExprF32x4Ne: 3393 case wasm::kExprF32x4Ne:
3382 return graph()->NewNode(jsgraph()->machine()->Float32x4NotEqual(), 3394 return graph()->NewNode(jsgraph()->machine()->Float32x4NotEqual(),
3383 inputs[0], inputs[1]); 3395 inputs[0], inputs[1]);
3384 case wasm::kExprI32x4Splat: 3396 case wasm::kExprI32x4Splat:
3385 return graph()->NewNode(jsgraph()->machine()->CreateInt32x4(), inputs[0], 3397 return graph()->NewNode(jsgraph()->machine()->CreateInt32x4(), inputs[0],
3386 inputs[0], inputs[0], inputs[0]); 3398 inputs[0], inputs[0], inputs[0]);
3387 case wasm::kExprI32x4SConvertF32x4: 3399 case wasm::kExprI32x4SConvertF32x4:
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
4143 function_->code_start_offset), 4155 function_->code_start_offset),
4144 compile_ms); 4156 compile_ms);
4145 } 4157 }
4146 4158
4147 return code; 4159 return code;
4148 } 4160 }
4149 4161
4150 } // namespace compiler 4162 } // namespace compiler
4151 } // namespace internal 4163 } // namespace internal
4152 } // namespace v8 4164 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698