mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Clarify some lowlevel code to make it clearer what to do when adding new ones
This commit is contained in:
parent
5ac12efbe5
commit
6b932f9743
4 changed files with 152 additions and 135 deletions
|
@ -8,7 +8,7 @@ use bumpalo::{self, collections::Vec, Bump};
|
|||
|
||||
use roc_builtins::bitcode::IntWidth;
|
||||
use roc_collections::all::{MutMap, MutSet};
|
||||
use roc_module::low_level::LowLevel;
|
||||
use roc_module::low_level::LowLevelWrapperType;
|
||||
use roc_module::symbol::{Interns, ModuleId, Symbol};
|
||||
use roc_mono::code_gen_help::CodeGenHelp;
|
||||
use roc_mono::ir::{Proc, ProcLayout};
|
||||
|
@ -62,7 +62,10 @@ pub fn build_module_help<'a>(
|
|||
// and filter out procs we're going to inline
|
||||
let mut fn_index: u32 = 0;
|
||||
for ((sym, layout), proc) in procedures.into_iter() {
|
||||
if LowLevel::from_inlined_wrapper(sym).is_some() {
|
||||
if matches!(
|
||||
LowLevelWrapperType::from_symbol(sym),
|
||||
LowLevelWrapperType::CanBeReplacedBy(_)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
procs.push(proc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue