SubVariableDecl

public final class SubVariableDecl extends VariableDecl

A temporary pseudo-VariableDecl that declares one separate field of a true VariableDecl. This is used during allocation of zones when pieces of the true variable can not be allocated all together (e.g BIND(C) declaration binding a C struct and a Fortran COMMON

Fields

accessTree

public Tree accessTree

toField

public TapIntList toField

trueVariableDecl

public VariableDecl trueVariableDecl

Constructors

SubVariableDecl

public SubVariableDecl(Tree identTree, WrapperTypeSpec typeSpec, VariableDecl trueVariableDecl, TapIntList toField, Tree accessTree)

Methods

accumulateSubZones

public void accumulateSubZones(TapList intTree)

Accumulates the given tree of zones “intTree” into the field “toField” of the “trueVariableDecl”. Refine structure of the existing tree of zones as needed.

toString

public String toString()