[clang] [llvm] [mlir] [NVPTX] Unify and extend barrier{.cta} intrinsic support (PR #140615)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Mon May 19 17:48:08 PDT 2025
================
@@ -1349,6 +1349,10 @@ static bool upgradeIntrinsicFunction1(Function *F, Function *&NewFn,
else if (Name == "clz.ll" || Name == "popc.ll" || Name == "h2f" ||
Name == "swap.lo.hi.b64")
Expand = true;
+ else if (Name == "barrier0" || Name == "barrier.n" ||
----------------
Artem-B wrote:
Ideally, all we need is a "has_known_prefix" function and a sorted array of known prefixes. This would give us both efficient search and an easily readable/maintainable list of intrinsics we care about. But given that it's nowhere near the hot path, we don't have to do it. The current version is fine.
https://github.com/llvm/llvm-project/pull/140615
More information about the cfe-commits
mailing list