[llvm] [SPIR-V] Emit proper pointer type for OpenCL kernel arguments (PR #67726)

Ilia Diachkov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 06:15:10 PDT 2023


================
@@ -194,23 +194,40 @@ getKernelArgTypeQual(const Function &KernelFunction, unsigned ArgIdx) {
   return {};
 }
 
-static Type *getArgType(const Function &F, unsigned ArgIdx) {
+static SPIRVType *getArgSPIRVType(const Function &F, unsigned ArgIdx,
+                                  SPIRVGlobalRegistry *GR,
+                                  MachineIRBuilder &MIRBuilder) {
+  // Read argument's access qualifier from metadata or default
----------------
iliya-diyachkov wrote:

Please add "." at the end of the comment.

https://github.com/llvm/llvm-project/pull/67726


More information about the llvm-commits mailing list