HomePhabricator

[WebAssembly] Trapping fptoint builtins and intrinsics

Description

[WebAssembly] Trapping fptoint builtins and intrinsics

Summary:
The WebAssembly backend lowers fptoint instructions to a code sequence
that checks for overflow to avoid traps because fptoint is supposed to
be speculatable. These new builtins and intrinsics give users a way to
depend on the trapping semantics of the underlying instructions and
avoid the extra code generated normally.

Patch by coffee and tlively.

Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D68902

Details

Committed
tlivelyOct 14 2019, 6:11 PM
Differential Revision
D68902: [WebAssembly] Trapping fptoint builtins and intrinsics
Branches
Unknown
Tags
Unknown