Lunderberg commented on code in PR #14568:
URL: https://github.com/apache/tvm/pull/14568#discussion_r1162890094
##########
src/target/llvm/codegen_cpu.cc:
##########
@@ -300,6 +296,36 @@ llvm::DIType* CodeGenCPU::GetDebugType(const Type& ty_tir,
llvm::Type* ty_llvm)
: nullptr;
return dbg_info_->di_builder_->createPointerType(pointee_type,
ty_llvm->getPrimitiveSizeInBits());
+
+ } else if (auto* prim_type = ty_tir.as<PrimTypeNode>()) {
+ DataType dtype = prim_type->dtype;
+ auto [name, dwarf_type] = [&]() -> std::tuple<const char*,
llvm::dwarf::TypeKind> {
Review Comment:
Thank you. With the `DLDataType2String` it ended up being unnecessary, but
I will keep that in mind for the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]