[PATCH] D155978: [SPIRV] Add SPIR-V logical triple.

Nathan Gauër via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 4 06:44:31 PDT 2023


Keenuts updated this revision to Diff 555745.
Keenuts added a comment.

Changed the pointer size to 32 bit to 64 bits.
So far, I haven't see any codegen difference, as logical pointers do
not have a fixed size (driver will set it).
However, in case of a raw buffer load (Vulkan extension), with the
PhysicalStorageBuffer64 memory model, pointers are fixed to 64bits.
Since I haven't found a competing memory model with a fixed 32-bit pointer
size in use for Vulkan, I thought we had 1 argument to choose 64 bits.

But once again, this shouldn't change anything, as pointers have no size.

Commits for this change:

- fixup! [SPIR-V] Add SPIR-V logical triple.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D155978

Files:
  clang/lib/Basic/Targets.cpp
  clang/lib/Basic/Targets/SPIR.cpp
  clang/lib/Basic/Targets/SPIR.h
  clang/lib/Frontend/CompilerInvocation.cpp
  llvm/include/llvm/TargetParser/Triple.h
  llvm/lib/TargetParser/Triple.cpp
  llvm/unittests/TargetParser/TripleTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155978.555745.patch
Type: text/x-patch
Size: 17999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230904/8388282d/attachment-0001.bin>


More information about the cfe-commits mailing list