[PATCH] D111751: [ptr_provenance] Add llvm-c support.

Jeroen Dobbelaere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 13 11:41:21 PDT 2021


jeroen.dobbelaere created this revision.
jeroen.dobbelaere added reviewers: deadalnix, asbirlea, jdoerfert.
Herald added subscribers: dexonsmith, hiraditya.
jeroen.dobbelaere requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This introduces LLVMExperimentalGetPtrProvenanceOperand and LLVMExperimentalSetPtrProvenanceOperand. They can be used to get/set/remove the ptr_provenance operand of a load or store instruction.

NOTE: @deadalnix The test currently triggers an assertion failure as `llvm-c-test --echo` creates different internal types for the 'i8*' type of the pointer operand and the ptr_provenance operand.


https://reviews.llvm.org/D111751

Files:
  llvm/include/llvm-c/Core.h
  llvm/lib/IR/Core.cpp
  llvm/test/Bindings/llvm-c/echo.ll
  llvm/tools/llvm-c-test/echo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111751.379482.patch
Type: text/x-patch
Size: 4159 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211013/276e7d30/attachment.bin>


More information about the llvm-commits mailing list