Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(二)存活性分析 - Rust中文博客 #2

Open
utterances-bot opened this issue Jan 30, 2022 · 1 comment
Open

(二)存活性分析 - Rust中文博客 #2

utterances-bot opened this issue Jan 30, 2022 · 1 comment

Comments

@utterances-bot
Copy link

(二)存活性分析 - Rust中文博客

https://frank-king.github.io/rustblog-zh/2022-01-polonius/01-23-%E5%80%9F%E7%94%A8%E6%A3%80%E6%9F%A5%EF%BC%88%E4%BA%8C%EF%BC%89-%E5%AD%98%E6%B4%BB%E6%80%A7%E5%88%86%E6%9E%90.html

Copy link
Owner

frank-king commented Jan 30, 2022

MIR中的StorageLiveStorageDead主要用于LLVM栈空间分配。

StorageLive(_1) indicates that the variable _1 is "live", meaning that it may be used later – this will persist until we encounter a StorageDead(_1) statement, which indicates that the variable _1 is done being used. These "storage statements" are used by LLVM to allocate stack space.

详见https://rustc-dev-guide.rust-lang.org/mir/index.html

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

No branches or pull requests

2 participants