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

#include <wasm-shuffle-reducer.h>

Collaboration diagram for v8::internal::compiler::turboshaft::DemandedElementAnalysis:

Public Types

using LaneBitSet = std::bitset<16>
 
using DemandedElementMap
 

Public Member Functions

 DemandedElementAnalysis (Zone *phase_zone, const Graph &input_graph)
 
void AddUnaryOp (const Simd128UnaryOp &unop, LaneBitSet lanes)
 
void AddBinaryOp (const Simd128BinopOp &binop, LaneBitSet lanes)
 
void RecordOp (const Operation *op, LaneBitSet lanes)
 
const DemandedElementMapdemanded_elements () const
 
const Graphinput_graph () const
 
bool Visited (const Operation *op) const
 

Static Public Attributes

static constexpr uint16_t k8x16 = 0xFFFF
 
static constexpr uint16_t k8x8Low = 0xFF
 
static constexpr uint16_t k8x4Low = 0xF
 
static constexpr uint16_t k8x2Low = 0x3
 

Private Attributes

Zonephase_zone_
 
const Graphinput_graph_
 
DemandedElementMap demanded_elements_ {phase_zone_}
 
ZoneUnorderedSet< const Operation * > visited_ {phase_zone_}
 

Detailed Description

Definition at line 43 of file wasm-shuffle-reducer.h.

Member Typedef Documentation

◆ DemandedElementMap

Initial value:
ZoneVector<std::pair<const Operation*, LaneBitSet>>

Definition at line 51 of file wasm-shuffle-reducer.h.

◆ LaneBitSet

Constructor & Destructor Documentation

◆ DemandedElementAnalysis()

v8::internal::compiler::turboshaft::DemandedElementAnalysis::DemandedElementAnalysis ( Zone * phase_zone,
const Graph & input_graph )
inline

Definition at line 54 of file wasm-shuffle-reducer.h.

Member Function Documentation

◆ AddBinaryOp()

void v8::internal::compiler::turboshaft::DemandedElementAnalysis::AddBinaryOp ( const Simd128BinopOp & binop,
LaneBitSet lanes )

Definition at line 42 of file wasm-shuffle-reducer.cc.

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

◆ AddUnaryOp()

void v8::internal::compiler::turboshaft::DemandedElementAnalysis::AddUnaryOp ( const Simd128UnaryOp & unop,
LaneBitSet lanes )

Definition at line 11 of file wasm-shuffle-reducer.cc.

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

◆ demanded_elements()

const DemandedElementMap & v8::internal::compiler::turboshaft::DemandedElementAnalysis::demanded_elements ( ) const
inline

Definition at line 61 of file wasm-shuffle-reducer.h.

Here is the caller graph for this function:

◆ input_graph()

const Graph & v8::internal::compiler::turboshaft::DemandedElementAnalysis::input_graph ( ) const
inline

Definition at line 65 of file wasm-shuffle-reducer.h.

Here is the caller graph for this function:

◆ RecordOp()

void v8::internal::compiler::turboshaft::DemandedElementAnalysis::RecordOp ( const Operation * op,
LaneBitSet lanes )

Definition at line 71 of file wasm-shuffle-reducer.cc.

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

◆ Visited()

bool v8::internal::compiler::turboshaft::DemandedElementAnalysis::Visited ( const Operation * op) const
inline

Definition at line 67 of file wasm-shuffle-reducer.h.

Here is the caller graph for this function:

Member Data Documentation

◆ demanded_elements_

DemandedElementMap v8::internal::compiler::turboshaft::DemandedElementAnalysis::demanded_elements_ {phase_zone_}
private

Definition at line 72 of file wasm-shuffle-reducer.h.

◆ input_graph_

const Graph& v8::internal::compiler::turboshaft::DemandedElementAnalysis::input_graph_
private

Definition at line 71 of file wasm-shuffle-reducer.h.

◆ k8x16

uint16_t v8::internal::compiler::turboshaft::DemandedElementAnalysis::k8x16 = 0xFFFF
staticconstexpr

Definition at line 45 of file wasm-shuffle-reducer.h.

◆ k8x2Low

uint16_t v8::internal::compiler::turboshaft::DemandedElementAnalysis::k8x2Low = 0x3
staticconstexpr

Definition at line 48 of file wasm-shuffle-reducer.h.

◆ k8x4Low

uint16_t v8::internal::compiler::turboshaft::DemandedElementAnalysis::k8x4Low = 0xF
staticconstexpr

Definition at line 47 of file wasm-shuffle-reducer.h.

◆ k8x8Low

uint16_t v8::internal::compiler::turboshaft::DemandedElementAnalysis::k8x8Low = 0xFF
staticconstexpr

Definition at line 46 of file wasm-shuffle-reducer.h.

◆ phase_zone_

Zone* v8::internal::compiler::turboshaft::DemandedElementAnalysis::phase_zone_
private

Definition at line 70 of file wasm-shuffle-reducer.h.

◆ visited_

ZoneUnorderedSet<const Operation*> v8::internal::compiler::turboshaft::DemandedElementAnalysis::visited_ {phase_zone_}
private

Definition at line 73 of file wasm-shuffle-reducer.h.


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