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

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

Issue 2713613005: [wasm]implement simd lowering for F32x4 and I32x4 binops (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « src/compiler/simd-scalar-lowering.cc ('k') | src/wasm/wasm-macro-gen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3362 matching lines...) Expand 10 before | Expand all | Expand 10 after
3373 case wasm::kExprF32x4Abs: 3373 case wasm::kExprF32x4Abs:
3374 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]); 3374 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]);
3375 case wasm::kExprF32x4Neg: 3375 case wasm::kExprF32x4Neg:
3376 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]); 3376 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]);
3377 case wasm::kExprF32x4Add: 3377 case wasm::kExprF32x4Add:
3378 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0], 3378 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0],
3379 inputs[1]); 3379 inputs[1]);
3380 case wasm::kExprF32x4Sub: 3380 case wasm::kExprF32x4Sub:
3381 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0], 3381 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0],
3382 inputs[1]); 3382 inputs[1]);
3383 case wasm::kExprF32x4Mul:
3384 return graph()->NewNode(jsgraph()->machine()->Float32x4Mul(), inputs[0],
3385 inputs[1]);
3386 case wasm::kExprF32x4Div:
3387 return graph()->NewNode(jsgraph()->machine()->Float32x4Div(), inputs[0],
3388 inputs[1]);
3389 case wasm::kExprF32x4Min:
3390 return graph()->NewNode(jsgraph()->machine()->Float32x4Min(), inputs[0],
3391 inputs[1]);
3392 case wasm::kExprF32x4Max:
3393 return graph()->NewNode(jsgraph()->machine()->Float32x4Max(), inputs[0],
3394 inputs[1]);
3383 case wasm::kExprF32x4Eq: 3395 case wasm::kExprF32x4Eq:
3384 return graph()->NewNode(jsgraph()->machine()->Float32x4Equal(), inputs[0], 3396 return graph()->NewNode(jsgraph()->machine()->Float32x4Equal(), inputs[0],
3385 inputs[1]); 3397 inputs[1]);
3386 case wasm::kExprF32x4Ne: 3398 case wasm::kExprF32x4Ne:
3387 return graph()->NewNode(jsgraph()->machine()->Float32x4NotEqual(), 3399 return graph()->NewNode(jsgraph()->machine()->Float32x4NotEqual(),
3388 inputs[0], inputs[1]); 3400 inputs[0], inputs[1]);
3389 case wasm::kExprI32x4Splat: 3401 case wasm::kExprI32x4Splat:
3390 return graph()->NewNode(jsgraph()->machine()->Int32x4Splat(), inputs[0]); 3402 return graph()->NewNode(jsgraph()->machine()->Int32x4Splat(), inputs[0]);
3391 case wasm::kExprI32x4SConvertF32x4: 3403 case wasm::kExprI32x4SConvertF32x4:
3392 return graph()->NewNode(jsgraph()->machine()->Int32x4FromFloat32x4(), 3404 return graph()->NewNode(jsgraph()->machine()->Int32x4FromFloat32x4(),
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
4139 function_->code_end_offset - function_->code_start_offset, 4151 function_->code_end_offset - function_->code_start_offset,
4140 codegen_ms); 4152 codegen_ms);
4141 } 4153 }
4142 4154
4143 return code; 4155 return code;
4144 } 4156 }
4145 4157
4146 } // namespace compiler 4158 } // namespace compiler
4147 } // namespace internal 4159 } // namespace internal
4148 } // namespace v8 4160 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simd-scalar-lowering.cc ('k') | src/wasm/wasm-macro-gen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698