[all-commits] [llvm/llvm-project] b07771: [BOLT] Support non-null MCInst operands in annotat...

Brian Cain via All-commits all-commits at lists.llvm.org
Fri Apr 17 07:46:07 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b077718c8911dea21efc4d21b2abbf2d85435640
      https://github.com/llvm/llvm-project/commit/b077718c8911dea21efc4d21b2abbf2d85435640
  Author: Brian Cain <brian.cain at oss.qualcomm.com>
  Date:   2026-04-17 (Fri, 17 Apr 2026)

  Changed paths:
    M bolt/include/bolt/Core/MCPlus.h
    M bolt/include/bolt/Core/MCPlusBuilder.h

  Log Message:
  -----------
  [BOLT] Support non-null MCInst operands in annotation handling (#192188)

The annotation sentinel in BOLT is a null MCInst operand appended after
all prime operands. However, some architectures (e.g. Hexagon) use
non-null MCInst operands as legitimate prime operands for duplex
sub-instructions. The existing code treated any MCInst operand as the
annotation sentinel, causing duplex sub-instructions to be
misidentified.
    
In getNumPrimeOperands(), only treat a null MCInst operand as the
sentinel. In getAnnotationInstOp(), skip non-null MCInst operands when
searching for the annotation sentinel.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list