[PATCH] D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage

2023-09-13 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts accepted this revision. Keenuts added a comment. This revision is now accepted and ready to land. LGTM from the SPIR-V side. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D159103/new/ https://reviews.llvm.org/D159103 ___

[PATCH] D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage

2023-09-12 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts added inline comments. Comment at: clang/lib/Frontend/CompilerInvocation.cpp:4146 if (Opts.HLSL) { -bool SupportedTarget = (T.getArch() == llvm::Triple::dxil || -T.getArch() == llvm::Triple::spirv) && - T.getOS(

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

2023-09-11 Thread Nathan Gauër via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG53b6a169e453: [SPIR-V] Add SPIR-V logical triple. (authored by Keenuts). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://

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

2023-09-11 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts added a comment. > Either I could push the patch for you (adding you as an author) or preferably > you could gain commit access yourself for this and future patches. Thanks, got commit access. Running tests again and merging this. Repository: rG LLVM Github Monorepo CHANGES SINCE LA

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

2023-09-06 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts added a comment. In D155978#4639094 , @mpaszkowski wrote: > @Keenuts Hi Nathan, thanks for the patch! I agree with your approach and I > think that this solution despite being a "hack" seems to be the most > straightforward. Eventual difference

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

2023-09-04 Thread Nathan Gauër via Phabricator via cfe-commits
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

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

2023-08-23 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts added inline comments. Comment at: llvm/unittests/TargetParser/TripleTest.cpp:1307 + EXPECT_TRUE(T.isSPIRV()); + T.setArch(Triple::spirv32); Keenuts wrote: > Anastasia wrote: > > pmatos wrote: > > > Keenuts wrote: > > > > pmatos wrote: > > > > > I am

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

2023-08-14 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts added inline comments. Comment at: llvm/unittests/TargetParser/TripleTest.cpp:1307 + EXPECT_TRUE(T.isSPIRV()); + T.setArch(Triple::spirv32); Anastasia wrote: > pmatos wrote: > > Keenuts wrote: > > > pmatos wrote: > > > > I am not well-versed in SPIRV

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

2023-08-11 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts marked an inline comment as done. Keenuts added inline comments. Comment at: llvm/include/llvm/TargetParser/Triple.h:106 +wasm32, // WebAssembly with 32-bit pointers +wasm64, // WebAssembly with 64-bit pointers renderscript32, // 32-bit RenderScript

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

2023-08-11 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts marked 4 inline comments as done. Keenuts added a comment. Thanks for the review 😊 Reverted clang-format patch, and answered inline. Comment at: llvm/include/llvm/TargetParser/Triple.h:106 +wasm32, // WebAssembly with 32-bit pointers +wasm64, // WebAss

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

2023-08-11 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts updated this revision to Diff 549288. Keenuts added a comment. Revert "clang-format" 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/

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

2023-08-07 Thread Nathan Gauër via Phabricator via cfe-commits
Keenuts updated this revision to Diff 547722. Keenuts added a comment. Herald added subscribers: wangpc, s.egerton, simoncook, asb, fedor.sergeev, aheejin, dschuff, rampitec. git-clang-format on changed files. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.ll

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

2023-08-07 Thread Nathan Gauër via Phabricator via cfe-commits
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. Kee