[all-commits] [llvm/llvm-project] 09f449: [RISCV] Check for register where immediate should ...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Dec 17 14:39:21 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09f449263e6e9b0e7ba9f972f73734b08575b172
      https://github.com/llvm/llvm-project/commit/09f449263e6e9b0e7ba9f972f73734b08575b172
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-12-17 (Tue, 17 Dec 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

  Log Message:
  -----------
  [RISCV] Check for register where immediate should be in RISCVInstrInfo::verifyInstruction. (#120286)

The generic verifier will do this if the operand type is
OPERAND_IMMEDIATE, but we use our own custom operand types. Immediate
operands are still allowed to be globals, constant pools, blockaddress,
etc. so we can't check !isImm().



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