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

Side by Side Diff: src/compiler/machine-operator.cc

Issue 2804883008: [WASM SIMD] Implement horizontal add for float and integer types. (Closed)
Patch Set: Rebase, reformat. Created 3 years, 8 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/machine-operator.h ('k') | src/compiler/opcodes.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/machine-operator.h" 5 #include "src/compiler/machine-operator.h"
6 6
7 #include "src/base/lazy-instance.h" 7 #include "src/base/lazy-instance.h"
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 V(Word32PairShr, Operator::kNoProperties, 3, 0, 2) \ 225 V(Word32PairShr, Operator::kNoProperties, 3, 0, 2) \
226 V(Word32PairSar, Operator::kNoProperties, 3, 0, 2) \ 226 V(Word32PairSar, Operator::kNoProperties, 3, 0, 2) \
227 V(F32x4Splat, Operator::kNoProperties, 1, 0, 1) \ 227 V(F32x4Splat, Operator::kNoProperties, 1, 0, 1) \
228 V(F32x4SConvertI32x4, Operator::kNoProperties, 1, 0, 1) \ 228 V(F32x4SConvertI32x4, Operator::kNoProperties, 1, 0, 1) \
229 V(F32x4UConvertI32x4, Operator::kNoProperties, 1, 0, 1) \ 229 V(F32x4UConvertI32x4, Operator::kNoProperties, 1, 0, 1) \
230 V(F32x4Abs, Operator::kNoProperties, 1, 0, 1) \ 230 V(F32x4Abs, Operator::kNoProperties, 1, 0, 1) \
231 V(F32x4Neg, Operator::kNoProperties, 1, 0, 1) \ 231 V(F32x4Neg, Operator::kNoProperties, 1, 0, 1) \
232 V(F32x4RecipApprox, Operator::kNoProperties, 1, 0, 1) \ 232 V(F32x4RecipApprox, Operator::kNoProperties, 1, 0, 1) \
233 V(F32x4RecipSqrtApprox, Operator::kNoProperties, 1, 0, 1) \ 233 V(F32x4RecipSqrtApprox, Operator::kNoProperties, 1, 0, 1) \
234 V(F32x4Add, Operator::kCommutative, 2, 0, 1) \ 234 V(F32x4Add, Operator::kCommutative, 2, 0, 1) \
235 V(F32x4AddHoriz, Operator::kNoProperties, 2, 0, 1) \
235 V(F32x4Sub, Operator::kNoProperties, 2, 0, 1) \ 236 V(F32x4Sub, Operator::kNoProperties, 2, 0, 1) \
236 V(F32x4Mul, Operator::kCommutative, 2, 0, 1) \ 237 V(F32x4Mul, Operator::kCommutative, 2, 0, 1) \
237 V(F32x4Min, Operator::kCommutative, 2, 0, 1) \ 238 V(F32x4Min, Operator::kCommutative, 2, 0, 1) \
238 V(F32x4Max, Operator::kCommutative, 2, 0, 1) \ 239 V(F32x4Max, Operator::kCommutative, 2, 0, 1) \
239 V(F32x4Eq, Operator::kCommutative, 2, 0, 1) \ 240 V(F32x4Eq, Operator::kCommutative, 2, 0, 1) \
240 V(F32x4Ne, Operator::kCommutative, 2, 0, 1) \ 241 V(F32x4Ne, Operator::kCommutative, 2, 0, 1) \
241 V(F32x4Lt, Operator::kNoProperties, 2, 0, 1) \ 242 V(F32x4Lt, Operator::kNoProperties, 2, 0, 1) \
242 V(F32x4Le, Operator::kNoProperties, 2, 0, 1) \ 243 V(F32x4Le, Operator::kNoProperties, 2, 0, 1) \
243 V(I32x4Splat, Operator::kNoProperties, 1, 0, 1) \ 244 V(I32x4Splat, Operator::kNoProperties, 1, 0, 1) \
244 V(I32x4SConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ 245 V(I32x4SConvertF32x4, Operator::kNoProperties, 1, 0, 1) \
245 V(I32x4SConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \ 246 V(I32x4SConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \
246 V(I32x4SConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ 247 V(I32x4SConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \
247 V(I32x4Neg, Operator::kNoProperties, 1, 0, 1) \ 248 V(I32x4Neg, Operator::kNoProperties, 1, 0, 1) \
248 V(I32x4Add, Operator::kCommutative, 2, 0, 1) \ 249 V(I32x4Add, Operator::kCommutative, 2, 0, 1) \
250 V(I32x4AddHoriz, Operator::kNoProperties, 2, 0, 1) \
249 V(I32x4Sub, Operator::kNoProperties, 2, 0, 1) \ 251 V(I32x4Sub, Operator::kNoProperties, 2, 0, 1) \
250 V(I32x4Mul, Operator::kCommutative, 2, 0, 1) \ 252 V(I32x4Mul, Operator::kCommutative, 2, 0, 1) \
251 V(I32x4MinS, Operator::kCommutative, 2, 0, 1) \ 253 V(I32x4MinS, Operator::kCommutative, 2, 0, 1) \
252 V(I32x4MaxS, Operator::kCommutative, 2, 0, 1) \ 254 V(I32x4MaxS, Operator::kCommutative, 2, 0, 1) \
253 V(I32x4Eq, Operator::kCommutative, 2, 0, 1) \ 255 V(I32x4Eq, Operator::kCommutative, 2, 0, 1) \
254 V(I32x4Ne, Operator::kCommutative, 2, 0, 1) \ 256 V(I32x4Ne, Operator::kCommutative, 2, 0, 1) \
255 V(I32x4LtS, Operator::kNoProperties, 2, 0, 1) \ 257 V(I32x4LtS, Operator::kNoProperties, 2, 0, 1) \
256 V(I32x4LeS, Operator::kNoProperties, 2, 0, 1) \ 258 V(I32x4LeS, Operator::kNoProperties, 2, 0, 1) \
257 V(I32x4UConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ 259 V(I32x4UConvertF32x4, Operator::kNoProperties, 1, 0, 1) \
258 V(I32x4UConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \ 260 V(I32x4UConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \
259 V(I32x4UConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ 261 V(I32x4UConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \
260 V(I32x4MinU, Operator::kCommutative, 2, 0, 1) \ 262 V(I32x4MinU, Operator::kCommutative, 2, 0, 1) \
261 V(I32x4MaxU, Operator::kCommutative, 2, 0, 1) \ 263 V(I32x4MaxU, Operator::kCommutative, 2, 0, 1) \
262 V(I32x4LtU, Operator::kNoProperties, 2, 0, 1) \ 264 V(I32x4LtU, Operator::kNoProperties, 2, 0, 1) \
263 V(I32x4LeU, Operator::kNoProperties, 2, 0, 1) \ 265 V(I32x4LeU, Operator::kNoProperties, 2, 0, 1) \
264 V(I16x8Splat, Operator::kNoProperties, 1, 0, 1) \ 266 V(I16x8Splat, Operator::kNoProperties, 1, 0, 1) \
265 V(I16x8SConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ 267 V(I16x8SConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \
266 V(I16x8SConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ 268 V(I16x8SConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \
267 V(I16x8Neg, Operator::kNoProperties, 1, 0, 1) \ 269 V(I16x8Neg, Operator::kNoProperties, 1, 0, 1) \
268 V(I16x8SConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ 270 V(I16x8SConvertI32x4, Operator::kNoProperties, 2, 0, 1) \
269 V(I16x8Add, Operator::kCommutative, 2, 0, 1) \ 271 V(I16x8Add, Operator::kCommutative, 2, 0, 1) \
270 V(I16x8AddSaturateS, Operator::kCommutative, 2, 0, 1) \ 272 V(I16x8AddSaturateS, Operator::kCommutative, 2, 0, 1) \
273 V(I16x8AddHoriz, Operator::kNoProperties, 2, 0, 1) \
271 V(I16x8Sub, Operator::kNoProperties, 2, 0, 1) \ 274 V(I16x8Sub, Operator::kNoProperties, 2, 0, 1) \
272 V(I16x8SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ 275 V(I16x8SubSaturateS, Operator::kNoProperties, 2, 0, 1) \
273 V(I16x8Mul, Operator::kCommutative, 2, 0, 1) \ 276 V(I16x8Mul, Operator::kCommutative, 2, 0, 1) \
274 V(I16x8MinS, Operator::kCommutative, 2, 0, 1) \ 277 V(I16x8MinS, Operator::kCommutative, 2, 0, 1) \
275 V(I16x8MaxS, Operator::kCommutative, 2, 0, 1) \ 278 V(I16x8MaxS, Operator::kCommutative, 2, 0, 1) \
276 V(I16x8Eq, Operator::kCommutative, 2, 0, 1) \ 279 V(I16x8Eq, Operator::kCommutative, 2, 0, 1) \
277 V(I16x8Ne, Operator::kCommutative, 2, 0, 1) \ 280 V(I16x8Ne, Operator::kCommutative, 2, 0, 1) \
278 V(I16x8LtS, Operator::kNoProperties, 2, 0, 1) \ 281 V(I16x8LtS, Operator::kNoProperties, 2, 0, 1) \
279 V(I16x8LeS, Operator::kNoProperties, 2, 0, 1) \ 282 V(I16x8LeS, Operator::kNoProperties, 2, 0, 1) \
280 V(I16x8UConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ 283 V(I16x8UConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 1030
1028 const Operator* MachineOperatorBuilder::S8x16Concat(int32_t bytes) { 1031 const Operator* MachineOperatorBuilder::S8x16Concat(int32_t bytes) {
1029 DCHECK(0 <= bytes && bytes < kSimd128Size); 1032 DCHECK(0 <= bytes && bytes < kSimd128Size);
1030 return new (zone_) Operator1<int32_t>(IrOpcode::kS8x16Concat, Operator::kPure, 1033 return new (zone_) Operator1<int32_t>(IrOpcode::kS8x16Concat, Operator::kPure,
1031 "Concat", 2, 0, 0, 1, 0, 0, bytes); 1034 "Concat", 2, 0, 0, 1, 0, 0, bytes);
1032 } 1035 }
1033 1036
1034 } // namespace compiler 1037 } // namespace compiler
1035 } // namespace internal 1038 } // namespace internal
1036 } // namespace v8 1039 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698