summaryrefslogtreecommitdiff
path: root/src/passes/LLVMNontrappingFPToIntLowering.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add nontrapping-fptoint lowering pass (#7016)Derek Schuff2024-11-191-0/+180
This pass lowers nontrapping FP to int instructions to implement LLVM's conversion behavior. This means that they are not fully complete lowerings according to the wasm spec, but have the same undefined behavior that LLM does. This keeps the pass simpler and preserves existing behavior when compiling without nontrapping-ft. This will be used in emscripten, so that we can build libraries with nontrapping-fp and lower them away after link if desired.