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.
Paths
| Differential D69390
[RISCV] Lower llvm.trap and llvm.debugtrap ClosedPublic Authored by lenary on Oct 24 2019, 9:11 AM.
Details
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
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 24 2019, 9:26 AM Closed by commit rG7214f7a79f4b: [RISCV] Lower llvm.trap and llvm.debugtrap (authored by lenary). · Explain WhyOct 28 2019, 2:55 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 226275 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/CodeGen/RISCV/intrinsics/trap.ll
|