[PATCH] D68902: [WebAssembly] Trapping fptoint builtins and intrinsics
Thomas Lively via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 11 18:32:22 PDT 2019
tlively created this revision.
tlively added a reviewer: aheejin.
Herald added subscribers: llvm-commits, cfe-commits, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added projects: clang, LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D68902
Files:
clang/include/clang/Basic/BuiltinsWebAssembly.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/builtins-wasm.c
llvm/include/llvm/IR/IntrinsicsWebAssembly.td
llvm/lib/Target/WebAssembly/WebAssemblyInstrConv.td
llvm/test/CodeGen/WebAssembly/conv-trap.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68902.224718.patch
Type: text/x-patch
Size: 10431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191012/b6e882cc/attachment.bin>
More information about the llvm-commits
mailing list