[sledge] Model llvm.trap as nop

Summary:
llvm.trap is noreturn nounwind so calls to it are always succeeded by
Unreachable, therefore unless an alarm is desired for reaching it,
translating it as nop suffices.

Reviewed By: ngorogiannis

Differential Revision: D15328302

fbshipit-source-id: 54efe6c21
master
Josh Berdine 6 years ago committed by Facebook Github Bot
parent af766b5320
commit 81909abf23

@ -952,7 +952,8 @@ let xlate_instr :
emit_inst (Llair.Inst.memmov ~dst ~src ~len ~loc) emit_inst (Llair.Inst.memmov ~dst ~src ~len ~loc)
(* dropped / handled elsewhere *) (* dropped / handled elsewhere *)
| ["llvm"; "dbg"; ("declare" | "value")] | ["llvm"; "dbg"; ("declare" | "value")]
|"llvm" :: ("lifetime" | "invariant") :: ("start" | "end") :: _ -> |"llvm" :: ("lifetime" | "invariant") :: ("start" | "end") :: _
|["llvm"; "trap"] ->
nop () nop ()
(* unimplemented *) (* unimplemented *)
| ["llvm"; ("stacksave" | "stackrestore")] -> | ["llvm"; ("stacksave" | "stackrestore")] ->

Loading…
Cancel
Save