[PATCH] D53411: [FPEnv] Add constrained CEIL and FLOOR intrinsics

Cameron McInally via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 18 13:47:04 PDT 2018


cameron.mcinally created this revision.
cameron.mcinally added reviewers: craig.topper, andrew.w.kaylor, uweigand, kpn.
Herald added a subscriber: llvm-commits.

Here's a small patch to support constrained ceil and floor intrinsics.

These operations only signal INVALID and are never influenced by the rounding mode, so I could be persuaded that we don't *really* need them. But from a pure trap-safety standpoint, we do need them for completeness.


Repository:
  rL LLVM

https://reviews.llvm.org/D53411

Files:
  docs/LangRef.rst
  include/llvm/CodeGen/ISDOpcodes.h
  include/llvm/CodeGen/SelectionDAGNodes.h
  include/llvm/CodeGen/TargetLowering.h
  include/llvm/IR/IntrinsicInst.h
  include/llvm/IR/Intrinsics.td
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  lib/IR/IntrinsicInst.cpp
  lib/IR/Verifier.cpp
  test/CodeGen/X86/vector-constrained-fp-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53411.170118.patch
Type: text/x-patch
Size: 26396 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181018/f3165cb0/attachment.bin>


More information about the llvm-commits mailing list