[all-commits] [llvm/llvm-project] 7214f7: [RISCV] Lower llvm.trap and llvm.debugtrap

Sam Elliott via All-commits all-commits at lists.llvm.org
Mon Oct 28 02:54:53 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7214f7a79f4bf791e5c6726757dbcec143f0aa91
      https://github.com/llvm/llvm-project/commit/7214f7a79f4bf791e5c6726757dbcec143f0aa91
  Author: Sam Elliott <selliott at lowrisc.org>
  Date:   2019-10-28 (Mon, 28 Oct 2019)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.td
    A llvm/test/CodeGen/RISCV/intrinsics/trap.ll

  Log Message:
  -----------
  [RISCV] Lower llvm.trap and llvm.debugtrap

Summary:
Until this commit, these have lowered to a call to abort().

`llvm.trap()` now lowers to `unimp`, which should trap on all systems.

`llvm.debugtrap()` now lowers to `ebreak`, which is exactly what this
instruction is for.

Reviewers: asb, luismarques

Reviewed By: asb

Subscribers: hiraditya, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, pzheng, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list