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

@@ -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;