[llvm] [clang] [NVPTX] Add 'activemask' builtin and intrinsic support (PR #79768)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 29 11:37:58 PST 2024
================
@@ -4599,6 +4599,14 @@ def int_nvvm_vote_ballot_sync :
[IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.ballot.sync">,
ClangBuiltin<"__nvvm_vote_ballot_sync">;
+//
+// ACTIVEMASK
+//
+def int_nvvm_activemask :
+ Intrinsic<[llvm_i32_ty], [],
+ [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback, IntrHasSideEffects], "llvm.nvvm.activemask">,
+ ClangBuiltin<"__nvvm_activemask">;
----------------
jhuber6 wrote:
Yes, I was going to do that in a follow-up but I could do it in this patch if that's cleaner.
https://github.com/llvm/llvm-project/pull/79768
More information about the cfe-commits
mailing list