harpoon.Tools.PatMat
Class Spec.DetailExtra
java.lang.Object
harpoon.Tools.PatMat.Spec.Detail
harpoon.Tools.PatMat.Spec.DetailExtra
- Enclosing class:
- Spec
public static class Spec.DetailExtra
- extends Spec.Detail
Extension of Spec.Detail
that requests an extra
temporary register for the use of the action clause. For example,
if multiplying two 32-bit registers generates a 64-bit result on
the target architecture, you might need to request an extra
Temp
to have a place to put the high word of the
result (before you throw it away). The DetailExtra
element contains a list of identifiers naming the working temps
that you are requesting.
syntax: %extra {
ID-LIST }
type
public final int type
extras
public final Spec.IdList extras
Spec.DetailExtra
public Spec.DetailExtra(int type,
Spec.IdList extras)
accept
public void accept(Spec.DetailVisitor v)
- Applies
v
's visit
method to this
.
- Specified by:
accept
in class Spec.Detail
- See Also:
- "Design Patterns pgs. 331-344"
toString
public String toString()
- Overrides:
toString
in class Object