[clang] [HLSL] Implement HLSL Flat casting (excluding splat cases) (PR #118842)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 23 16:48:20 PST 2025


================
@@ -1461,6 +1552,7 @@ static bool castPreservesZero(const CastExpr *CE) {
   case CK_NonAtomicToAtomic:
   case CK_AtomicToNonAtomic:
   case CK_HLSLVectorTruncation:
+  case CK_HLSLAggregateCast: // TODO does CK_HLSLAggregateCast preserve zero?
----------------
llvm-beanz wrote:

Yes, it should.

https://github.com/llvm/llvm-project/pull/118842


More information about the cfe-commits mailing list