[clang] [HLSL] Shore up floating point conversions (PR #90222)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Wed May 1 12:08:44 PDT 2024


================
@@ -4393,6 +4401,24 @@ getFixedEnumPromtion(Sema &S, const StandardConversionSequence &SCS) {
   return FixedEnumPromotion::ToPromotedUnderlyingType;
 }
 
+static ImplicitConversionSequence::CompareKind
+HLSLCompareFloatingRank(QualType LHS, QualType RHS) {
+  assert(LHS->isVectorType() == RHS->isVectorType() &&
----------------
farzonl wrote:

Is this true? are there no vector splat cases we need to consider where we would promote a scalar to a vector?

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


More information about the cfe-commits mailing list