Skip to content

Commit 0410da4

Browse files
bojlemichaelrj-google
authored andcommitted
[libc] add missing headers in stdfix (llvm#162078)
Fixes llvm#129361 @michaelrj-google @PiJoules --------- Signed-off-by: Shreeyash Pandey <[email protected]> Co-authored-by: Michael Jones <[email protected]>
1 parent a7b56dc commit 0410da4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+266
-80
lines changed

libc/include/CMakeLists.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,18 @@ add_header_macro(
166166
stdfix.h
167167
DEPENDS
168168
.llvm-libc-macros.stdfix_macros
169-
.llvm-libc-types.stdfix-types
169+
.llvm-libc-types.int_hk_t
170+
.llvm-libc-types.int_hr_t
171+
.llvm-libc-types.int_k_t
172+
.llvm-libc-types.int_lk_t
173+
.llvm-libc-types.int_lr_t
174+
.llvm-libc-types.int_r_t
175+
.llvm-libc-types.uint_uhk_t
176+
.llvm-libc-types.uint_uhr_t
177+
.llvm-libc-types.uint_uk_t
178+
.llvm-libc-types.uint_ulk_t
179+
.llvm-libc-types.uint_ulr_t
180+
.llvm-libc-types.uint_ur_t
170181
)
171182

172183

libc/include/llvm-libc-types/CMakeLists.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,18 @@ DEPENDS
174174
)
175175
add_header(locale_t HDR locale_t.h)
176176
add_header(struct_lconv HDR struct_lconv.h)
177-
add_header(stdfix-types HDR stdfix-types.h)
177+
add_header(int_hk_t HDR int_hk_t.h)
178+
add_header(int_hr_t HDR int_hr_t.h)
179+
add_header(int_k_t HDR int_k_t.h)
180+
add_header(int_lk_t HDR int_lk_t.h)
181+
add_header(int_lr_t HDR int_lr_t.h)
182+
add_header(int_r_t HDR int_r_t.h)
183+
add_header(uint_uhk_t HDR uint_uhk_t.h)
184+
add_header(uint_uhr_t HDR uint_uhr_t.h)
185+
add_header(uint_uk_t HDR uint_uk_t.h)
186+
add_header(uint_ulk_t HDR uint_ulk_t.h)
187+
add_header(uint_ulr_t HDR uint_ulr_t.h)
188+
add_header(uint_ur_t HDR uint_ur_t.h)
178189

179190
# UEFI
180191
add_header(EFI_GUID HDR EFI_GUID.h DEPENDS libc.include.llvm-libc-macros.stdint_macros)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===-- LLVM LIBC TYPES --------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_LIBC_TYPES_INT_HK_T_H
10+
#define LLVM_LIBC_TYPES_INT_HK_T_H
11+
12+
typedef signed short int_hk_t;
13+
14+
#endif // LLVM_LIBC_TYPES_INT_HK_T_H
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===-- LLVM LIBC TYPES --------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_LIBC_TYPES_INT_HR_T_H
10+
#define LLVM_LIBC_TYPES_INT_HR_T_H
11+
12+
typedef signed char int_hr_t;
13+
14+
#endif // LLVM_LIBC_TYPES_INT_HR_T_H
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===-- LLVM LIBC TYPES --------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_LIBC_TYPES_INT_K_T_H
10+
#define LLVM_LIBC_TYPES_INT_K_T_H
11+
12+
typedef signed int int_k_t;
13+
14+
#endif // LLVM_LIBC_TYPES_INT_K_T_H
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===-- LLVM LIBC TYPES --------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_LIBC_TYPES_INT_LK_T_H
10+
#define LLVM_LIBC_TYPES_INT_LK_T_H
11+
12+
typedef signed long long int_lk_t;
13+
14+
#endif // LLVM_LIBC_TYPES_INT_LK_T_H
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===-- LLVM LIBC TYPES --------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_LIBC_TYPES_INT_LR_T_H
10+
#define LLVM_LIBC_TYPES_INT_LR_T_H
11+
12+
typedef signed int int_lr_t;
13+
14+
#endif // LLVM_LIBC_TYPES_INT_LR_T_H
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===-- LLVM LIBC TYPES --------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_LIBC_TYPES_INT_R_T_H
10+
#define LLVM_LIBC_TYPES_INT_R_T_H
11+
12+
typedef signed short int int_r_t;
13+
14+
#endif // LLVM_LIBC_TYPES_INT_R_T_H

libc/include/llvm-libc-types/stdfix-types.h

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===-- LLVM LIBC TYPES --------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_LIBC_TYPES_UINT_UHK_T_H
10+
#define LLVM_LIBC_TYPES_UINT_UHK_T_H
11+
12+
typedef unsigned short int uint_uhk_t;
13+
14+
#endif // LLVM_LIBC_TYPES_UINT_UHK_T_H

0 commit comments

Comments
 (0)