This is an archive of the discontinued LLVM Phabricator instance.

[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
instruction is for.

Diff Detail

Event Timeline

lenary created this revision.Oct 24 2019, 9:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2019, 9:11 AM
asb accepted this revision.Oct 24 2019, 9:26 AM

LGTM, thanks!

This revision is now accepted and ready to land.Oct 24 2019, 9:26 AM
This revision was automatically updated to reflect the committed changes.