[Mlir-commits] [mlir] [MLIR][LLVMIR] Add module flags support (PR #130679)
Bruno Cardoso Lopes
llvmlistbot at llvm.org
Fri Mar 14 11:56:59 PDT 2025
================
@@ -517,6 +517,38 @@ void ModuleImport::addDebugIntrinsic(llvm::CallInst *intrinsic) {
debugIntrinsics.insert(intrinsic);
}
+LogicalResult ModuleImport::convertModuleFlagsMetadata() {
+ SmallVector<llvm::Module::ModuleFlagEntry, 4> llvmModuleFlags;
+ for (const llvm::NamedMDNode &named : llvmModule->named_metadata()) {
+ if (named.getName() != LLVMDialect::getModuleFlags())
+ continue;
+ llvmModule->getModuleFlagsMetadata(llvmModuleFlags);
----------------
bcardosolopes wrote:
oops :)
https://github.com/llvm/llvm-project/pull/130679
More information about the Mlir-commits
mailing list