Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

findSymbol in optimize layer #3

Closed
preejackie opened this issue Mar 28, 2019 · 1 comment
Closed

findSymbol in optimize layer #3

preejackie opened this issue Mar 28, 2019 · 1 comment

Comments

@preejackie
Copy link

return CompileLayer.findSymbol(mangledName, exportedSymbolsOnly);
in this line findSymbol method is called from the compile layer. Is there any drawback associated if I call findSymbol method on optimize layer ?

@weliveindetail
Copy link
Owner

Hey preejackie. Layers are organized in a stack and usually they will pass down control-flow. The IRTransformLayer::findSymbol(), I believe, only does that. So, if it sits on top of a IRCompileLayer, semantics shouldn't change. addModule() may have optimized away a function, though ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants