[PATCH] D136637: [llvm-c] add LLVMReplaceMDNodeOperandWith
Davide Bertola via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 28 00:31:03 PDT 2022
davibe updated this revision to Diff 471422.
davibe added a comment.
I also added LLVMIsAValueAsMetadata, since LLVMIsAMDNode is a bit of a lier and returns true for ValueAsMetadata values as well, so the way to know if something is truly a mdnode is to call LLVMIsAMDNode(v) && !LLVMIsAValueAsMetadata(v)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136637/new/
https://reviews.llvm.org/D136637
Files:
llvm/include/llvm-c/Core.h
llvm/lib/IR/Core.cpp
llvm/tools/llvm-c-test/llvm-c-test.h
llvm/tools/llvm-c-test/main.c
llvm/tools/llvm-c-test/metadata.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136637.471422.patch
Type: text/x-patch
Size: 5439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221028/6ed2dee3/attachment.bin>
More information about the llvm-commits
mailing list