Skip to content
Snippets Groups Projects

Add more LLVM attributes

Merged rarbore2 requested to merge llvm_attrs into main
+ 2
2
@@ -76,7 +76,7 @@ impl<'a> CPUContext<'a> {
} else {
write!(
w,
"define dso_local nonnull noundef nounwind nosync willreturn norecurse {} @{}_{}(",
"define dso_local nonnull noundef {} @{}_{}(",
self.get_type(return_type),
self.module_name,
self.function.name,
@@ -146,7 +146,7 @@ impl<'a> CPUContext<'a> {
self.function.name,
)?;
}
write!(w, ") {{\n")?;
write!(w, ") nounwind nosync willreturn norecurse {{\n")?;
let mut blocks: BTreeMap<_, _> = (0..self.function.nodes.len())
.filter(|idx| self.function.nodes[*idx].is_control())
Loading