class SgProgHedrStmt : public SgStatement

Fortran Program block. variant == PROG_HEDR

Inheritance:

SgProgHedrStmt < SgStatement


Public Methods

SgStatement& addCommonBlock(char *blockname, int noOfVars, SgSymbol *Vars)
add a new common block
SgSymbol& addVariable(SgType &T, char *name)
add a declaration for new variable
SgSymbol* calledFunction(int i)
the i-th called function
SgStatement* entryPoint(int i)
the i-th entry point;
SgStatement* executionStmt(int i)
SgSymbol* firstSymbolInScope()
void insertParameterAfter(SgSymbol & parameter, SgSymbol & added)
SgStatement* internalFunction(int i)
SgStatement* internalSubProgram(int i)
SgStatement* internalSubroutine(int i)
int isSymbolDeclaredHere(SgSymbol &symbol)
int isSymbolInScope(SgSymbol &symbol)
int isSymbolNameInScope(char *name)
ture if a string name is in a scope .
SgSymbol& name()
int numberOfEntryPoints()
the number of entry points;
int numberOfExecutionStmts()
int numberOfFunctionsCalled()
the number of functions called
int numberOfInternalFunctionsDefined()
int numberOfInternalSubProgramsDefined()
int numberOfInternalSubroutinesDefined()
int numberOfParameters()
the number of parameters;
int numberOfSpecificationStmts()
int numberOfStmtFunctions()
the number of statement funcions;
int numberofVarsMod()
list of modifed variable access sections
int numberOfVarsUsed()
list of used variable access sections
SgSymbol* parameter(int i)
the i-th parameter
void setName(SgSymbol &symbol)
set program name
SgProgHedrStmt(SgSymbol &name, SgStatement &Body)
SgProgHedrStmt(int variant)
SgProgHedrStmt(char *name)
SgProgHedrStmt(SgSymbol &name)
SgProgHedrStmt(PTR_BFND bif)
SgStatement* specificationStmt(int i)
SgStatement* statementFunc(int i)
the i-th statement function;
SgExpression* varsMod(int i)
i-th var mod section descriptor
SgExpression* varsUsed(int i)
i-th var used section descriptor
~SgProgHedrStmt()

Inherited from SgStatement:

Public Methods

void addAttribute(SgAttribute *att)
void addAttribute(int type)
void addAttribute(void *a, int size)
void addAttribute(int type, void *a, int size)
void addDeclSpec(int type)
int attributeType(int i)
void* attributeValue(int i)
void* attributeValue(int i, int type)
SgStatement* childList1(int i)
SgStatement* childList2(int i)
void clearDeclSpec()
char* comments()
SgStatement* controlParent()
SgStatement& copy(void)
SgStatement& copyBlock(void)
SgStatement* copyBlockPtr(void)
SgStatement& copyOne(void)
SgStatement* copyOnePtr(void)
SgStatement* copyPtr(void)
void deleteAllAttribute(int type)
void deleteAllAttribute()
void* deleteAttribute(int i, int type)
void* deleteAttribute(int i)
void deleteStmt()
SgExpression* expr(int i)
SgStatement* extractStmt()
SgStatement* extractStmtBody()
char* fileName()
SgStatement* firstExecutable()
SgStatement* firstStmtForDeclaration()
SgAttribute* getAttribute(int i, int type)
SgAttribute* getAttribute(int i)
SgStatement* getScopeForDeclare()
int hasAnnotations()
int hasLabel()
int hasSymbol()
int id()
void insertStmtAfter(SgStatement &s, SgStatement &cp)
void insertStmtAfter(SgStatement &s)
void insertStmtBefore(SgStatement &s, SgStatement &cp)
void insertStmtBefore(SgStatement &s)
int isExtern()
int isFriend()
int isIncludedInStmt(SgStatement &s)
int isInline()
int isStatic()
SgStatement* lastDeclaration()
SgStatement* lastExecutable()
SgStatement* lastNodeOfStmt()
SgStatement* lexNext()
SgStatement* lexPrev()
int lineNumber()
SgStatement* nextInChildList()
SgStatement* nodeBefore()
int numberOfAttributes()
int numberOfAttributes(int type)
int numberOfChildrenList1()
int numberOfChildrenList2()
int numberOfComments()
void replaceSymbByExp(SgSymbol &symb, SgExpression &exp)
void replaceSymbBySymb(SgSymbol &symb, SgSymbol &newsymb)
void replaceSymbBySymbSameName(SgSymbol &symb, SgSymbol &newsymb)
void replaceTypeInStmt(SgType &old, SgType &newtype)
void replaceWithStmt(SgStatement &s)
void setComments(char *comments)
void setControlParent(SgStatement &s)
void setExpression(int i, SgExpression &e)
void setId(int n)
void setLabel(SgLabel &l)
void setLabel(SgLabel * l)
void setLexNext(SgStatement &s)
void setlineNumber(int n)
void setSymbol(SgSymbol &s)
void setVariant(int n)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * mixstring, char * genname, char * basename, int counter)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * name)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * mixstring, char * genname, char * basename, int c1, int c2)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * mixstring, char * genname, char * basename)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * mixstring, char * genname, char * basename)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * mixstring, char * genname, char * basename, int c1, int c2)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * mixstring, char * genname, char * basename, int counter)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * name)
void simpledeleteStmt()
void sunparse(char *buffer)
SgSymbol* symbol()
char* unparse()
void unparsestdout()
int variant()

Documentation

Fortran Program block. variant == PROG_HEDR
SgProgHedrStmt(PTR_BFND bif)

SgProgHedrStmt(int variant)

SgProgHedrStmt(SgSymbol &name, SgStatement &Body)

SgProgHedrStmt(SgSymbol &name)

SgProgHedrStmt(char *name)

SgSymbol& name()

void setName(SgSymbol &symbol)
set program name

int numberOfFunctionsCalled()
the number of functions called

SgSymbol* calledFunction(int i)
the i-th called function

int numberOfStmtFunctions()
the number of statement funcions;

SgStatement* statementFunc(int i)
the i-th statement function;

int numberOfEntryPoints()
the number of entry points;

SgStatement* entryPoint(int i)
the i-th entry point;

int numberOfParameters()
the number of parameters;

SgSymbol* parameter(int i)
the i-th parameter

void insertParameterAfter(SgSymbol & parameter, SgSymbol & added)

int numberOfSpecificationStmts()

SgStatement* specificationStmt(int i)

int numberOfExecutionStmts()

SgStatement* executionStmt(int i)

int numberOfInternalFunctionsDefined()

SgStatement* internalFunction(int i)

int numberOfInternalSubroutinesDefined()

SgStatement* internalSubroutine(int i)

int numberOfInternalSubProgramsDefined()

SgStatement* internalSubProgram(int i)

SgSymbol& addVariable(SgType &T, char *name)
add a declaration for new variable

SgStatement& addCommonBlock(char *blockname, int noOfVars, SgSymbol *Vars)
add a new common block

int isSymbolInScope(SgSymbol &symbol)

int isSymbolDeclaredHere(SgSymbol &symbol)

int isSymbolNameInScope(char *name)
ture if a string name is in a scope .

SgSymbol* firstSymbolInScope()

int numberOfVarsUsed()
list of used variable access sections

SgExpression* varsUsed(int i)
i-th var used section descriptor

int numberofVarsMod()
list of modifed variable access sections

SgExpression* varsMod(int i)
i-th var mod section descriptor

~SgProgHedrStmt()


Direct child classes:
SgProsHedrStmt
SgProcHedrStmt

alphabetic index hierarchy of classes


Email contact: zgs@npac.syr.edu

generated by doc++