Home
last modified time | relevance | path

Searched refs:funcDefNode (Results 1 – 7 of 7) sorted by relevance

/external/angle/src/compiler/translator/TranslatorMetalDirect/
DWrapMain.cpp37 if (TIntermFunctionDefinition *funcDefNode = node->getAsFunctionDefinition()) in visitBlock() local
39 const TFunction &func = *funcDefNode->getFunction(); in visitBlock()
42 visitMain(*blockNode, funcDefNode); in visitBlock()
52 void visitMain(TIntermBlock &root, TIntermFunctionDefinition *funcDefNode) in visitMain() argument
54 const TFunction &func = *funcDefNode->getFunction(); in visitMain()
59 const TFunction &externalMainFunc = *funcDefNode->getFunction(); in visitMain()
62 TIntermFunctionPrototype *externalMainProto = funcDefNode->getFunctionPrototype(); in visitMain()
70 TIntermBlock *internalMainBody = funcDefNode->getBody(); in visitMain()
78 &root, funcDefNode, TIntermSequence{internalMainDef, externalMainDef})); in visitMain()
DMapFunctionsToDefinitions.cpp20 bool visitFunctionDefinition(Visit, TIntermFunctionDefinition *funcDefNode) override in visitFunctionDefinition() argument
22 const TFunction *func = funcDefNode->getFunction(); in visitFunctionDefinition()
24 mFuncToDef[func] = funcDefNode; in visitFunctionDefinition()
DDiscoverDependentFunctions.cpp76 TIntermFunctionDefinition &funcDefNode = *it->second; in visitAggregate() local
77 funcDefNode.traverse(this); in visitAggregate()
93 bool visitFunctionDefinition(Visit visit, TIntermFunctionDefinition *funcDefNode) override in visitFunctionDefinition() argument
95 const TFunction *func = funcDefNode->getFunction(); in visitFunctionDefinition()
DDiscoverEnclosingFunctionTraverser.cpp25 if (TIntermFunctionDefinition *funcDefNode = ancestor->getAsFunctionDefinition()) in discoverEnclosingFunction() local
27 return funcDefNode->getFunction(); in discoverEnclosingFunction()
DRewritePipelines.cpp658 PostResult visitFunctionDefinitionPost(TIntermFunctionDefinition &funcDefNode) override in visitFunctionDefinitionPost() argument
660 if (funcDefNode.getFunction()->isMain()) in visitFunctionDefinitionPost()
662 return visitMain(funcDefNode); in visitFunctionDefinitionPost()
666 return visitNonMain(funcDefNode); in visitFunctionDefinitionPost()
670 TIntermNode &visitNonMain(TIntermFunctionDefinition &funcDefNode) in visitNonMain() argument
672 TIntermFunctionPrototype &funcProtoNode = *funcDefNode.getFunctionPrototype(); in visitNonMain()
679 return funcDefNode; in visitNonMain()
685 TIntermBlock *body = funcDefNode.getBody(); in visitNonMain()
690 TIntermNode &visitMain(TIntermFunctionDefinition &funcDefNode) in visitMain() argument
692 TIntermFunctionPrototype &funcProtoNode = *funcDefNode.getFunctionPrototype(); in visitMain()
[all …]
DRewriteKeywords.cpp387 PostResult visitFunctionDefinitionPost(TIntermFunctionDefinition &funcDefNode) override in visitFunctionDefinitionPost() argument
389 TIntermFunctionPrototype &funcProtoNode = *funcDefNode.getFunctionPrototype(); in visitFunctionDefinitionPost()
395 return *new TIntermFunctionDefinition(rFuncProtoNode, funcDefNode.getBody()); in visitFunctionDefinitionPost()
397 return funcDefNode; in visitFunctionDefinitionPost()
DEmitMetal.cpp1836 bool GenMetalTraverser::visitFunctionDefinition(Visit, TIntermFunctionDefinition *funcDefNode) in visitFunctionDefinition() argument
1838 const TFunction &func = *funcDefNode->getFunction(); in visitFunctionDefinition()
1839 TIntermBlock &body = *funcDefNode->getBody(); in visitFunctionDefinition()