[clang] [llvm] [clang] Add tanf16 builtin and support for tan constrained intrinsic (PR #93314)

Damyan Pepper via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 09:18:24 PDT 2024


================
@@ -183,6 +183,14 @@ void foo(double *d, float f, float *fp, long double *l, int *i, const char *c, _
 // CHECK: call x86_fp80 @llvm.experimental.constrained.sqrt.f80(x86_fp80 %{{.*}}, metadata !"round.tonearest", metadata !"fpexcept.strict")
 // CHECK: call fp128 @llvm.experimental.constrained.sqrt.f128(fp128 %{{.*}}, metadata !"round.tonearest", metadata !"fpexcept.strict")
 
+__builtin_tan(f);        __builtin_tanf(f);       __builtin_tanl(f); __builtin_tanf128(f);
----------------
damyanp wrote:

super nit: it looks like the other `f` prefixed ones all line up to the same column, apart from this new one.

https://github.com/llvm/llvm-project/pull/93314


More information about the llvm-commits mailing list