LewisCrawford wrote:
I think it might be best to just close this, and leave it to front-ends to
validate instead of adding IR-level validation, as it would make certain
IR-level tests a lot more inconvenient to write. The chances of someone hitting
problems from using invalid address-spaces li
https://github.com/LewisCrawford closed
https://github.com/llvm/llvm-project/pull/138706
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1399,19 +1399,27 @@ void NVPTXAsmPrinter::emitFunctionParamList(const
Function *F, raw_ostream &O) {
if (PTy) {
O << "\t.param .u" << PTySizeInBits << " .ptr";
+bool IsCUDA = static_cast(TM).getDrvInterface()
==
+ NVPTX::CUDA;
https://github.com/LewisCrawford updated
https://github.com/llvm/llvm-project/pull/138706
>From 8bbb3f88048e8041e79d609c982b11ba75199e0e Mon Sep 17 00:00:00 2001
From: Lewis Crawford
Date: Tue, 6 May 2025 15:16:39 +
Subject: [PATCH 1/4] [NVPTX] Add errors for incorrect CUDA addrpaces
The C
@@ -1399,19 +1399,27 @@ void NVPTXAsmPrinter::emitFunctionParamList(const
Function *F, raw_ostream &O) {
if (PTy) {
O << "\t.param .u" << PTySizeInBits << " .ptr";
+bool IsCUDA = static_cast(TM).getDrvInterface()
==
+ NVPTX::CUDA;
https://github.com/LewisCrawford updated
https://github.com/llvm/llvm-project/pull/138706
>From 8bbb3f88048e8041e79d609c982b11ba75199e0e Mon Sep 17 00:00:00 2001
From: Lewis Crawford
Date: Tue, 6 May 2025 15:16:39 +
Subject: [PATCH 1/3] [NVPTX] Add errors for incorrect CUDA addrpaces
The C
@@ -1399,19 +1399,27 @@ void NVPTXAsmPrinter::emitFunctionParamList(const
Function *F, raw_ostream &O) {
if (PTy) {
O << "\t.param .u" << PTySizeInBits << " .ptr";
+bool IsCUDA = static_cast(TM).getDrvInterface()
==
+ NVPTX::CUDA;
https://github.com/LewisCrawford updated
https://github.com/llvm/llvm-project/pull/138706
>From 8bbb3f88048e8041e79d609c982b11ba75199e0e Mon Sep 17 00:00:00 2001
From: Lewis Crawford
Date: Tue, 6 May 2025 15:16:39 +
Subject: [PATCH 1/2] [NVPTX] Add errors for incorrect CUDA addrpaces
The C