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

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 07:59:46 PST 2025


================
@@ -2064,6 +2064,9 @@ llvm::Value *CodeGenFunction::EmitToMemory(llvm::Value *Value, QualType Ty) {
 
   if (Ty->isExtVectorBoolType()) {
----------------
farzonl wrote:

you replaced a bunch of `isExtVectorBoolType()` with `isPackedVectorBoolType`.  We are only doing HLSL modifications on the `isExtVectorBoolType()`. But `isExtVectorBoolType` doesn't mean the vector is not not packed. Is the Zero extend and truncation to get them into a form that they will become packed?

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


More information about the cfe-commits mailing list