[PATCH] D125052: [HLSL] Enable vector types for hlsl.
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 24 07:22:21 PDT 2022
Anastasia added inline comments.
================
Comment at: clang/lib/Basic/LangOptions.cpp:122
+ if (Opts.HLSL)
+ Includes.push_back("hlsl.h");
----------------
Is this header expected to be large? You might want to flag up in the description of the review and the comments in the header itself what content is expected to be there.
If the file is expected to be large it might make sense to add a flag that would disable this include. You can then for example use bare clang without this header for all the tests that don't require functionality from the header to reduce the testing time.
================
Comment at: clang/test/CodeGenHLSL/basic_types.hlsl:1
+// RUN: %clang_dxc -Tlib_6_7 -Fo - %s | FileCheck %s
+
----------------
Technically mapping into IR types might be target specific, so passing the triple is necessary for this test to work correctly. Alternatively you can switch to AST dump checking, however even that might be target specific in some cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125052/new/
https://reviews.llvm.org/D125052
More information about the cfe-commits
mailing list