v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
simplify-tf-loops.h
Go to the documentation of this file.
1
// Copyright 2022 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_TURBOSHAFT_SIMPLIFY_TF_LOOPS_H_
6
#define V8_COMPILER_TURBOSHAFT_SIMPLIFY_TF_LOOPS_H_
7
8
#include "
src/compiler/graph-reducer.h
"
9
10
namespace
v8::internal::compiler
{
11
12
class
MachineGraph;
13
14
// Constrain loop nodes to have at most two inputs, by introducing additional
15
// merges as needed.
16
class
SimplifyTFLoops
final :
public
AdvancedReducer
{
17
public
:
18
SimplifyTFLoops
(
Editor
* editor,
MachineGraph
* mcgraph)
19
:
AdvancedReducer
(editor),
mcgraph_
(mcgraph) {}
20
21
const
char
*
reducer_name
()
const override
{
return
"SimplifyTFLoops"
; }
22
23
Reduction
Reduce
(
Node
* node)
final
;
24
25
private
:
26
MachineGraph
*
const
mcgraph_
;
27
};
28
29
}
// namespace v8::internal::compiler
30
31
#endif
// V8_COMPILER_TURBOSHAFT_SIMPLIFY_TF_LOOPS_H_
v8::internal::compiler::AdvancedReducer::Editor
Definition
graph-reducer.h:85
v8::internal::compiler::AdvancedReducer
Definition
graph-reducer.h:82
v8::internal::compiler::MachineGraph
Definition
machine-graph.h:24
v8::internal::compiler::Node
Definition
node.h:41
v8::internal::compiler::Reduction
Definition
graph-reducer.h:34
v8::internal::compiler::SimplifyTFLoops
Definition
simplify-tf-loops.h:16
v8::internal::compiler::SimplifyTFLoops::mcgraph_
MachineGraph *const mcgraph_
Definition
simplify-tf-loops.h:26
v8::internal::compiler::SimplifyTFLoops::SimplifyTFLoops
SimplifyTFLoops(Editor *editor, MachineGraph *mcgraph)
Definition
simplify-tf-loops.h:18
v8::internal::compiler::SimplifyTFLoops::Reduce
Reduction Reduce(Node *node) final
Definition
simplify-tf-loops.cc:13
v8::internal::compiler::SimplifyTFLoops::reducer_name
const char * reducer_name() const override
Definition
simplify-tf-loops.h:21
graph-reducer.h
v8::internal::compiler
Definition
builtins-utils-gen.h:14
src
compiler
turboshaft
simplify-tf-loops.h
Generated on Sun Apr 6 2025 21:08:52 for v8 by
1.12.0