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

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

Issue 2726453003: [wasm]implement simd lowering for simple F32x4 and I32x4 unops (Closed)
Patch Set: comments 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') | test/cctest/wasm/test-run-wasm-simd.cc » ('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 3365 matching lines...) Expand 10 before | Expand all | Expand 10 after
3376 case wasm::kExprF32x4SConvertI32x4: 3376 case wasm::kExprF32x4SConvertI32x4:
3377 return graph()->NewNode(jsgraph()->machine()->Float32x4FromInt32x4(), 3377 return graph()->NewNode(jsgraph()->machine()->Float32x4FromInt32x4(),
3378 inputs[0]); 3378 inputs[0]);
3379 case wasm::kExprF32x4UConvertI32x4: 3379 case wasm::kExprF32x4UConvertI32x4:
3380 return graph()->NewNode(jsgraph()->machine()->Float32x4FromUint32x4(), 3380 return graph()->NewNode(jsgraph()->machine()->Float32x4FromUint32x4(),
3381 inputs[0]); 3381 inputs[0]);
3382 case wasm::kExprF32x4Abs: 3382 case wasm::kExprF32x4Abs:
3383 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]); 3383 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]);
3384 case wasm::kExprF32x4Neg: 3384 case wasm::kExprF32x4Neg:
3385 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]); 3385 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]);
3386 case wasm::kExprF32x4Sqrt:
3387 return graph()->NewNode(jsgraph()->machine()->Float32x4Sqrt(), inputs[0]);
bbudge 2017/03/01 17:36:42 We're rethinking sqrt support. On some platforms (
3386 case wasm::kExprF32x4Add: 3388 case wasm::kExprF32x4Add:
3387 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0], 3389 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0],
3388 inputs[1]); 3390 inputs[1]);
3389 case wasm::kExprF32x4Sub: 3391 case wasm::kExprF32x4Sub:
3390 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0], 3392 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0],
3391 inputs[1]); 3393 inputs[1]);
3392 case wasm::kExprF32x4Mul: 3394 case wasm::kExprF32x4Mul:
3393 return graph()->NewNode(jsgraph()->machine()->Float32x4Mul(), inputs[0], 3395 return graph()->NewNode(jsgraph()->machine()->Float32x4Mul(), inputs[0],
3394 inputs[1]); 3396 inputs[1]);
3395 case wasm::kExprF32x4Div: 3397 case wasm::kExprF32x4Div:
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
4163 function_->code_end_offset - function_->code_start_offset, 4165 function_->code_end_offset - function_->code_start_offset,
4164 codegen_ms); 4166 codegen_ms);
4165 } 4167 }
4166 4168
4167 return code; 4169 return code;
4168 } 4170 }
4169 4171
4170 } // namespace compiler 4172 } // namespace compiler
4171 } // namespace internal 4173 } // namespace internal
4172 } // namespace v8 4174 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simd-scalar-lowering.cc ('k') | test/cctest/wasm/test-run-wasm-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698