[flang-commits] [flang] [flang][debug] Handle array types with variable size/bounds. (PR #110686)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Thu Oct 3 05:05:42 PDT 2024


================
@@ -78,6 +78,33 @@ static mlir::LLVM::DITypeAttr genPlaceholderType(mlir::MLIRContext *context) {
                       /*bitSize=*/32, llvm::dwarf::DW_ATE_signed);
 }
 
+// Helper function to create DILocalVariableAttr and DbgValueOp when information
+// about the size or dimension of a variable etc lives in an mlir::Value.
+mlir::LLVM::DILocalVariableAttr DebugTypeGenerator::generateArtificialVariable(
+    mlir::MLIRContext *context, mlir::Value Val,
----------------
abidh wrote:

Done.

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


More information about the flang-commits mailing list