Anastasia added inline comments.

================
Comment at: clang/lib/Basic/Targets/SPIR.h:233
+    if (Opts.HIP && Opts.CUDAIsDevice)
+      // Enable address space mapping from HIP to SPIR-V.
+      // See comment on the SPIRDefIsGenMap table.
----------------
My guess is that this is not only HIP specific but for example the same applies 
to SYCL.

I am not sure if it makes more sense to move this into a `BaseSPIRTargetInfo` 
since this is not really SPIR-V specific logic. It is just a clang design 
misalignment between two address space concepts that has to be addressed 
properly at some point.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108621/new/

https://reviews.llvm.org/D108621

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to