Basic documentation of the Stack Safety Analysis.
It will be improved during review and upstream of an implementation.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 25352 Build 25351: arc lint + arc unit
Event Timeline
llvm/docs/StackSafetyAnalysis.rst | ||
---|---|---|
13 | Oops: s/ofscope/of-scope/ |
llvm/docs/StackSafetyAnalysis.rst | ||
---|---|---|
14 | I'd like to see the use-of-uninitialized-memory mentioned here explicitly as well, and treated as one of the primary design goals. |
llvm/docs/Passes.rst | ||
---|---|---|
363 | I think we should distinguish the analysis itself which simply lets you query safety of variables, and the wrapper pass that sets the metadata. The primary usage mode of this thing should be by query, not by metadata IMHO. |
llvm/docs/Passes.rst | ||
---|---|---|
363 | I just wanted to chime in and say that in the ThinLTO case I think we have to annotate allocas with metadata since the global analysis has to run before any transformations occur. That said, the interface can be as you said where we just hide the logic to check metadata or otherwise run the analysis. |
I think we should distinguish the analysis itself which simply lets you query safety of variables, and the wrapper pass that sets the metadata. The primary usage mode of this thing should be by query, not by metadata IMHO.