aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorSarah Spall <sarahspall@microsoft.com>2025-03-11 13:54:09 -0700
committerGitHub <noreply@github.com>2025-03-11 13:54:09 -0700
commitf9568e8d23b7f38bf60f46adac65b98f9e2b6e4e (patch)
tree17c84d5c073bb13f08c6ba7e4d3d0063ea2b9058 /clang/lib/CodeGen/CGDebugInfo.cpp
parentdafb566710cd03b7fbb4b187a91f32be9452fd8c (diff)
downloadllvm-f9568e8d23b7f38bf60f46adac65b98f9e2b6e4e.zip
llvm-f9568e8d23b7f38bf60f46adac65b98f9e2b6e4e.tar.gz
llvm-f9568e8d23b7f38bf60f46adac65b98f9e2b6e4e.tar.bz2
[HLSL] Make memory representation of boolean vectors in HLSL, vectors of i32. Add support for boolean swizzling. (#123977)
Make the memory representation of boolean vectors in HLSL, vectors of i32. Allow boolean swizzling for boolean vectors in HLSL. Add tests for boolean vectors and boolean vector swizzling. Closes #91639
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 0e6daa4..7020cef8 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -3308,7 +3308,7 @@ llvm::DIType *CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty,
llvm::DIType *CGDebugInfo::CreateType(const VectorType *Ty,
llvm::DIFile *Unit) {
- if (Ty->isExtVectorBoolType()) {
+ if (Ty->isPackedVectorBoolType(CGM.getContext())) {
// Boolean ext_vector_type(N) are special because their real element type
// (bits of bit size) is not their Clang element type (_Bool of size byte).
// For now, we pretend the boolean vector were actually a vector of bytes