[llvm] Emit debug type vector (PR #200056)
Manuel Carrasco via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 07:14:53 PDT 2026
================
@@ -587,6 +595,32 @@ void SPIRVNonSemanticDebugHandler::emitNonSemanticGlobalDebugInfo(
DebugTypeRegs[BT] = BTReg;
}
+ // Emit DebugTypeVector for each collected vector type. Skip vectors whose
+ // element type is not a DIBasicType (composite element types are not yet
+ // supported) and vectors with a non-constant subrange count (not yet
+ // supported).
+ for (const DICompositeType *VT : VectorTypes) {
+ const auto *BaseTy = dyn_cast_or_null<DIBasicType>(VT->getBaseType());
----------------
mgcarrasco wrote:
Could we move the body of the loop into a function similar to emitDebugTypePointer that emits an std::optional? I mean so it is similar to the other ones.
https://github.com/llvm/llvm-project/pull/200056
More information about the llvm-commits
mailing list