AArch64: emit @llvm.debugtrap as `brk #0xf000` on all platforms
authorTim Northover <t.p.northover@gmail.com>
Fri, 17 Jul 2020 10:25:59 +0000 (11:25 +0100)
committerTim Northover <t.p.northover@gmail.com>
Mon, 20 Jul 2020 09:31:26 +0000 (10:31 +0100)
commit88464a55b4eda9b778a8b9ca0193d4c6c11c6053
tree9d7f153f13464f50a2efbfbcd1d0d5a9788dbdd3
parentef377d3f2dda0b38c15e2135ba92a5d3843db1f3
AArch64: emit @llvm.debugtrap as `brk #0xf000` on all platforms

It's useful for a debugger to be able to distinguish an @llvm.debugtrap
from a (noreturn) @llvm.trap, so this extends the existing Windows
behaviour to other platforms.
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/debugtrap.ll [moved from llvm/test/CodeGen/AArch64/windows-trap1.ll with 65% similarity]