Packages

c

scala.tools.nsc.backend.jvm.opt

InlinerHeuristics

class InlinerHeuristics[BT <: BTypes] extends AnyRef

Source
InlinerHeuristics.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InlinerHeuristics
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InlinerHeuristics(bTypes: BT)

Type Members

  1. final case class InlineRequest (callsite: Callsite, post: List[InlineRequest], reason: String) extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from InlinerHeuristics[BT] to any2stringadd[InlinerHeuristics[BT]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (InlinerHeuristics[BT], B)
    Implicit
    This member is added by an implicit conversion from InlinerHeuristics[BT] to ArrowAssoc[InlinerHeuristics[BT]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val bTypes: BT
  8. def canInlineFromSource(sourceFilePath: Option[String]): Boolean
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (InlinerHeuristics[BT]) ⇒ Boolean, msg: ⇒ Any): InlinerHeuristics[BT]
    Implicit
    This member is added by an implicit conversion from InlinerHeuristics[BT] to Ensuring[InlinerHeuristics[BT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (InlinerHeuristics[BT]) ⇒ Boolean): InlinerHeuristics[BT]
    Implicit
    This member is added by an implicit conversion from InlinerHeuristics[BT] to Ensuring[InlinerHeuristics[BT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): InlinerHeuristics[BT]
    Implicit
    This member is added by an implicit conversion from InlinerHeuristics[BT] to Ensuring[InlinerHeuristics[BT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): InlinerHeuristics[BT]
    Implicit
    This member is added by an implicit conversion from InlinerHeuristics[BT] to Ensuring[InlinerHeuristics[BT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from InlinerHeuristics[BT] to StringFormat[InlinerHeuristics[BT]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  20. def inlineRequest(callsite: Callsite, selectedRequestsForCallee: Set[InlineRequest]): Option[Either[OptimizerWarning, InlineRequest]]

    Returns the inline request for a callsite if the callsite should be inlined according to the current heuristics (-Yopt-inline-heuristics).

    Returns the inline request for a callsite if the callsite should be inlined according to the current heuristics (-Yopt-inline-heuristics).

    The resulting inline request may contain post-inlining requests of callsites that in turn are also selected as individual inlining requests.

    returns

    None if this callsite should not be inlined according to the active heuristic Some(Left) if the callsite cannot be inlined (for example because that would cause an IllegalAccessError) but should be according to the heuristic TODO: what if a downstream inline request would cause an IAE and we don't create an InlineRequest for the original callsite? new subclass of OptimizerWarning. Some(Right) if the callsite should be and can be inlined

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def javaSam(internalName: InternalName): Option[String]
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. def selectCallsitesForInlining: Map[MethodNode, Set[InlineRequest]]

    Select callsites from the call graph that should be inlined, grouped by the containing method.

    Select callsites from the call graph that should be inlined, grouped by the containing method. Cyclic inlining requests are allowed, the inliner will eliminate requests to break cycles.

  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def [B](y: B): (InlinerHeuristics[BT], B)
    Implicit
    This member is added by an implicit conversion from InlinerHeuristics[BT] to ArrowAssoc[InlinerHeuristics[BT]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from InlinerHeuristics[BT] to any2stringadd[InlinerHeuristics[BT]]

Inherited by implicit conversion StringFormat from InlinerHeuristics[BT] to StringFormat[InlinerHeuristics[BT]]

Inherited by implicit conversion Ensuring from InlinerHeuristics[BT] to Ensuring[InlinerHeuristics[BT]]

Inherited by implicit conversion ArrowAssoc from InlinerHeuristics[BT] to ArrowAssoc[InlinerHeuristics[BT]]

Ungrouped