AMDGPU/GlobalISel: Support llvm.trap and llvm.debugtrap intrinsics
authorhsmahesha <mahesha.comp@gmail.com>
Thu, 5 Mar 2020 02:45:55 +0000 (08:15 +0530)
committerhsmahesha <mahesha.comp@gmail.com>
Thu, 5 Mar 2020 02:46:57 +0000 (08:16 +0530)
commit3fda1fde8f7bdf3b90d8700f5a386f63409b4313
tree6ecd489eb93c05c4dc2b3b5a5c4ec6f7040acf8a
parentb3722dea3bff1e177104180661fc283610c3c22b
AMDGPU/GlobalISel: Support llvm.trap and llvm.debugtrap intrinsics

Summary: Lower trap and debugtrap intrinsics to AMDGPU machine instruction(s).

Reviewers: arsenm, nhaehnle, kerbowa, cdevadas, t-tye, kzhuravl

Reviewed By: arsenm

Subscribers: kzhuravl, jvesely, wdng, yaxunl, rovka, dstuttard, tpr, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74688
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.trap.ll [new file with mode: 0644]