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

Christian Ulmann via flang-commits flang-commits at lists.llvm.org
Fri Aug 9 02:07:25 PDT 2024


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

```suggestion
  if (auto attr = mlirModule->getAttrOfType<StringAttr>("llvm.ident")) {
```

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


More information about the flang-commits mailing list