[PATCH] D82525: [FPEnv] Intrinsics for access to FP control modes

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 01:35:49 PDT 2020


sepavloff created this revision.
sepavloff added reviewers: andrew.w.kaylor, efriedma, kpn, cameron.mcinally, uweigand.
Herald added subscribers: jdoerfert, hiraditya.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.

The change implements intrinsics 'get_fpmode', 'set_fpmode' and 'reset_fpmode'.
They do the same operations as C library functions 'fegetmode' and 'fesetmode'.
By default the intrinsics are lowered to calls to these library functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82525

Files:
  llvm/docs/LangRef.rst
  llvm/include/llvm/CodeGen/ISDOpcodes.h
  llvm/include/llvm/IR/IRBuilder.h
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/IR/RuntimeLibcalls.def
  llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  llvm/lib/CodeGen/TargetLoweringBase.cpp
  llvm/test/CodeGen/Generic/fpenv.ll
  llvm/unittests/IR/IRBuilderTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82525.273245.patch
Type: text/x-patch
Size: 15557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200625/d148c37d/attachment.bin>


More information about the llvm-commits mailing list