[PATCH] D124751: [HLSL] Support -E option for HLSL.

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 26 18:15:59 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/test/SemaHLSL/entry.hlsl:2
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -Efoo -DWITH_NUM_THREADS -ast-dump -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -Efoo  -o - %s  -verify
+
----------------
bruno wrote:
> Can you also add a check that rejects `-Efoo` with an error message when the language is not `hlsl`?
For most triples, the cc1 -E means stopping after preprocessing. If dxil -E is different, better to use a different option to avoid confusion.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124751



More information about the cfe-commits mailing list