This commit is contained in:
ALEXks
2023-11-21 21:19:10 +03:00
parent b8da3d5eb1
commit afdbfdac61
5 changed files with 26 additions and 16 deletions

View File

@@ -5358,21 +5358,6 @@ SgExpression * TranslateReductionToOpenmp(SgExpression *reduction_clause) /* Op
return OpenMPReductions;
}
SgStatement *Interface(SgSymbol *s)
{
SgStatement *interface = hasInterface(s);
if (!interface)
{
interface = getInterface(s);
if (isForCudaRegion())
{
SaveInterface(s,interface);
MarkAsUserProcedure(s);
}
}
return interface;
}
/*
SgStatement *checkInternal(SgSymbol *s)
{

View File

@@ -111,6 +111,20 @@ void SaveInterface(SgSymbol *s, SgStatement *interface)
GRAPHNODE(s)->st_interface = interface;
}
SgStatement *Interface(SgSymbol *s)
{
SgStatement *interface = hasInterface(s);
if (!interface)
interface = getInterface(s);
if (isForCudaRegion() && interface)
{
SaveInterface(s,interface);
MarkAsUserProcedure(s);
}
return interface;
}
int findParameterNumber(SgSymbol *s, char *name)
{
int i;