mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-10 19:19:19 +00:00
improve comment on llvm_passes
This commit is contained in:
parent
f28ddea805
commit
12e8710f4f
1 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
|||
use roc_mono::ir::OptLevel;
|
||||
|
||||
// generated using "opt --passes="default<Oz>" --print-pipeline-passes example.ll"
|
||||
//
|
||||
// we also include a "globaldce" pass at the beggining of each pipeline here, which is required
|
||||
// to prevent bugs with the surgical linker, and also improves the build time.
|
||||
pub fn get_llvm_passes_str(opt_level: OptLevel) -> &'static str {
|
||||
match opt_level {
|
||||
OptLevel::Development | OptLevel::Normal => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue