Op

scala.scalanative.nir.Op
See theOp companion object
sealed abstract class Op

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AlignmentOf
class Arrayalloc
class Arraylength
class Arrayload
class Arraystore
class As
class Bin
class Box
class Call
class Classalloc
class Comp
class Conv
class Copy
class Dynmethod
class Elem
class Extract
class Fence
class Field
class Fieldload
class Fieldstore
class Insert
class Is
class Load
class Method
class Module
class SizeOf
class Stackalloc
class Store
class Unbox
class Var
class Varload
class Varstore
Show all
Self type

Members list

Value members

Concrete methods

final def isCommutative: Boolean
final def isIdempotent: Boolean

Op is idempotent if re-evaluation of the operation with the same arguments is going to produce the same results, without any extra side effects as long as previous evaluation did not throw.

Op is idempotent if re-evaluation of the operation with the same arguments is going to produce the same results, without any extra side effects as long as previous evaluation did not throw.

Attributes

final def isPure: Boolean

Op is pure if it doesn't have any side-effects, including:

Op is pure if it doesn't have any side-effects, including:

  • doesn't throw exceptions * doesn't perform any unsafe reads or writes from the memory * doesn't call foreign code

Recomputing pure op will always yield to the same result.

Attributes

final def resty: Type
final def show: String

Concrete fields

lazy override val hashCode: Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.