[all-commits] [llvm/llvm-project] db1dac: [WebAssembly] `AsmTypeCheck` support to br instr

Congcong Cai via All-commits all-commits at lists.llvm.org
Thu Apr 13 02:56:46 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db1dac1e20bd0bf37cda4915462101b6d7e04dd7
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.h
    A llvm/test/MC/WebAssembly/type-checker-br.s
    M llvm/test/MC/WebAssembly/type-checker-errors.s

  Log Message:
  [WebAssembly] `AsmTypeCheck` support to br instr

This PR introduces the `BrStack` member to store the info about
`loop`, `block`, `if` and `try`. It can check whether `br` immediate number
out of range.

Reviewed By: aheejin

Differential Revision: https://reviews.llvm.org/D148054

More information about the All-commits mailing list