Skip to content
Snippets Groups Projects
Commit 4f4bcfc2 authored by rarbore2's avatar rarbore2
Browse files

Merge branch 'fix_no_entries' into 'main'

Explicitly panic when there are no entry functions

See merge request !71
parents e8ef81ee 3099c8fa
No related branches found
No related tags found
1 merge request!71Explicitly panic when there are no entry functions
Pipeline #200406 passed
......@@ -700,6 +700,8 @@ impl PassManager {
self.fix_deleted_functions(&new_idx);
self.clear_analyses();
assert!(self.module.functions.len() > 0, "PANIC: There are no entry functions in the Hercules module being compiled, and they all got deleted by DeleteUncalled. Please mark at least one function as an entry!");
}
Pass::Verify => {
let (
......
......@@ -205,6 +205,7 @@ fn tone_map<row : usize, col:usize>
return result;
}
#[entry]
fn cava<r, c : usize>(input : u8[CHAN, r, c], TsTw : f32[CHAN, CHAN],
ctrl_pts : f32[CTRL_PTS, CHAN],
weights : f32[CTRL_PTS, CHAN],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment