[all-commits] [llvm/llvm-project] 074a25: [RISCV][MC] Create an AsmOperand for carry-in vmas...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Fri Jan 24 13:02:55 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 074a25fb2678dacb4f3c6a24d5f907788c858e7a
      https://github.com/llvm/llvm-project/commit/074a25fb2678dacb4f3c6a24d5f907788c858e7a
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2025-01-24 (Fri, 24 Jan 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoV.td
    A llvm/test/MC/Disassembler/RISCV/vmask-carry-in.txt
    A llvm/test/MC/RISCV/rvv/vmask-carry-in.s

  Log Message:
  -----------
  [RISCV][MC] Create an AsmOperand for carry-in vmask (#124317)

Previously we used a fixed assembly string as well as encoding for the
carry-in vector mask, since it will always be there. However, this makes
both AsmParser and disassembler to either create a garbage MCOperand for
the mask or fail to add one as a whole. This wouldn't be a problem for
majority of the cases but tools like llvm-mca who relies on MCInst will
fail to account for the register dependency on these mask operands.



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