[PATCH] D145150: clang: Emit nofpclass(nan inf) for -ffinite-math-only

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 2 03:00:10 PST 2023


arsenm created this revision.
arsenm added reviewers: efriedma, nikic, jcranmer-intel, kpn, andrew.w.kaylor, cameron.mcinally, sepavloff.
Herald added subscribers: StephenFan, jdoerfert, hiraditya.
Herald added a project: All.
arsenm requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Set this on any source level floating-point type argument,
return value, call return or outgoing parameter which is lowered
to a valid IR type for the attribute. Currently this isn't
applied to emitted intrinsics since those don't go through
ABI code.


https://reviews.llvm.org/D145150

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/test/CodeGen/complex-math.c
  clang/test/CodeGen/fp-function-attrs.cpp
  clang/test/CodeGen/fp-options-to-fast-math-flags.c
  clang/test/CodeGen/func-attr.c
  clang/test/CodeGen/matrix-type-operators-fast-math.c
  clang/test/CodeGen/nofpclass.c
  llvm/include/llvm/IR/Attributes.h
  llvm/lib/IR/Attributes.cpp
  llvm/test/Linker/Inputs/nofpclass.ll
  llvm/test/Linker/nofpclass.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145150.501816.patch
Type: text/x-patch
Size: 77330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230302/c77fbe61/attachment-0001.bin>


More information about the cfe-commits mailing list