Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 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 &)
 
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
 
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 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
 
SpeculativeMode SpeculativeModeOfInputs () const
 
virtual SpeculativeMode SpeculativeModeOfInput (intptr_t index) const
 
bool WasEliminated () const
 
void InsertBefore (Instruction *next)
 
void InsertAfter (Instruction *prev)
 
InstructionAppendInstruction (Instruction *tail)
 
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
 
void InheritDeoptTarget (Zone *zone, Instruction *other)
 
bool NeedsEnvironment () const
 
virtual bool CanBecomeDeoptimizationTarget () const
 
void InheritDeoptTargetAfter (FlowGraph *flow_graph, Definition *call, Definition *result)
 
virtual bool MayHaveVisibleEffect () 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 11246 of file il.h.

Member Enumeration Documentation

◆ Kind

Enumerator
kIllegalSimdOp 

Definition at line 11248 of file il.h.

11248 {
11249#define DECLARE_ENUM(Arity, Mask, Name, ...) k##Name,
11251#undef DECLARE_ENUM
11253 };
#define DECLARE_ENUM(Arity, Mask, Name,...)
Definition il.h:11249
#define SIMD_OP_LIST(M, BINARY_OP)
Definition il.h:11195

Member Function Documentation

◆ AllowsCSE()

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

Reimplemented from dart::Instruction.

Definition at line 11325 of file il.h.

11325{ return true; }

◆ AttributesEqual()

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

Reimplemented from dart::Instruction.

Definition at line 11327 of file il.h.

11327 {
11328 auto const other_op = other.AsSimdOp();
11329 return kind() == other_op->kind() &&
11330 (!HasMask() || mask() == other_op->mask());
11331 }
intptr_t mask() const
Definition il.h:11305
Kind kind() const
Definition il.h:11304

◆ Canonicalize()

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

Reimplemented from dart::Definition.

Definition at line 8316 of file il.cc.

8316 {
8317 if ((kind() == SimdOpInstr::kFloat64x2FromDoubles) &&
8318 InputAt(0)->BindsToConstant() && InputAt(1)->BindsToConstant()) {
8319 const Object& x = InputAt(0)->BoundConstant();
8320 const Object& y = InputAt(1)->BoundConstant();
8321 if (x.IsDouble() && y.IsDouble()) {
8323 Double::Cast(x).value(), Double::Cast(y).value(), Heap::kOld));
8324 result ^= result.Canonicalize(Thread::Current());
8325 return flow_graph->GetConstant(result, kUnboxedFloat64x2);
8326 }
8327 }
8328 if ((kind() == SimdOpInstr::kFloat32x4FromDoubles) &&
8329 InputAt(0)->BindsToConstant() && InputAt(1)->BindsToConstant() &&
8330 InputAt(2)->BindsToConstant() && InputAt(3)->BindsToConstant()) {
8331 const Object& x = InputAt(0)->BoundConstant();
8332 const Object& y = InputAt(1)->BoundConstant();
8333 const Object& z = InputAt(2)->BoundConstant();
8334 const Object& w = InputAt(3)->BoundConstant();
8335 if (x.IsDouble() && y.IsDouble() && z.IsDouble() && w.IsDouble()) {
8337 Double::Cast(x).value(), Double::Cast(y).value(),
8338 Double::Cast(z).value(), Double::Cast(w).value(), Heap::kOld));
8339 result ^= result.Canonicalize(Thread::Current());
8340 return flow_graph->GetConstant(result, kUnboxedFloat32x4);
8341 }
8342 }
8343 if ((kind() == SimdOpInstr::kInt32x4FromInts) &&
8344 InputAt(0)->BindsToConstant() && InputAt(1)->BindsToConstant() &&
8345 InputAt(2)->BindsToConstant() && InputAt(3)->BindsToConstant()) {
8346 const Object& x = InputAt(0)->BoundConstant();
8347 const Object& y = InputAt(1)->BoundConstant();
8348 const Object& z = InputAt(2)->BoundConstant();
8349 const Object& w = InputAt(3)->BoundConstant();
8350 if (x.IsInteger() && y.IsInteger() && z.IsInteger() && w.IsInteger()) {
8352 Integer::Cast(x).AsInt64Value(), Integer::Cast(y).AsInt64Value(),
8353 Integer::Cast(z).AsInt64Value(), Integer::Cast(w).AsInt64Value(),
8354 Heap::kOld));
8355 result ^= result.Canonicalize(Thread::Current());
8356 return flow_graph->GetConstant(result, kUnboxedInt32x4);
8357 }
8358 }
8359
8360 return this;
8361}
static Float32x4Ptr New(float value0, float value1, float value2, float value3, Heap::Space space=Heap::kNew)
Definition object.cc:25386
static Float64x2Ptr New(double value0, double value1, Heap::Space space=Heap::kNew)
Definition object.cc:25554
@ 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:25470
static Object & Handle()
Definition object.h:407
static Object & ZoneHandle()
Definition object.h:419
virtual Value * InputAt(intptr_t i) const
Definition il.h:11299
static Thread * Current()
Definition thread.h:361
const Object & BoundConstant() const
Definition il.cc:1199
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 11316 of file il.h.

11316{ return false; }

◆ ComputeType()

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

Reimplemented from dart::Definition.

Definition at line 1791 of file type_propagator.cc.

1791 {
1793}
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 11268 of file il.h.

11271 {
11272 return new SimdOpInstr(kind, left, right, deopt_id);
11273 }
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
intptr_t deopt_id() const
Definition il.h:987

◆ Create() [2/3]

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

Definition at line 11284 of file il.h.

11286 {
11287 return new SimdOpInstr(KindForMethod(kind), left, deopt_id);
11288 }
static Kind KindForMethod(MethodRecognizer::Kind method_kind)
Definition il.cc:8231

◆ Create() [3/3]

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

Definition at line 11276 of file il.h.

11279 {
11280 return new SimdOpInstr(KindForMethod(kind), left, right, deopt_id);
11281 }

◆ CreateFromCall()

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

Definition at line 8110 of file il.cc.

8114 {
8115 SimdOpInstr* op;
8116 switch (kind) {
8117 case MethodRecognizer::kFloat32x4Mul:
8118 case MethodRecognizer::kFloat32x4Div:
8119 case MethodRecognizer::kFloat32x4Add:
8120 case MethodRecognizer::kFloat32x4Sub:
8121 case MethodRecognizer::kFloat64x2Mul:
8122 case MethodRecognizer::kFloat64x2Div:
8123 case MethodRecognizer::kFloat64x2Add:
8124 case MethodRecognizer::kFloat64x2Sub:
8125 op = new (zone) SimdOpInstr(KindForOperator(kind), call->deopt_id());
8126 break;
8127#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
8128 case MethodRecognizer::kFloat32x4GreaterThan:
8129 // cmppsgt does not exist, cmppsnlt gives wrong NaN result, need to flip
8130 // at the IL level to get the right SameAsFirstInput.
8131 op = new (zone)
8132 SimdOpInstr(SimdOpInstr::kFloat32x4LessThan, call->deopt_id());
8133 op->SetInputAt(0, call->ArgumentValueAt(1)->CopyWithType(zone));
8134 op->SetInputAt(1, new (zone) Value(receiver));
8135 return op;
8136 case MethodRecognizer::kFloat32x4GreaterThanOrEqual:
8137 // cmppsge does not exist, cmppsnle gives wrong NaN result, need to flip
8138 // at the IL level to get the right SameAsFirstInput.
8139 op = new (zone)
8140 SimdOpInstr(SimdOpInstr::kFloat32x4LessThanOrEqual, call->deopt_id());
8141 op->SetInputAt(0, call->ArgumentValueAt(1)->CopyWithType(zone));
8142 op->SetInputAt(1, new (zone) Value(receiver));
8143 return op;
8144#endif
8145 default:
8146 op = new (zone) SimdOpInstr(KindForMethod(kind), call->deopt_id());
8147 break;
8148 }
8149
8150 if (receiver != nullptr) {
8151 op->SetInputAt(0, new (zone) Value(receiver));
8152 }
8153 for (intptr_t i = (receiver != nullptr ? 1 : 0); i < op->InputCount(); i++) {
8154 op->SetInputAt(i, call->ArgumentValueAt(i)->CopyWithType(zone));
8155 }
8156 if (op->HasMask()) {
8157 op->set_mask(mask);
8158 }
8159 ASSERT(call->ArgumentCount() == (op->InputCount() + (op->HasMask() ? 1 : 0)));
8160
8161 return op;
8162}
friend class Value
Definition il.h:2672
static Kind KindForOperator(MethodRecognizer::Kind kind)
Definition il.cc:8085
#define ASSERT(E)
call(args)
Definition dom.py:159

◆ CreateFromFactoryCall()

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

Definition at line 8164 of file il.cc.

8166 {
8167 SimdOpInstr* op =
8168 new (zone) SimdOpInstr(KindForMethod(kind), call->deopt_id());
8169 for (intptr_t i = 0; i < op->InputCount(); i++) {
8170 // Note: ArgumentAt(0) is type arguments which we don't need.
8171 op->SetInputAt(i, call->ArgumentValueAt(i + 1)->CopyWithType(zone));
8172 }
8173 ASSERT(call->ArgumentCount() == (op->InputCount() + 1));
8174 return op;
8175}

◆ DeoptimizationTarget()

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

Reimplemented from dart::Instruction.

Definition at line 11318 of file il.h.

11318 {
11319 // Direct access since this instruction cannot deoptimize, and the deopt-id
11320 // was inherited from another instruction that could deoptimize.
11321 return GetDeoptId();
11322 }
intptr_t GetDeoptId() const
Definition il.h:1403

◆ HasUnknownSideEffects()

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

Implements dart::Instruction.

Definition at line 11324 of file il.h.

11324{ return false; }

◆ InputAt()

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

Implements dart::Instruction.

Definition at line 11299 of file il.h.

11299 {
11300 ASSERT(0 <= i && i < InputCount());
11301 return inputs_[i];
11302 }
virtual intptr_t InputCount() const
Definition il.cc:8299

◆ InputCount()

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

Implements dart::Instruction.

Definition at line 8299 of file il.cc.

8299 {
8300 return simd_op_information[kind()].arity;
8301}
static const SimdOpInfo simd_op_information[]
Definition il.cc:8281
uint8_t arity
Definition il.cc:8253

◆ kind()

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

Definition at line 11304 of file il.h.

11304{ return kind_; }

◆ KindForMethod()

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

Definition at line 8231 of file il.cc.

8231 {
8232 switch (kind) {
8233#define CASE_METHOD(Arity, Mask, Name, ...) \
8234 case MethodRecognizer::k##Name: \
8235 return k##Name;
8236#define CASE_BINARY_OP(Arity, Mask, Name, Args, Result)
8238#undef CASE_METHOD
8239#undef CASE_BINARY_OP
8240 default:
8241 break;
8242 }
8243
8244 FATAL("Not a SIMD method: %s", MethodRecognizer::KindToCString(kind));
8245 return kIllegalSimdOp;
8246}
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 8177 of file il.cc.

8177 {
8178 switch (cid) {
8179 case kFloat32x4Cid:
8180 switch (op) {
8181 case Token::kADD:
8182 return kFloat32x4Add;
8183 case Token::kSUB:
8184 return kFloat32x4Sub;
8185 case Token::kMUL:
8186 return kFloat32x4Mul;
8187 case Token::kDIV:
8188 return kFloat32x4Div;
8189 default:
8190 break;
8191 }
8192 break;
8193
8194 case kFloat64x2Cid:
8195 switch (op) {
8196 case Token::kADD:
8197 return kFloat64x2Add;
8198 case Token::kSUB:
8199 return kFloat64x2Sub;
8200 case Token::kMUL:
8201 return kFloat64x2Mul;
8202 case Token::kDIV:
8203 return kFloat64x2Div;
8204 default:
8205 break;
8206 }
8207 break;
8208
8209 case kInt32x4Cid:
8210 switch (op) {
8211 case Token::kADD:
8212 return kInt32x4Add;
8213 case Token::kSUB:
8214 return kInt32x4Sub;
8215 case Token::kBIT_AND:
8216 return kInt32x4BitAnd;
8217 case Token::kBIT_OR:
8218 return kInt32x4BitOr;
8219 case Token::kBIT_XOR:
8220 return kInt32x4BitXor;
8221 default:
8222 break;
8223 }
8224 break;
8225 }
8226
8227 UNREACHABLE();
8228 return kIllegalSimdOp;
8229}
#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 8085 of file il.cc.

8085 {
8086 switch (kind) {
8087 case MethodRecognizer::kFloat32x4Mul:
8088 return SimdOpInstr::kFloat32x4Mul;
8089 case MethodRecognizer::kFloat32x4Div:
8090 return SimdOpInstr::kFloat32x4Div;
8091 case MethodRecognizer::kFloat32x4Add:
8092 return SimdOpInstr::kFloat32x4Add;
8093 case MethodRecognizer::kFloat32x4Sub:
8094 return SimdOpInstr::kFloat32x4Sub;
8095 case MethodRecognizer::kFloat64x2Mul:
8096 return SimdOpInstr::kFloat64x2Mul;
8097 case MethodRecognizer::kFloat64x2Div:
8098 return SimdOpInstr::kFloat64x2Div;
8099 case MethodRecognizer::kFloat64x2Add:
8100 return SimdOpInstr::kFloat64x2Add;
8101 case MethodRecognizer::kFloat64x2Sub:
8102 return SimdOpInstr::kFloat64x2Sub;
8103 default:
8104 break;
8105 }
8106 UNREACHABLE();
8108}

◆ mask()

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

Definition at line 11305 of file il.h.

11305 {
11306 ASSERT(HasMask());
11307 return mask_;
11308 }

◆ MayThrow()

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

Implements dart::Instruction.

Definition at line 11315 of file il.h.

11315{ return false; }

◆ RawSetInputAt()

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

Implements dart::Instruction.

Definition at line 11363 of file il.h.

11363{ inputs_[i] = value; }

◆ representation()

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

Reimplemented from dart::Instruction.

Definition at line 8303 of file il.cc.

8303 {
8305}
Representation output
Definition il.cc:8255

◆ RequiredInputRepresentation()

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

Reimplemented from dart::Instruction.

Definition at line 8307 of file il.cc.

8307 {
8308 ASSERT(0 <= idx && idx < InputCount());
8309 return simd_op_information[kind()].inputs[idx];
8310}
Representation inputs[4]
Definition il.cc:8256

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