[Mlir-commits] [mlir] [MLIR][LLVM] Add import flag to skip traversal of DICompositType's elems (PR #89355)

Tobias Gysi llvmlistbot at llvm.org
Fri Apr 19 03:51:20 PDT 2024


================
@@ -34,12 +32,17 @@ class ModuleOp;
 /// The translation supports operations from any dialect that has a registered
 /// implementation of the LLVMImportDialectInterface. It returns nullptr if the
 /// translation fails and reports errors using the error handler registered with
-/// the MLIR context. The `emitExpensiveWarnings` option controls if expensive
+/// the MLIR context.
+/// The `emitExpensiveWarnings` option controls if expensive
 /// but uncritical diagnostics should be emitted.
+/// The `importEmptyDICompositeTypes` option controls if DICompositeTypes should
+/// be imported without elements. This is a way to avoid triggering any parts of
+/// the recursive DI metadata import, which can consume substantial amounts of
+/// time.
----------------
gysit wrote:

```suggestion
/// be imported without elements. If set, the option avoids the recursive traversal
/// of composite type debug information, which can be expensive for adversarial inputs.
```

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


More information about the Mlir-commits mailing list