v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next > Class Template Reference

#include <dead-code-elimination-reducer.h>

Inheritance diagram for v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >:
Collaboration diagram for v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >:

Public Types

using Adapter = UniformReducerAdapter<DeadCodeEliminationReducer, Next>
 

Public Member Functions

bool CanAutoInlineBlocksWithSinglePredecessor () const
 
void Analyze ()
 
V< None > REDUCE_INPUT_GRAPH Branch (V< None > ig_index, const BranchOp &branch)
 
V< None > REDUCE_INPUT_GRAPH Goto (V< None > ig_index, const GotoOp &gto)
 
template<typename Op , typename Continuation >
OpIndex ReduceInputGraphOperation (OpIndex ig_index, const Op &op)
 
bool IsLeafFunction () const
 
- Public Member Functions inherited from v8::internal::compiler::turboshaft::UniformReducerAdapter< DeadCodeEliminationReducer, Next >
auto ReduceOperation (Args... args)
 
auto ReduceInputGraphOperation (OpIndex ig_index, const Op &operation)
 

Private Member Functions

bool TryRewriteBranch (OpIndex index)
 

Private Attributes

std::optional< FixedOpIndexSidetable< OperationState::Liveness > > liveness_
 
SparseOpIndexSideTable< BlockIndexbranch_rewrite_targets_
 
DeadCodeAnalysis analyzer_
 

Detailed Description

template<class Next>
class v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >

Definition at line 418 of file dead-code-elimination-reducer.h.

Member Typedef Documentation

◆ Adapter

Member Function Documentation

◆ Analyze()

template<class Next >
void v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::Analyze ( )
inline

Definition at line 432 of file dead-code-elimination-reducer.h.

Here is the call graph for this function:

◆ Branch()

template<class Next >
V< None > REDUCE_INPUT_GRAPH v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::Branch ( V< None > ig_index,
const BranchOp & branch )
inline

Definition at line 440 of file dead-code-elimination-reducer.h.

Here is the call graph for this function:

◆ CanAutoInlineBlocksWithSinglePredecessor()

template<class Next >
bool v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::CanAutoInlineBlocksWithSinglePredecessor ( ) const
inline

Definition at line 430 of file dead-code-elimination-reducer.h.

◆ Goto()

template<class Next >
V< None > REDUCE_INPUT_GRAPH v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::Goto ( V< None > ig_index,
const GotoOp & gto )
inline

Definition at line 445 of file dead-code-elimination-reducer.h.

Here is the call graph for this function:

◆ IsLeafFunction()

template<class Next >
bool v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::IsLeafFunction ( ) const
inline

Definition at line 458 of file dead-code-elimination-reducer.h.

Here is the call graph for this function:

◆ ReduceInputGraphOperation()

template<class Next >
template<typename Op , typename Continuation >
OpIndex v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::ReduceInputGraphOperation ( OpIndex ig_index,
const Op & op )
inline

Definition at line 451 of file dead-code-elimination-reducer.h.

Here is the call graph for this function:

◆ TryRewriteBranch()

template<class Next >
bool v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::TryRewriteBranch ( OpIndex index)
inlineprivate

Definition at line 461 of file dead-code-elimination-reducer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ analyzer_

template<class Next >
DeadCodeAnalysis v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::analyzer_
private
Initial value:
{Asm().modifiable_input_graph(),
Asm().phase_zone()}

Definition at line 472 of file dead-code-elimination-reducer.h.

◆ branch_rewrite_targets_

template<class Next >
SparseOpIndexSideTable<BlockIndex> v8::internal::compiler::turboshaft::DeadCodeEliminationReducer< Next >::branch_rewrite_targets_
private
Initial value:
{
Asm().phase_zone(), &Asm().input_graph()}

Definition at line 470 of file dead-code-elimination-reducer.h.

◆ liveness_

Definition at line 469 of file dead-code-elimination-reducer.h.


The documentation for this class was generated from the following file: