Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
dart::SimdOpInstr Class Reference

#include <il.h>

Inheritance diagram for dart::SimdOpInstr:
dart::Definition dart::Instruction dart::ZoneAllocated

Public Types

enum  Kind { kIllegalSimdOp }
 
- Public Types inherited from dart::Instruction
enum  Tag { FOR_EACH_INSTRUCTION =(DECLARE_TAG) kNumInstructions }
 
enum  SpeculativeMode { kGuardInputs , kNotSpeculative }
 
using InputsIterable = InstructionIndexedPropertyIterable< InputsTrait >
 
using SuccessorsIterable = InstructionIndexedPropertyIterable< SuccessorsTrait >
 

Public Member Functions

virtual intptr_t InputCount () const
 
virtual ValueInputAt (intptr_t i) const
 
Kind kind () const
 
intptr_t mask () const
 
virtual Representation representation () const
 
virtual Representation RequiredInputRepresentation (intptr_t idx) const
 
virtual CompileType ComputeType () const
 
virtual bool MayThrow () const
 
virtual bool ComputeCanDeoptimize () const
 
virtual intptr_t DeoptimizationTarget () const
 
virtual bool HasUnknownSideEffects () const
 
virtual bool AllowsCSE () const
 
virtual bool AttributesEqual (const Instruction &other) const
 
virtual DefinitionCanonicalize (FlowGraph *flow_graph)
 
- Public Member Functions inherited from dart::Definition
 Definition (intptr_t deopt_id=DeoptId::kNone)
 
 Definition (const InstructionSource &source, intptr_t deopt_id=DeoptId::kNone)
 
virtual intptr_t CallCount () const
 
intptr_t temp_index () const
 
void set_temp_index (intptr_t index)
 
void ClearTempIndex ()
 
bool HasTemp () const
 
intptr_t ssa_temp_index () const
 
void set_ssa_temp_index (intptr_t index)
 
bool HasSSATemp () const
 
void ClearSSATempIndex ()
 
intptr_t vreg (intptr_t index) const
 
intptr_t location_count () const
 
bool HasPairRepresentation () const
 
CompileTypeType ()
 
bool HasType () const
 
bool IsInt64Definition ()
 
bool IsInt32Definition ()
 
virtual CompileType ComputeType () const
 
virtual bool RecomputeType ()
 
PRINT_OPERANDS_TO_SUPPORT PRINT_TO_SUPPORT bool UpdateType (CompileType new_type)
 
bool HasUses () const
 
bool HasOnlyUse (Value *use) const
 
bool HasOnlyInputUse (Value *use) const
 
Valueinput_use_list () const
 
void set_input_use_list (Value *head)
 
Valueenv_use_list () const
 
void set_env_use_list (Value *head)
 
ValueListIterable input_uses () const
 
void AddInputUse (Value *value)
 
void AddEnvUse (Value *value)
 
virtual bool MayCreateUnsafeUntaggedPointer () const
 
virtual bool CanReplaceWithConstant () const
 
virtual bool CanEliminate (const BlockEntryInstr *block) const
 
void ReplaceUsesWith (Definition *other)
 
void ReplaceWithResult (Instruction *replacement, Definition *replacement_for_uses, ForwardInstructionIterator *iterator)
 
void ReplaceWith (Definition *other, ForwardInstructionIterator *iterator)
 
Objectconstant_value ()
 
virtual void InferRange (RangeAnalysis *analysis, Range *range)
 
Rangerange () const
 
void set_range (const Range &)
 
virtual DefinitionCanonicalize (FlowGraph *flow_graph)
 
DefinitionReplacement ()
 
void SetReplacement (Definition *other)
 
virtual AliasIdentity Identity () const
 
virtual void SetIdentity (AliasIdentity identity)
 
DefinitionOriginalDefinition ()
 
virtual ValueRedefinedValue () const
 
DefinitionOriginalDefinitionIgnoreBoxingAndConstraints ()
 
virtual DefinitionAsDefinition ()
 
virtual const DefinitionAsDefinition () const
 
- Public Member Functions inherited from dart::Instruction
 Instruction (const InstructionSource &source, intptr_t deopt_id=DeoptId::kNone)
 
 Instruction (intptr_t deopt_id=DeoptId::kNone)
 
virtual ~Instruction ()
 
virtual Tag tag () const =0
 
virtual intptr_t statistics_tag () const
 
intptr_t deopt_id () const
 
virtual TokenPosition token_pos () const
 
InstructionSource source () const
 
virtual intptr_t InputCount () const =0
 
virtual ValueInputAt (intptr_t i) const =0
 
void SetInputAt (intptr_t i, Value *value)
 
InputsIterable inputs ()
 
void UnuseAllInputs ()
 
virtual intptr_t ArgumentCount () const
 
ValueArgumentValueAt (intptr_t index) const
 
DefinitionArgumentAt (intptr_t index) const
 
virtual void SetMoveArguments (MoveArgumentsArray *move_arguments)
 
virtual MoveArgumentsArrayGetMoveArguments () const
 
virtual void ReplaceInputsWithMoveArguments (MoveArgumentsArray *move_arguments)
 
bool HasMoveArguments () const
 
void RepairArgumentUsesInEnvironment () const
 
virtual bool ComputeCanDeoptimize () const =0
 
virtual bool ComputeCanDeoptimizeAfterCall () const
 
bool CanDeoptimize () const
 
virtual void Accept (InstructionVisitor *visitor)=0
 
Instructionprevious () const
 
void set_previous (Instruction *instr)
 
Instructionnext () const
 
void set_next (Instruction *instr)
 
void LinkTo (Instruction *next)
 
InstructionRemoveFromGraph (bool return_previous=true)
 
virtual intptr_t SuccessorCount () const
 
virtual BlockEntryInstrSuccessorAt (intptr_t index) const
 
SuccessorsIterable successors () const
 
void Goto (JoinEntryInstr *entry)
 
virtual const char * DebugName () const =0
 
void CheckField (const Field &field) const
 
const char * ToCString () const
 
 DECLARE_INSTRUCTION_TYPE_CHECK (BlockEntryWithInitialDefs, BlockEntryWithInitialDefs) template< typename T > T *Cast()
 
template<typename T >
const TCast () const
 
LocationSummarylocs ()
 
bool HasLocs () const
 
virtual LocationSummaryMakeLocationSummary (Zone *zone, bool is_optimizing) const =0
 
void InitializeLocationSummary (Zone *zone, bool optimizing)
 
virtual void EmitNativeCode (FlowGraphCompiler *compiler)
 
Environmentenv () const
 
void SetEnvironment (Environment *deopt_env)
 
void RemoveEnvironment ()
 
void ReplaceInEnvironment (Definition *current, Definition *replacement)
 
virtual intptr_t NumberOfInputsConsumedBeforeCall () const
 
intptr_t GetPassSpecificId (CompilerPass::Id pass) const
 
void SetPassSpecificId (CompilerPass::Id pass, intptr_t id)
 
bool HasPassSpecificId (CompilerPass::Id pass) const
 
bool HasUnmatchedInputRepresentations () const
 
virtual Representation RequiredInputRepresentation (intptr_t idx) const
 
SpeculativeMode SpeculativeModeOfInputs () const
 
virtual SpeculativeMode SpeculativeModeOfInput (intptr_t index) const
 
virtual Representation representation () const
 
bool WasEliminated () const
 
virtual intptr_t DeoptimizationTarget () const
 
virtual InstructionCanonicalize (FlowGraph *flow_graph)
 
void InsertBefore (Instruction *next)
 
void InsertAfter (Instruction *prev)
 
InstructionAppendInstruction (Instruction *tail)
 
virtual bool AllowsCSE () const
 
virtual bool HasUnknownSideEffects () const =0
 
virtual bool CanCallDart () const
 
virtual bool CanTriggerGC () const
 
virtual BlockEntryInstrGetBlock ()
 
virtual intptr_t inlining_id () const
 
virtual void set_inlining_id (intptr_t value)
 
virtual bool has_inlining_id () const
 
virtual uword Hash () const
 
bool Equals (const Instruction &other) const
 
virtual bool AttributesEqual (const Instruction &other) const
 
void InheritDeoptTarget (Zone *zone, Instruction *other)
 
bool NeedsEnvironment () const
 
virtual bool CanBecomeDeoptimizationTarget () const
 
void InheritDeoptTargetAfter (FlowGraph *flow_graph, Definition *call, Definition *result)
 
virtual bool MayThrow () const =0
 
virtual bool MayHaveVisibleEffect () const
 
virtual bool CanEliminate (const BlockEntryInstr *block) const
 
bool CanEliminate ()
 
bool IsDominatedBy (Instruction *dom)
 
void ClearEnv ()
 
void Unsupported (FlowGraphCompiler *compiler)
 
virtual bool UseSharedSlowPathStub (bool is_optimizing) const
 
Location::Kind RegisterKindForResult () const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Static Public Member Functions

static SimdOpInstrCreateFromCall (Zone *zone, MethodRecognizer::Kind kind, Definition *receiver, Instruction *call, intptr_t mask=0)
 
static SimdOpInstrCreateFromFactoryCall (Zone *zone, MethodRecognizer::Kind kind, Instruction *call)
 
static SimdOpInstrCreate (Kind kind, Value *left, Value *right, intptr_t deopt_id)
 
static SimdOpInstrCreate (MethodRecognizer::Kind kind, Value *left, Value *right, intptr_t deopt_id)
 
static SimdOpInstrCreate (MethodRecognizer::Kind kind, Value *left, intptr_t deopt_id)
 
static Kind KindForOperator (MethodRecognizer::Kind kind)
 
static Kind KindForMethod (MethodRecognizer::Kind method_kind)
 
static Kind KindForOperator (intptr_t cid, Token::Kind op)
 
- Static Public Member Functions inherited from dart::Definition
static bool IsArrayLength (Definition *def)
 
- Static Public Member Functions inherited from dart::Instruction
static const ICDataGetICData (const ZoneGrowableArray< const ICData * > &ic_data_array, intptr_t deopt_id, bool is_static_call)
 
static LocationSummaryMakeCallSummary (Zone *zone, const Instruction *instr, LocationSummary *locs=nullptr)
 
static bool SlowPathSharingSupported (bool is_optimizing)
 

Private Member Functions

virtual void RawSetInputAt (intptr_t i, Value *value)
 

Additional Inherited Members

- Static Public Attributes inherited from dart::Definition
static constexpr intptr_t kReplacementMarker = -2
 
- Static Public Attributes inherited from dart::Instruction
static const intptr_t kInstructionAttrs [kNumInstructions]
 
- Protected Member Functions inherited from dart::Definition
void set_type (CompileType *type)
 
- Protected Member Functions inherited from dart::Instruction
intptr_t GetDeoptId () const
 
virtual void CopyDeoptIdFrom (const Instruction &instr)
 
void WriteExtraWithoutInputs (FlowGraphSerializer *s)
 
void ReadExtraWithoutInputs (FlowGraphDeserializer *d)
 
- Protected Attributes inherited from dart::Definition
Rangerange_ = nullptr
 

Detailed Description

Definition at line 11300 of file il.h.

Member Enumeration Documentation

◆ Kind

Enumerator
kIllegalSimdOp 

Definition at line 11302 of file il.h.

11302 {
11303#define DECLARE_ENUM(Arity, Mask, Name, ...) k##Name,
11305#undef DECLARE_ENUM
11307 };
#define DECLARE_ENUM(Arity, Mask, Name,...)
Definition: il.h:11303
#define SIMD_OP_LIST(M, BINARY_OP)
Definition: il.h:11249

Member Function Documentation

◆ AllowsCSE()

virtual bool dart::SimdOpInstr::AllowsCSE ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 11379 of file il.h.

11379{ return true; }

◆ AttributesEqual()

virtual bool dart::SimdOpInstr::AttributesEqual ( const Instruction other) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 11381 of file il.h.

11381 {
11382 auto const other_op = other.AsSimdOp();
11383 return kind() == other_op->kind() &&
11384 (!HasMask() || mask() == other_op->mask());
11385 }
intptr_t mask() const
Definition: il.h:11359
Kind kind() const
Definition: il.h:11358

◆ Canonicalize()

Definition * dart::SimdOpInstr::Canonicalize ( FlowGraph flow_graph)
virtual

Reimplemented from dart::Definition.

Definition at line 8465 of file il.cc.

8465 {
8466 if ((kind() == SimdOpInstr::kFloat64x2FromDoubles) &&
8467 InputAt(0)->BindsToConstant() && InputAt(1)->BindsToConstant()) {
8468 const Object& x = InputAt(0)->BoundConstant();
8469 const Object& y = InputAt(1)->BoundConstant();
8470 if (x.IsDouble() && y.IsDouble()) {
8472 Double::Cast(x).value(), Double::Cast(y).value(), Heap::kOld));
8473 result ^= result.Canonicalize(Thread::Current());
8474 return flow_graph->GetConstant(result, kUnboxedFloat64x2);
8475 }
8476 }
8477 if ((kind() == SimdOpInstr::kFloat32x4FromDoubles) &&
8478 InputAt(0)->BindsToConstant() && InputAt(1)->BindsToConstant() &&
8479 InputAt(2)->BindsToConstant() && InputAt(3)->BindsToConstant()) {
8480 const Object& x = InputAt(0)->BoundConstant();
8481 const Object& y = InputAt(1)->BoundConstant();
8482 const Object& z = InputAt(2)->BoundConstant();
8483 const Object& w = InputAt(3)->BoundConstant();
8484 if (x.IsDouble() && y.IsDouble() && z.IsDouble() && w.IsDouble()) {
8486 Double::Cast(x).value(), Double::Cast(y).value(),
8487 Double::Cast(z).value(), Double::Cast(w).value(), Heap::kOld));
8488 result ^= result.Canonicalize(Thread::Current());
8489 return flow_graph->GetConstant(result, kUnboxedFloat32x4);
8490 }
8491 }
8492 if ((kind() == SimdOpInstr::kInt32x4FromInts) &&
8493 InputAt(0)->BindsToConstant() && InputAt(1)->BindsToConstant() &&
8494 InputAt(2)->BindsToConstant() && InputAt(3)->BindsToConstant()) {
8495 const Object& x = InputAt(0)->BoundConstant();
8496 const Object& y = InputAt(1)->BoundConstant();
8497 const Object& z = InputAt(2)->BoundConstant();
8498 const Object& w = InputAt(3)->BoundConstant();
8499 if (x.IsInteger() && y.IsInteger() && z.IsInteger() && w.IsInteger()) {
8501 Integer::Cast(x).AsInt64Value(), Integer::Cast(y).AsInt64Value(),
8502 Integer::Cast(z).AsInt64Value(), Integer::Cast(w).AsInt64Value(),
8503 Heap::kOld));
8504 result ^= result.Canonicalize(Thread::Current());
8505 return flow_graph->GetConstant(result, kUnboxedInt32x4);
8506 }
8507 }
8508
8509 return this;
8510}
static Float32x4Ptr New(float value0, float value1, float value2, float value3, Heap::Space space=Heap::kNew)
Definition: object.cc:25307
static Float64x2Ptr New(double value0, double value1, Heap::Space space=Heap::kNew)
Definition: object.cc:25475
@ kOld
Definition: heap.h:39
static Int32x4Ptr New(int32_t value0, int32_t value1, int32_t value2, int32_t value3, Heap::Space space=Heap::kNew)
Definition: object.cc:25391
static Object & Handle()
Definition: object.h:407
static Object & ZoneHandle()
Definition: object.h:419
virtual Value * InputAt(intptr_t i) const
Definition: il.h:11353
static Thread * Current()
Definition: thread.h:362
const Object & BoundConstant() const
Definition: il.cc:1201
uint8_t value
GAsyncResult * result
double y
double x
SkScalar w

◆ ComputeCanDeoptimize()

virtual bool dart::SimdOpInstr::ComputeCanDeoptimize ( ) const
inlinevirtual

Implements dart::Instruction.

Definition at line 11370 of file il.h.

11370{ return false; }

◆ ComputeType()

CompileType dart::SimdOpInstr::ComputeType ( ) const
virtual

Reimplemented from dart::Definition.

Definition at line 1783 of file type_propagator.cc.

1783 {
1785}
static CompileType FromCid(intptr_t cid)
static const intptr_t simd_op_result_cids[]

◆ Create() [1/3]

static SimdOpInstr * dart::SimdOpInstr::Create ( Kind  kind,
Value left,
Value right,
intptr_t  deopt_id 
)
inlinestatic

Definition at line 11322 of file il.h.

11325 {
11326 return new SimdOpInstr(kind, left, right, deopt_id);
11327 }
intptr_t deopt_id() const
Definition: il.h:993

◆ Create() [2/3]

static SimdOpInstr * dart::SimdOpInstr::Create ( MethodRecognizer::Kind  kind,
Value left,
intptr_t  deopt_id 
)
inlinestatic

Definition at line 11338 of file il.h.

11340 {
11341 return new SimdOpInstr(KindForMethod(kind), left, deopt_id);
11342 }
static Kind KindForMethod(MethodRecognizer::Kind method_kind)
Definition: il.cc:8380

◆ Create() [3/3]

static SimdOpInstr * dart::SimdOpInstr::Create ( MethodRecognizer::Kind  kind,
Value left,
Value right,
intptr_t  deopt_id 
)
inlinestatic

Definition at line 11330 of file il.h.

11333 {
11334 return new SimdOpInstr(KindForMethod(kind), left, right, deopt_id);
11335 }

◆ CreateFromCall()

SimdOpInstr * dart::SimdOpInstr::CreateFromCall ( Zone zone,
MethodRecognizer::Kind  kind,
Definition receiver,
Instruction call,
intptr_t  mask = 0 
)
static

Definition at line 8259 of file il.cc.

8263 {
8264 SimdOpInstr* op;
8265 switch (kind) {
8266 case MethodRecognizer::kFloat32x4Mul:
8267 case MethodRecognizer::kFloat32x4Div:
8268 case MethodRecognizer::kFloat32x4Add:
8269 case MethodRecognizer::kFloat32x4Sub:
8270 case MethodRecognizer::kFloat64x2Mul:
8271 case MethodRecognizer::kFloat64x2Div:
8272 case MethodRecognizer::kFloat64x2Add:
8273 case MethodRecognizer::kFloat64x2Sub:
8274 op = new (zone) SimdOpInstr(KindForOperator(kind), call->deopt_id());
8275 break;
8276#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
8277 case MethodRecognizer::kFloat32x4GreaterThan:
8278 // cmppsgt does not exist, cmppsnlt gives wrong NaN result, need to flip
8279 // at the IL level to get the right SameAsFirstInput.
8280 op = new (zone)
8281 SimdOpInstr(SimdOpInstr::kFloat32x4LessThan, call->deopt_id());
8282 op->SetInputAt(0, call->ArgumentValueAt(1)->CopyWithType(zone));
8283 op->SetInputAt(1, new (zone) Value(receiver));
8284 return op;
8285 case MethodRecognizer::kFloat32x4GreaterThanOrEqual:
8286 // cmppsge does not exist, cmppsnle gives wrong NaN result, need to flip
8287 // at the IL level to get the right SameAsFirstInput.
8288 op = new (zone)
8289 SimdOpInstr(SimdOpInstr::kFloat32x4LessThanOrEqual, call->deopt_id());
8290 op->SetInputAt(0, call->ArgumentValueAt(1)->CopyWithType(zone));
8291 op->SetInputAt(1, new (zone) Value(receiver));
8292 return op;
8293#endif
8294 default:
8295 op = new (zone) SimdOpInstr(KindForMethod(kind), call->deopt_id());
8296 break;
8297 }
8298
8299 if (receiver != nullptr) {
8300 op->SetInputAt(0, new (zone) Value(receiver));
8301 }
8302 for (intptr_t i = (receiver != nullptr ? 1 : 0); i < op->InputCount(); i++) {
8303 op->SetInputAt(i, call->ArgumentValueAt(i)->CopyWithType(zone));
8304 }
8305 if (op->HasMask()) {
8306 op->set_mask(mask);
8307 }
8308 ASSERT(call->ArgumentCount() == (op->InputCount() + (op->HasMask() ? 1 : 0)));
8309
8310 return op;
8311}
friend class Value
Definition: il.h:2690
static Kind KindForOperator(MethodRecognizer::Kind kind)
Definition: il.cc:8234
#define ASSERT(E)
def call(args)
Definition: dom.py:159

◆ CreateFromFactoryCall()

SimdOpInstr * dart::SimdOpInstr::CreateFromFactoryCall ( Zone zone,
MethodRecognizer::Kind  kind,
Instruction call 
)
static

Definition at line 8313 of file il.cc.

8315 {
8316 SimdOpInstr* op =
8317 new (zone) SimdOpInstr(KindForMethod(kind), call->deopt_id());
8318 for (intptr_t i = 0; i < op->InputCount(); i++) {
8319 // Note: ArgumentAt(0) is type arguments which we don't need.
8320 op->SetInputAt(i, call->ArgumentValueAt(i + 1)->CopyWithType(zone));
8321 }
8322 ASSERT(call->ArgumentCount() == (op->InputCount() + 1));
8323 return op;
8324}

◆ DeoptimizationTarget()

virtual intptr_t dart::SimdOpInstr::DeoptimizationTarget ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 11372 of file il.h.

11372 {
11373 // Direct access since this instruction cannot deoptimize, and the deopt-id
11374 // was inherited from another instruction that could deoptimize.
11375 return GetDeoptId();
11376 }
intptr_t GetDeoptId() const
Definition: il.h:1409

◆ HasUnknownSideEffects()

virtual bool dart::SimdOpInstr::HasUnknownSideEffects ( ) const
inlinevirtual

Implements dart::Instruction.

Definition at line 11378 of file il.h.

11378{ return false; }

◆ InputAt()

virtual Value * dart::SimdOpInstr::InputAt ( intptr_t  i) const
inlinevirtual

Implements dart::Instruction.

Definition at line 11353 of file il.h.

11353 {
11354 ASSERT(0 <= i && i < InputCount());
11355 return inputs_[i];
11356 }
virtual intptr_t InputCount() const
Definition: il.cc:8448

◆ InputCount()

intptr_t dart::SimdOpInstr::InputCount ( ) const
virtual

Implements dart::Instruction.

Definition at line 8448 of file il.cc.

8448 {
8449 return simd_op_information[kind()].arity;
8450}
static const SimdOpInfo simd_op_information[]
Definition: il.cc:8430
uint8_t arity
Definition: il.cc:8402

◆ kind()

Kind dart::SimdOpInstr::kind ( ) const
inline

Definition at line 11358 of file il.h.

11358{ return kind_; }

◆ KindForMethod()

SimdOpInstr::Kind dart::SimdOpInstr::KindForMethod ( MethodRecognizer::Kind  method_kind)
static

Definition at line 8380 of file il.cc.

8380 {
8381 switch (kind) {
8382#define CASE_METHOD(Arity, Mask, Name, ...) \
8383 case MethodRecognizer::k##Name: \
8384 return k##Name;
8385#define CASE_BINARY_OP(Arity, Mask, Name, Args, Result)
8387#undef CASE_METHOD
8388#undef CASE_BINARY_OP
8389 default:
8390 break;
8391 }
8392
8393 FATAL("Not a SIMD method: %s", MethodRecognizer::KindToCString(kind));
8394 return kIllegalSimdOp;
8395}
static const char * KindToCString(Kind kind)
#define FATAL(error)
#define CASE_BINARY_OP(Arity, Mask, Name, Args, Result)
#define CASE_METHOD(Arity, Mask, Name,...)

◆ KindForOperator() [1/2]

SimdOpInstr::Kind dart::SimdOpInstr::KindForOperator ( intptr_t  cid,
Token::Kind  op 
)
static

Definition at line 8326 of file il.cc.

8326 {
8327 switch (cid) {
8328 case kFloat32x4Cid:
8329 switch (op) {
8330 case Token::kADD:
8331 return kFloat32x4Add;
8332 case Token::kSUB:
8333 return kFloat32x4Sub;
8334 case Token::kMUL:
8335 return kFloat32x4Mul;
8336 case Token::kDIV:
8337 return kFloat32x4Div;
8338 default:
8339 break;
8340 }
8341 break;
8342
8343 case kFloat64x2Cid:
8344 switch (op) {
8345 case Token::kADD:
8346 return kFloat64x2Add;
8347 case Token::kSUB:
8348 return kFloat64x2Sub;
8349 case Token::kMUL:
8350 return kFloat64x2Mul;
8351 case Token::kDIV:
8352 return kFloat64x2Div;
8353 default:
8354 break;
8355 }
8356 break;
8357
8358 case kInt32x4Cid:
8359 switch (op) {
8360 case Token::kADD:
8361 return kInt32x4Add;
8362 case Token::kSUB:
8363 return kInt32x4Sub;
8364 case Token::kBIT_AND:
8365 return kInt32x4BitAnd;
8366 case Token::kBIT_OR:
8367 return kInt32x4BitOr;
8368 case Token::kBIT_XOR:
8369 return kInt32x4BitXor;
8370 default:
8371 break;
8372 }
8373 break;
8374 }
8375
8376 UNREACHABLE();
8377 return kIllegalSimdOp;
8378}
#define UNREACHABLE()
Definition: assert.h:248
const intptr_t cid

◆ KindForOperator() [2/2]

SimdOpInstr::Kind dart::SimdOpInstr::KindForOperator ( MethodRecognizer::Kind  kind)
static

Definition at line 8234 of file il.cc.

8234 {
8235 switch (kind) {
8236 case MethodRecognizer::kFloat32x4Mul:
8237 return SimdOpInstr::kFloat32x4Mul;
8238 case MethodRecognizer::kFloat32x4Div:
8239 return SimdOpInstr::kFloat32x4Div;
8240 case MethodRecognizer::kFloat32x4Add:
8241 return SimdOpInstr::kFloat32x4Add;
8242 case MethodRecognizer::kFloat32x4Sub:
8243 return SimdOpInstr::kFloat32x4Sub;
8244 case MethodRecognizer::kFloat64x2Mul:
8245 return SimdOpInstr::kFloat64x2Mul;
8246 case MethodRecognizer::kFloat64x2Div:
8247 return SimdOpInstr::kFloat64x2Div;
8248 case MethodRecognizer::kFloat64x2Add:
8249 return SimdOpInstr::kFloat64x2Add;
8250 case MethodRecognizer::kFloat64x2Sub:
8251 return SimdOpInstr::kFloat64x2Sub;
8252 default:
8253 break;
8254 }
8255 UNREACHABLE();
8257}

◆ mask()

intptr_t dart::SimdOpInstr::mask ( ) const
inline

Definition at line 11359 of file il.h.

11359 {
11360 ASSERT(HasMask());
11361 return mask_;
11362 }

◆ MayThrow()

virtual bool dart::SimdOpInstr::MayThrow ( ) const
inlinevirtual

Implements dart::Instruction.

Definition at line 11369 of file il.h.

11369{ return false; }

◆ RawSetInputAt()

virtual void dart::SimdOpInstr::RawSetInputAt ( intptr_t  i,
Value value 
)
inlineprivatevirtual

Implements dart::Instruction.

Definition at line 11417 of file il.h.

11417{ inputs_[i] = value; }

◆ representation()

Representation dart::SimdOpInstr::representation ( ) const
virtual

Reimplemented from dart::Instruction.

Definition at line 8452 of file il.cc.

8452 {
8454}
Representation output
Definition: il.cc:8404

◆ RequiredInputRepresentation()

Representation dart::SimdOpInstr::RequiredInputRepresentation ( intptr_t  idx) const
virtual

Reimplemented from dart::Instruction.

Definition at line 8456 of file il.cc.

8456 {
8457 ASSERT(0 <= idx && idx < InputCount());
8458 return simd_op_information[kind()].inputs[idx];
8459}
Representation inputs[4]
Definition: il.cc:8405

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