[clang] [HLSL] Make memory representation of boolean vectors in HLSL, vectors of i32. Add support for boolean swizzling. (PR #123977)

Sarah Spall via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 24 09:15:05 PST 2025


================
@@ -410,6 +410,12 @@ VectorType::VectorType(TypeClass tc, QualType vecType, unsigned nElements,
   VectorTypeBits.NumElements = nElements;
 }
 
+bool Type::isPackedVectorBoolType(const ASTContext &ctx) const {
+  if (ctx.getLangOpts().HLSL)
----------------
spall wrote:

The code to state that a bool vector should be a vector of i32s isn't accessible here. 

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


More information about the cfe-commits mailing list