| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef V8_COMPILER_SIMD_LOWERING_H_ | |
| 6 #define V8_COMPILER_SIMD_LOWERING_H_ | |
| 7 | |
| 8 #include "src/compiler/graph-reducer.h" | |
| 9 #include "src/compiler/wasm-compiler.h" | |
| 10 #include "src/runtime/runtime.h" | |
| 11 | |
| 12 namespace v8 { | |
| 13 namespace internal { | |
| 14 namespace compiler { | |
| 15 | |
| 16 typedef Signature<Conversion> ConversionSignature; | |
| 17 | |
| 18 class SimdLowering final : public Reducer { | |
| 19 public: | |
| 20 SimdLowering(Zone* zone, WasmGraphBuilder* builder) | |
| 21 : builder_(builder), zone_(zone) { | |
| 22 InitializeSignatures(); | |
| 23 } | |
| 24 virtual ~SimdLowering(); | |
| 25 Reduction Reduce(Node* node) override; | |
| 26 | |
| 27 private: | |
| 28 WasmGraphBuilder* builder_; | |
| 29 Zone* zone_; | |
| 30 | |
| 31 void InitializeSignatures(); | |
| 32 }; | |
| 33 | |
| 34 } // namespace compiler | |
| 35 } // namespace internal | |
| 36 } // namespace v8 | |
| 37 | |
| 38 #endif // V8_COMPILER_SIMD_LOWERING_H_ | |
| OLD | NEW |