[Mlir-commits] [flang] [mlir] [flang][mlir] Add llvm.ident metadata when compiling with flang (PR #102506)

Christian Ulmann llvmlistbot at llvm.org
Fri Aug 9 02:07:26 PDT 2024


================
@@ -1814,6 +1814,19 @@ LogicalResult ModuleTranslation::createTBAAMetadata() {
   return success();
 }
 
+LogicalResult ModuleTranslation::createIdentMetadata() {
+  if (auto attr = mlirModule->getAttrOfType<mlir::StringAttr>("llvm.ident")) {
+    llvm::StringRef ident = attr;
----------------
Dinistro wrote:

```suggestion
   StringRef ident = attr;
```

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


More information about the Mlir-commits mailing list