[Mlir-commits] [clang] [llvm] [mlir] [NVPTX] Convert vector function nvvm.annotations to attributes (PR #127736)
Artem Belevich
llvmlistbot at llvm.org
Wed Feb 19 11:54:32 PST 2025
================
@@ -5059,6 +5092,18 @@ bool static upgradeSingleNVVMAnnotation(GlobalValue *GV, StringRef K,
cast<Function>(GV)->addFnAttr("nvvm.maxnreg", llvm::utostr(CV));
return true;
}
+ if (K.consume_front("maxntid") && (K == "x" || K == "y" || K == "z")) {
----------------
Artem-B wrote:
Looks like we could benefit from `isXYZ()` helper here and above.
https://github.com/llvm/llvm-project/pull/127736
More information about the Mlir-commits
mailing list