[all-commits] [llvm/llvm-project] 29bffa: [BPF] support indirect branch (callx) in AsmParser

Yingchi Long via All-commits all-commits at lists.llvm.org
Sun Dec 10 02:29:50 PST 2023


  Branch: refs/heads/users/inclyc/bpf-callx-asm
  Home:   https://github.com/llvm/llvm-project
  Commit: 29bffab6003bf166845f20e6f59179ac2bb83c1e
      https://github.com/llvm/llvm-project/commit/29bffab6003bf166845f20e6f59179ac2bb83c1e
  Author: Yingchi Long <i at lyc.dev>
  Date:   2023-12-10 (Sun, 10 Dec 2023)

  Changed paths:
    M llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
    A llvm/test/MC/BPF/callx.s

  Log Message:
  -----------
  [BPF] support indirect branch (callx) in AsmParser

Simply mark `callx` as a valid ID, so it can be recognized.

Previously this valid asm triggers an error:

    # clang local/callx.s -target bpf
    local/callx.s:8:2: error: invalid register/token name
            callx r1
            ^




More information about the All-commits mailing list