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

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

Issue 2847663005: [WASM SIMD] Replace primitive shuffles with general Shuffle. (Closed)
Patch Set: Rebase. Created 3 years, 7 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/opcodes.h ('k') | src/compiler/wasm-compiler.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 #ifndef V8_COMPILER_WASM_COMPILER_H_ 5 #ifndef V8_COMPILER_WASM_COMPILER_H_
6 #define V8_COMPILER_WASM_COMPILER_H_ 6 #define V8_COMPILER_WASM_COMPILER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 // Clients of this interface shouldn't depend on lots of compiler internals. 10 // Clients of this interface shouldn't depend on lots of compiler internals.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 Node* S1x16Zero(); 245 Node* S1x16Zero();
246 246
247 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); 247 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs);
248 248
249 Node* SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane, 249 Node* SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane,
250 const NodeVector& inputs); 250 const NodeVector& inputs);
251 251
252 Node* SimdShiftOp(wasm::WasmOpcode opcode, uint8_t shift, 252 Node* SimdShiftOp(wasm::WasmOpcode opcode, uint8_t shift,
253 const NodeVector& inputs); 253 const NodeVector& inputs);
254 254
255 Node* SimdConcatOp(uint8_t bytes, const NodeVector& inputs); 255 Node* SimdShuffleOp(uint8_t shuffle[16], unsigned lanes,
256 const NodeVector& inputs);
256 257
257 bool has_simd() const { return has_simd_; } 258 bool has_simd() const { return has_simd_; }
258 259
259 wasm::ModuleEnv* module_env() const { return module_; } 260 wasm::ModuleEnv* module_env() const { return module_; }
260 261
261 private: 262 private:
262 static const int kDefaultBufferSize = 16; 263 static const int kDefaultBufferSize = 16;
263 friend class WasmTrapHelper; 264 friend class WasmTrapHelper;
264 265
265 Zone* zone_; 266 Zone* zone_;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 } 401 }
401 402
402 int AddParameterNodes(Node** args, int pos, int param_count, 403 int AddParameterNodes(Node** args, int pos, int param_count,
403 wasm::FunctionSig* sig); 404 wasm::FunctionSig* sig);
404 }; 405 };
405 } // namespace compiler 406 } // namespace compiler
406 } // namespace internal 407 } // namespace internal
407 } // namespace v8 408 } // namespace v8
408 409
409 #endif // V8_COMPILER_WASM_COMPILER_H_ 410 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698