[clang] [HLSL][Matrix] Add support for Matrix element and trunc Casts (PR #168915)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 2 08:36:45 PST 2025
================
@@ -0,0 +1,293 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -fnative-half-type -finclude-default-header -Wconversion -verify -o - %s -DERROR=1
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -fnative-half-type -finclude-default-header -Wno-conversion -ast-dump %s | FileCheck %s
----------------
llvm-beanz wrote:
```suggestion
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -fnative-half-type -finclude-default-header -verify -o - %s -DERROR=1
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -fnative-half-type -finclude-default-header -ast-dump %s | FileCheck %s
```
The matrix warnings should be on by default so they shouldn't be impacted by or require `-Wconversion`.
https://github.com/llvm/llvm-project/pull/168915
More information about the cfe-commits
mailing list