| Index: src/compiler/simd-lowering.h
|
| diff --git a/src/compiler/simd-lowering.h b/src/compiler/simd-lowering.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..774c5b22e3746c7184beb1178ff56d82e4d8a995
|
| --- /dev/null
|
| +++ b/src/compiler/simd-lowering.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright 2016 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef V8_COMPILER_SIMD_LOWERING_H_
|
| +#define V8_COMPILER_SIMD_LOWERING_H_
|
| +
|
| +#include "src/compiler/graph-reducer.h"
|
| +#include "src/compiler/wasm-compiler.h"
|
| +#include "src/runtime/runtime.h"
|
| +
|
| +namespace v8 {
|
| +namespace internal {
|
| +namespace compiler {
|
| +
|
| +// Forward declarations.
|
| +class JSGraph;
|
| +class MachineOperatorBuilder;
|
| +
|
| +class SimdLowering final : public Reducer {
|
| + public:
|
| + SimdLowering(JSGraph* jsgraph, WasmGraphBuilder* builder,
|
| + Handle<Context> context)
|
| + : jsgraph_(jsgraph), builder_(builder), context_(context) {}
|
| + virtual ~SimdLowering();
|
| +
|
| + Reduction Reduce(Node* node) override;
|
| +
|
| + private:
|
| + enum Conversion { kNone, kOpaque, kInt32, kFloat32, kFloat64 };
|
| + Reduction ChangeToRuntimeCall(Node* node, Runtime::FunctionId f,
|
| + Conversion* signature);
|
| +
|
| + JSGraph* jsgraph() const { return jsgraph_; }
|
| +
|
| + JSGraph* const jsgraph_;
|
| + WasmGraphBuilder* builder_;
|
| + Handle<Context> context_;
|
| +};
|
| +
|
| +} // namespace compiler
|
| +} // namespace internal
|
| +} // namespace v8
|
| +
|
| +#endif // V8_COMPILER_SIMD_LOWERING_H_
|
|
|