[Mlir-commits] [mlir] [mlir] Add llvm.linker.options operation to the LLVM IR Dialect (PR #71720)
Christian Ulmann
llvmlistbot at llvm.org
Thu Nov 9 09:06:52 PST 2023
================
@@ -172,6 +172,24 @@ convertCallLLVMIntrinsicOp(CallIntrinsicOp op, llvm::IRBuilderBase &builder,
return success();
}
+static void convertLinkerOptionsOp(ArrayAttr options,
+ llvm::IRBuilderBase &builder,
+ LLVM::ModuleTranslation &moduleTranslation) {
+ llvm::Module *llvmModule = moduleTranslation.getLLVMModule();
+ llvm::LLVMContext &context = llvmModule->getContext();
+ llvm::NamedMDNode *linkerMDNode =
+ llvmModule->getOrInsertNamedMetadata("llvm.linker.options");
+ SmallVector<llvm::Metadata *> MDNodes;
----------------
Dinistro wrote:
Nit: Can you add a `reserve` call here?
https://github.com/llvm/llvm-project/pull/71720
More information about the Mlir-commits
mailing list