[Mlir-commits] [mlir] [mlir][llvm] adds an attribute for the module level assembly (PR #151318)
Tobias Gysi
llvmlistbot at llvm.org
Thu Jul 31 04:17:27 PDT 2025
================
@@ -1063,6 +1064,18 @@ void ModuleImport::convertTargetTriple() {
builder.getStringAttr(llvmModule->getTargetTriple().str()));
}
+void ModuleImport::convertModuleLevelAsm() {
+ auto str = llvmModule->getModuleInlineAsm();
----------------
gysit wrote:
```suggestion
llvm::StringRef asmStr = llvmModule->getModuleInlineAsm();
```
nit: Auto should only be used if the type is clear from the RHS (not sure if I picked the correct type).
https://github.com/llvm/llvm-project/pull/151318
More information about the Mlir-commits
mailing list