HomePhabricator

[WebAssembly] Trapping fptoint builtins and intrinsics

Authored by tlively on Oct 14 2019, 6:11 PM.

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

llvm-svn: 374856

Details

Committed
tlivelyOct 14 2019, 6:11 PM
Differential Revision
D68902: [WebAssembly] Trapping fptoint builtins and intrinsics
Parents
rG6f0768f64da3: [libc++][test] Use <version> to get config on MSVC
Branches
Unknown
Tags
Unknown