[libc] [llvm] [libc][math] fix header spec bug (PR #101269)

Job Henandez Lara via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 17:34:26 PDT 2024


https://github.com/Jobhdez created https://github.com/llvm/llvm-project/pull/101269

None

>From f4e28141526bb2ff7c2e96e5558b1453705fd47b Mon Sep 17 00:00:00 2001
From: Job Hernandez <hj93 at protonmail.com>
Date: Tue, 30 Jul 2024 17:30:38 -0700
Subject: [PATCH] fix bug

---
 .gitignore        | 2 ++
 libc/spec/stdc.td | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 20c4f52cd3786..49a391ea6b568 100644
--- a/.gitignore
+++ b/.gitignore
@@ -70,3 +70,5 @@ pythonenv*
 /clang/utils/analyzer/projects/*/RefScanBuildResults
 # automodapi puts generated documentation files here.
 /lldb/docs/python_api/
+# python env
+pyDep/
\ No newline at end of file
diff --git a/libc/spec/stdc.td b/libc/spec/stdc.td
index 36cd36f8a5241..6aaf05ffd9f65 100644
--- a/libc/spec/stdc.td
+++ b/libc/spec/stdc.td
@@ -735,8 +735,8 @@ def StdC : StandardSpec<"stdc"> {
 
           GuardedFunctionSpec<"getpayloadf16", RetValSpec<Float16Type>, [ArgSpec<Float16Ptr>], "LIBC_TYPES_HAS_FLOAT16">,
 	  
-          FunctionSpec<"setpayload", RetValSpec<IntType>, [ArgSpec<DoublePtr>, ArgSpec<DoubleType>],
-          FunctionSpec<"setpayloadf", RetValSpec<IntType>, [ArgSpec<FloatPtr>, ArgSpec<FloatType>],
+          FunctionSpec<"setpayload", RetValSpec<IntType>, [ArgSpec<DoublePtr>, ArgSpec<DoubleType>]>,
+          FunctionSpec<"setpayloadf", RetValSpec<IntType>, [ArgSpec<FloatPtr>, ArgSpec<FloatType>]>,
           GuardedFunctionSpec<"setpayloadf16", RetValSpec<IntType>, [ArgSpec<Float16Ptr>, ArgSpec<Float16Type>], "LIBC_TYPES_HAS_FLOAT16">,
 	  GuardedFunctionSpec<"setpayloadf128", RetValSpec<IntType>, [ArgSpec<Float128Ptr>, ArgSpec<Float128Type>], "LIBC_TYPES_HAS_FLOAT128">,
 



More information about the llvm-commits mailing list