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

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

Issue 2800523002: [WASM SIMD] Implement packing and unpacking integer conversions. (Closed)
Patch Set: Remove extraneous fn signature. 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 V(F32x4MinNum, Operator::kCommutative, 2, 0, 1) \ 247 V(F32x4MinNum, Operator::kCommutative, 2, 0, 1) \
248 V(F32x4MaxNum, Operator::kCommutative, 2, 0, 1) \ 248 V(F32x4MaxNum, Operator::kCommutative, 2, 0, 1) \
249 V(F32x4RecipRefine, Operator::kNoProperties, 2, 0, 1) \ 249 V(F32x4RecipRefine, Operator::kNoProperties, 2, 0, 1) \
250 V(F32x4RecipSqrtRefine, Operator::kNoProperties, 2, 0, 1) \ 250 V(F32x4RecipSqrtRefine, Operator::kNoProperties, 2, 0, 1) \
251 V(F32x4Eq, Operator::kCommutative, 2, 0, 1) \ 251 V(F32x4Eq, Operator::kCommutative, 2, 0, 1) \
252 V(F32x4Ne, Operator::kCommutative, 2, 0, 1) \ 252 V(F32x4Ne, Operator::kCommutative, 2, 0, 1) \
253 V(F32x4Lt, Operator::kNoProperties, 2, 0, 1) \ 253 V(F32x4Lt, Operator::kNoProperties, 2, 0, 1) \
254 V(F32x4Le, Operator::kNoProperties, 2, 0, 1) \ 254 V(F32x4Le, Operator::kNoProperties, 2, 0, 1) \
255 V(I32x4Splat, Operator::kNoProperties, 1, 0, 1) \ 255 V(I32x4Splat, Operator::kNoProperties, 1, 0, 1) \
256 V(I32x4SConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ 256 V(I32x4SConvertF32x4, Operator::kNoProperties, 1, 0, 1) \
257 V(I32x4SConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \
258 V(I32x4SConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \
257 V(I32x4Neg, Operator::kNoProperties, 1, 0, 1) \ 259 V(I32x4Neg, Operator::kNoProperties, 1, 0, 1) \
258 V(I32x4Add, Operator::kCommutative, 2, 0, 1) \ 260 V(I32x4Add, Operator::kCommutative, 2, 0, 1) \
259 V(I32x4Sub, Operator::kNoProperties, 2, 0, 1) \ 261 V(I32x4Sub, Operator::kNoProperties, 2, 0, 1) \
260 V(I32x4Mul, Operator::kCommutative, 2, 0, 1) \ 262 V(I32x4Mul, Operator::kCommutative, 2, 0, 1) \
261 V(I32x4MinS, Operator::kCommutative, 2, 0, 1) \ 263 V(I32x4MinS, Operator::kCommutative, 2, 0, 1) \
262 V(I32x4MaxS, Operator::kCommutative, 2, 0, 1) \ 264 V(I32x4MaxS, Operator::kCommutative, 2, 0, 1) \
263 V(I32x4Eq, Operator::kCommutative, 2, 0, 1) \ 265 V(I32x4Eq, Operator::kCommutative, 2, 0, 1) \
264 V(I32x4Ne, Operator::kCommutative, 2, 0, 1) \ 266 V(I32x4Ne, Operator::kCommutative, 2, 0, 1) \
265 V(I32x4LtS, Operator::kNoProperties, 2, 0, 1) \ 267 V(I32x4LtS, Operator::kNoProperties, 2, 0, 1) \
266 V(I32x4LeS, Operator::kNoProperties, 2, 0, 1) \ 268 V(I32x4LeS, Operator::kNoProperties, 2, 0, 1) \
267 V(I32x4UConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ 269 V(I32x4UConvertF32x4, Operator::kNoProperties, 1, 0, 1) \
270 V(I32x4UConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \
271 V(I32x4UConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \
268 V(I32x4MinU, Operator::kCommutative, 2, 0, 1) \ 272 V(I32x4MinU, Operator::kCommutative, 2, 0, 1) \
269 V(I32x4MaxU, Operator::kCommutative, 2, 0, 1) \ 273 V(I32x4MaxU, Operator::kCommutative, 2, 0, 1) \
270 V(I32x4LtU, Operator::kNoProperties, 2, 0, 1) \ 274 V(I32x4LtU, Operator::kNoProperties, 2, 0, 1) \
271 V(I32x4LeU, Operator::kNoProperties, 2, 0, 1) \ 275 V(I32x4LeU, Operator::kNoProperties, 2, 0, 1) \
272 V(I16x8Splat, Operator::kNoProperties, 1, 0, 1) \ 276 V(I16x8Splat, Operator::kNoProperties, 1, 0, 1) \
277 V(I16x8SConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \
278 V(I16x8SConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \
273 V(I16x8Neg, Operator::kNoProperties, 1, 0, 1) \ 279 V(I16x8Neg, Operator::kNoProperties, 1, 0, 1) \
280 V(I16x8SConvertI32x4, Operator::kNoProperties, 2, 0, 1) \
274 V(I16x8Add, Operator::kCommutative, 2, 0, 1) \ 281 V(I16x8Add, Operator::kCommutative, 2, 0, 1) \
275 V(I16x8AddSaturateS, Operator::kCommutative, 2, 0, 1) \ 282 V(I16x8AddSaturateS, Operator::kCommutative, 2, 0, 1) \
276 V(I16x8Sub, Operator::kNoProperties, 2, 0, 1) \ 283 V(I16x8Sub, Operator::kNoProperties, 2, 0, 1) \
277 V(I16x8SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ 284 V(I16x8SubSaturateS, Operator::kNoProperties, 2, 0, 1) \
278 V(I16x8Mul, Operator::kCommutative, 2, 0, 1) \ 285 V(I16x8Mul, Operator::kCommutative, 2, 0, 1) \
279 V(I16x8MinS, Operator::kCommutative, 2, 0, 1) \ 286 V(I16x8MinS, Operator::kCommutative, 2, 0, 1) \
280 V(I16x8MaxS, Operator::kCommutative, 2, 0, 1) \ 287 V(I16x8MaxS, Operator::kCommutative, 2, 0, 1) \
281 V(I16x8Eq, Operator::kCommutative, 2, 0, 1) \ 288 V(I16x8Eq, Operator::kCommutative, 2, 0, 1) \
282 V(I16x8Ne, Operator::kCommutative, 2, 0, 1) \ 289 V(I16x8Ne, Operator::kCommutative, 2, 0, 1) \
283 V(I16x8LtS, Operator::kNoProperties, 2, 0, 1) \ 290 V(I16x8LtS, Operator::kNoProperties, 2, 0, 1) \
284 V(I16x8LeS, Operator::kNoProperties, 2, 0, 1) \ 291 V(I16x8LeS, Operator::kNoProperties, 2, 0, 1) \
292 V(I16x8UConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \
293 V(I16x8UConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \
294 V(I16x8UConvertI32x4, Operator::kNoProperties, 2, 0, 1) \
285 V(I16x8AddSaturateU, Operator::kCommutative, 2, 0, 1) \ 295 V(I16x8AddSaturateU, Operator::kCommutative, 2, 0, 1) \
286 V(I16x8SubSaturateU, Operator::kNoProperties, 2, 0, 1) \ 296 V(I16x8SubSaturateU, Operator::kNoProperties, 2, 0, 1) \
287 V(I16x8MinU, Operator::kCommutative, 2, 0, 1) \ 297 V(I16x8MinU, Operator::kCommutative, 2, 0, 1) \
288 V(I16x8MaxU, Operator::kCommutative, 2, 0, 1) \ 298 V(I16x8MaxU, Operator::kCommutative, 2, 0, 1) \
289 V(I16x8LtU, Operator::kNoProperties, 2, 0, 1) \ 299 V(I16x8LtU, Operator::kNoProperties, 2, 0, 1) \
290 V(I16x8LeU, Operator::kNoProperties, 2, 0, 1) \ 300 V(I16x8LeU, Operator::kNoProperties, 2, 0, 1) \
291 V(I8x16Splat, Operator::kNoProperties, 1, 0, 1) \ 301 V(I8x16Splat, Operator::kNoProperties, 1, 0, 1) \
292 V(I8x16Neg, Operator::kNoProperties, 1, 0, 1) \ 302 V(I8x16Neg, Operator::kNoProperties, 1, 0, 1) \
303 V(I8x16SConvertI16x8, Operator::kNoProperties, 2, 0, 1) \
293 V(I8x16Add, Operator::kCommutative, 2, 0, 1) \ 304 V(I8x16Add, Operator::kCommutative, 2, 0, 1) \
294 V(I8x16AddSaturateS, Operator::kCommutative, 2, 0, 1) \ 305 V(I8x16AddSaturateS, Operator::kCommutative, 2, 0, 1) \
295 V(I8x16Sub, Operator::kNoProperties, 2, 0, 1) \ 306 V(I8x16Sub, Operator::kNoProperties, 2, 0, 1) \
296 V(I8x16SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ 307 V(I8x16SubSaturateS, Operator::kNoProperties, 2, 0, 1) \
297 V(I8x16Mul, Operator::kCommutative, 2, 0, 1) \ 308 V(I8x16Mul, Operator::kCommutative, 2, 0, 1) \
298 V(I8x16MinS, Operator::kCommutative, 2, 0, 1) \ 309 V(I8x16MinS, Operator::kCommutative, 2, 0, 1) \
299 V(I8x16MaxS, Operator::kCommutative, 2, 0, 1) \ 310 V(I8x16MaxS, Operator::kCommutative, 2, 0, 1) \
300 V(I8x16Eq, Operator::kCommutative, 2, 0, 1) \ 311 V(I8x16Eq, Operator::kCommutative, 2, 0, 1) \
301 V(I8x16Ne, Operator::kCommutative, 2, 0, 1) \ 312 V(I8x16Ne, Operator::kCommutative, 2, 0, 1) \
302 V(I8x16LtS, Operator::kNoProperties, 2, 0, 1) \ 313 V(I8x16LtS, Operator::kNoProperties, 2, 0, 1) \
303 V(I8x16LeS, Operator::kNoProperties, 2, 0, 1) \ 314 V(I8x16LeS, Operator::kNoProperties, 2, 0, 1) \
315 V(I8x16UConvertI16x8, Operator::kNoProperties, 2, 0, 1) \
304 V(I8x16AddSaturateU, Operator::kCommutative, 2, 0, 1) \ 316 V(I8x16AddSaturateU, Operator::kCommutative, 2, 0, 1) \
305 V(I8x16SubSaturateU, Operator::kNoProperties, 2, 0, 1) \ 317 V(I8x16SubSaturateU, Operator::kNoProperties, 2, 0, 1) \
306 V(I8x16MinU, Operator::kCommutative, 2, 0, 1) \ 318 V(I8x16MinU, Operator::kCommutative, 2, 0, 1) \
307 V(I8x16MaxU, Operator::kCommutative, 2, 0, 1) \ 319 V(I8x16MaxU, Operator::kCommutative, 2, 0, 1) \
308 V(I8x16LtU, Operator::kNoProperties, 2, 0, 1) \ 320 V(I8x16LtU, Operator::kNoProperties, 2, 0, 1) \
309 V(I8x16LeU, Operator::kNoProperties, 2, 0, 1) \ 321 V(I8x16LeU, Operator::kNoProperties, 2, 0, 1) \
310 V(S128Load, Operator::kNoProperties, 2, 0, 1) \ 322 V(S128Load, Operator::kNoProperties, 2, 0, 1) \
311 V(S128Store, Operator::kNoProperties, 3, 0, 1) \ 323 V(S128Store, Operator::kNoProperties, 3, 0, 1) \
312 V(S128Zero, Operator::kNoProperties, 0, 0, 1) \ 324 V(S128Zero, Operator::kNoProperties, 0, 0, 1) \
313 V(S128And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 325 V(S128And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 return new (zone_) \ 958 return new (zone_) \
947 Operator1<uint32_t>(IrOpcode::kS##format##Swizzle, Operator::kPure, \ 959 Operator1<uint32_t>(IrOpcode::kS##format##Swizzle, Operator::kPure, \
948 "Swizzle", 2, 0, 0, 1, 0, 0, swizzle); \ 960 "Swizzle", 2, 0, 0, 1, 0, 0, swizzle); \
949 } 961 }
950 SIMD_FORMAT_LIST(SIMD_PERMUTE_OPS) 962 SIMD_FORMAT_LIST(SIMD_PERMUTE_OPS)
951 #undef SIMD_PERMUTE_OPS 963 #undef SIMD_PERMUTE_OPS
952 964
953 } // namespace compiler 965 } // namespace compiler
954 } // namespace internal 966 } // namespace internal
955 } // namespace v8 967 } // 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