[PATCH] D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage
Justin Bogner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 18:25:31 PDT 2023
bogner added a subscriber: Keenuts.
bogner 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() == llvm::Triple::ShaderModel;
- if (!SupportedTarget)
+ if (T.isDXIL() || T.isSPIRV) {
+ enum { ShaderModel, ShaderStage };
----------------
@Keenuts Does this look right, or do we want something like `T.isSPIRVLogical` here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159103/new/
https://reviews.llvm.org/D159103
More information about the llvm-commits
mailing list