[flang-commits] [flang] [flang][debug] Support IndexType. (PR #113921)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Oct 28 09:02:21 PDT 2024
================
@@ -583,6 +583,9 @@ DebugTypeGenerator::convertType(mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr,
return convertVectorType(vecTy, fileAttr, scope, declOp);
} else if (mlir::isa<mlir::NoneType>(Ty)) {
return mlir::LLVM::DINullTypeAttr::get(context);
+ } else if (mlir::isa<mlir::IndexType>(Ty)) {
+ return genBasicType(context, mlir::StringAttr::get(context, "integer"), 64,
----------------
tblah wrote:
Is IndexType 64 bits on all platforms? What about 32bit systems? 128 bit systems?
https://github.com/llvm/llvm-project/pull/113921
More information about the flang-commits
mailing list