[all-commits] [llvm/llvm-project] c7d95b: [llvm-c] add LLVMReplaceMDNodeOperandWith
Adrian Prantl via All-commits
all-commits at lists.llvm.org
Tue Jan 31 09:58:17 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c7d95ba051012e2d0d51bc365577777b48dd2093
https://github.com/llvm/llvm-project/commit/c7d95ba051012e2d0d51bc365577777b48dd2093
Author: Davide Bertola <bertola.davide at gmail.com>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M llvm/include/llvm-c/Core.h
M llvm/lib/IR/Core.cpp
A llvm/test/Bindings/llvm-c/is_a_value_as_metadata.ll
A llvm/test/Bindings/llvm-c/replace_md_operand.ll
M llvm/tools/llvm-c-test/llvm-c-test.h
M llvm/tools/llvm-c-test/main.c
M llvm/tools/llvm-c-test/metadata.c
Log Message:
-----------
[llvm-c] add LLVMReplaceMDNodeOperandWith
I'm working on a tool that visits debug info and massages it using the
llvm-c API. I noticed that LLVMGetOperand special cases MDNodes so I
can get their operands, but I can't replace them. This patch adds
LLVMReplaceMDNodeOperandWith which boils down to
MDNode::replaceOperandWith.
The name was chosen for consistency with LLVMGetMDNodeOperands and
LLVMGetMDNodeNumOperands.
Differential Revision: https://reviews.llvm.org/D136637
More information about the All-commits
mailing list