[PATCH] D104270: [ptr_provenance] Bitcode reader/writer support for the optional ptr_provenance operand of load/store instructions

Jeroen Dobbelaere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 14 15:03:04 PDT 2021


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

This patch introduces bitcode reader/writer support for the optional ptr_provenance operand of load/store instructions.

This is done in a backwards and future compatible way:  when present, an extra 'bool true' + the value and type are pushed.
When reading, if there are extra values, the first bool indicates if a ptr_provenance operand is available or not.

If in future more optional values are needed, extra bools can be added to indicate that they are present. As soon as one extra
optional value is emitted, the status of the others should also be emitted.

Note: this corresponds to D87254 <https://reviews.llvm.org/D87254>


https://reviews.llvm.org/D104270

Files:
  llvm/lib/Bitcode/Reader/BitcodeReader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/test/Bitcode/compatibility.ll
  llvm/test/Bitcode/loadstore_ptr_provenance.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104270.352003.patch
Type: text/x-patch
Size: 13336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210614/82abe2a3/attachment-0001.bin>


More information about the llvm-commits mailing list