Conversation
|
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/src/metal.jl b/src/metal.jl
index fd571f1..5142774 100644
--- a/src/metal.jl
+++ b/src/metal.jl
@@ -1013,7 +1013,7 @@ function annotate_air_intrinsics!(@nospecialize(job::CompilerJob), mod::LLVM.Mod
end
push!(fn_attrs, EnumAttribute(name, 0))
end
- changed = true
+ return changed = true
end
function add_param_attributes(idx, names...)
@@ -1028,7 +1028,7 @@ function annotate_air_intrinsics!(@nospecialize(job::CompilerJob), mod::LLVM.Mod
if fn == "air.wg.barrier" || fn == "air.simdgroup.barrier"
add_fn_attributes("nounwind", "mustprogress", "convergent", "willreturn")
- # sincos
+ # sincos
elseif match(r"^air.sincos", fn) !== nothing
add_param_attributes(2, "nocapture", "writeonly")
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #762 +/- ##
==========================================
- Coverage 74.97% 74.73% -0.24%
==========================================
Files 24 24
Lines 3764 3772 +8
==========================================
- Hits 2822 2819 -3
- Misses 942 953 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Are we correctly emitting |
maleadt
left a comment
There was a problem hiding this comment.
LGTM, thanks.
It would be good to start adding tests for things like this though. Should be reasonable with the FileCheck infrastructure we have nowadays.
|
I agree that tests are probably a good idea. I'll look into FileCheck at some point in the near future. Merging can probably wait until I get around to tests (unless someone speaks up otherwise). |
Close #663. This does NOT resolve issue #761 but I wrote it while troubleshooting it and figured I may as well open a PR.