class SgProcHedrStmt : public SgProgHedrStmt

Fortran subroutine, variant == PROC_HEDR

Inheritance:

SgProcHedrStmt < SgProgHedrStmt < SgStatement


Public Methods

SgExpression* AddArg(char *name, SgType &t, SgExpression &initializer)
SgExpression* AddArg(char *name, SgType &t)
returns decl expr created.
void AddArg(SgExpression &arg)
SgStatement* call(int i)
position of the i-th call.
SgStatement* entryPoint(int i)
the i-th entry point
int isRecursive()
1 if recursive.
int numberOfCalls()
number of calls to this proc.
int numberOfEntryPoints()
the number of entry points other than the main, 0 for C funcs.
SgProcHedrStmt(SgSymbol &name, SgStatement &Body)
SgProcHedrStmt(SgSymbol &name)
SgProcHedrStmt(int variant)
SgProcHedrStmt(char *name)
~SgProcHedrStmt()

Inherited from SgProgHedrStmt:

Public Methods

SgStatement& addCommonBlock(char *blockname, int noOfVars, SgSymbol *Vars)
SgSymbol& addVariable(SgType &T, char *name)
SgSymbol* calledFunction(int i)
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)
SgSymbol& name()
int numberOfExecutionStmts()
int numberOfFunctionsCalled()
int numberOfInternalFunctionsDefined()
int numberOfInternalSubProgramsDefined()
int numberOfInternalSubroutinesDefined()
int numberOfParameters()
int numberOfSpecificationStmts()
int numberOfStmtFunctions()
int numberofVarsMod()
int numberOfVarsUsed()
SgSymbol* parameter(int i)
void setName(SgSymbol &symbol)
SgStatement* specificationStmt(int i)
SgStatement* statementFunc(int i)
SgExpression* varsMod(int i)
SgExpression* varsUsed(int i)

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 subroutine, variant == PROC_HEDR
SgProcHedrStmt(int variant)

SgProcHedrStmt(SgSymbol &name, SgStatement &Body)

SgProcHedrStmt(SgSymbol &name)

SgProcHedrStmt(char *name)

void AddArg(SgExpression &arg)

SgExpression* AddArg(char *name, SgType &t)
returns decl expr created.

SgExpression* AddArg(char *name, SgType &t, SgExpression &initializer)

int isRecursive()
1 if recursive.

int numberOfEntryPoints()
the number of entry points other than the main, 0 for C funcs.

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

int numberOfCalls()
number of calls to this proc.

SgStatement* call(int i)
position of the i-th call.

~SgProcHedrStmt()


Direct child classes:
SgFuncHedrStmt

alphabetic index hierarchy of classes


Email contact: zgs@npac.syr.edu

generated by doc++