[PATCH] D106523: [Bitcode][Asm] Parse metadata value from operand bundles

Necip Fazil Yildiran via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 22:54:09 PDT 2021


necipfazil added a comment.

This is needed for D105909 <https://reviews.llvm.org/D105909> since it attaches type identifiers to call sites as operand bundles with metadata value. Now we can successfully compile LLVM IR with metadata operand bundles to object file while preserving the bundle value.

On the other hand, we cannot read metadata value in and out, i.e., operand bundle value is garbage when LLVM IR is compiled to bitcode, then disassembled back to LLVM IR. One of the tests [1] is a small reproducer.

[1] llvm/test/Bitcode/2021-07-22-Metadata-Operand-Bundles.ll


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106523/new/

https://reviews.llvm.org/D106523



More information about the llvm-commits mailing list