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

Nathan Gauër via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 7 04:46:42 PDT 2023


Keenuts created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Keenuts updated this revision to Diff 544701.
Keenuts added a comment.
Herald added a subscriber: pmatos.
Keenuts updated this revision to Diff 544703.
Keenuts updated this revision to Diff 547682.
Keenuts edited the summary of this revision.
Keenuts added reviewers: Anastasia, mpaszkowski.
Keenuts published this revision for review.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

Add the SPIRV define in all SPIRV targets.


Keenuts added a comment.

format fix & rebase


Keenuts added a comment.

rebasing


Clang implements SPIR-V with both Physical32 and Physical64 addressing
models. This commit adds a new triple value for the Logical
addressing model.
This will be required to add the graphics part of the SPIR-V backend (targeting vulkan for now).


Repository:
  rG LLVM Github Monorepo

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.547682.patch
Type: text/x-patch
Size: 17981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230807/d6b47c81/attachment-0001.bin>


More information about the cfe-commits mailing list