[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 22 13:48:55 PDT 2023
================
@@ -5607,6 +5607,21 @@ bool Sema::CheckRegparmAttr(const ParsedAttr &AL, unsigned &numParams) {
return false;
}
+// Helper to get CudaArch.
+static CudaArch getCudaArch(const TargetInfo &TI) {
----------------
Artem-B wrote:
You may need to verify that `TI->getTriple()->isNVPTX()` before casting, but other than that, LGTM.
https://github.com/llvm/llvm-project/pull/66496
More information about the cfe-commits
mailing list