[PATCH] D149588: clang: Start emitting intrinsic for __builtin_ldexp*

Kevin P. Neal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 2 05:24:55 PDT 2023


kpn added inline comments.


================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:3057-3058
+  case Builtin::BI__builtin_ldexpf:
+  case Builtin::BI__builtin_ldexpl:
+  case Builtin::BI__builtin_ldexpf16: {
+    return RValue::get(emitBinaryExpMaybeConstrainedFPBuiltin(
----------------
tra wrote:
> Should those builtins that map to an experimental intrinsic be `experimental`, too?
> 
> Alternatively, if the intrinsic functionality is something we intend to officially provide via clang builtin, should we drop the `experimental` part?
> 
They only map to experimental intrinsics if you use the still fairly new FENV_ACCESS support. So I'd say no to marking them experimental. Most users of them will not encounter any experimental support.

I'm still working on getting the IR Verifier changes into the tree. At the very least I don't think we should be dropping the experimental from the names of the constrained intrinsics when there's no checking at all for violations of the rules of using them.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149588/new/

https://reviews.llvm.org/D149588



More information about the llvm-commits mailing list