[libc-commits] [libc] [libc] Remove old RPC host call extension for GPU (PR #120800)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Dec 20 14:24:01 PST 2024
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/120800
Summary:
This was originally a hacked together function that served to just
implement some features for OpenMP. That has been moved into OpenMP
itself now that we have exported RPC properly. This can now be deleted.
>From 81976d60a4bdd598aa766a9fe2ea64e60dd2da8c Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Fri, 20 Dec 2024 16:22:39 -0600
Subject: [PATCH] [libc] Remove old RPC host call extension for GPU
Summary:
This was originally a hacked together function that served to just
implement some features for OpenMP. That has been moved into OpenMP
itself now that we have exported RPC properly. This can now be deleted.
---
libc/config/gpu/entrypoints.txt | 3 ---
libc/config/gpu/headers.txt | 3 ---
libc/hdrgen/yaml/gpu/rpc.yaml | 23 -----------------------
libc/include/CMakeLists.txt | 13 -------------
libc/include/gpu/rpc.h.def | 18 ------------------
libc/src/__support/RPC/CMakeLists.txt | 1 -
6 files changed, 61 deletions(-)
delete mode 100644 libc/hdrgen/yaml/gpu/rpc.yaml
delete mode 100644 libc/include/gpu/rpc.h.def
diff --git a/libc/config/gpu/entrypoints.txt b/libc/config/gpu/entrypoints.txt
index 28317c656d4be4..b008e0e6684fdd 100644
--- a/libc/config/gpu/entrypoints.txt
+++ b/libc/config/gpu/entrypoints.txt
@@ -271,9 +271,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.locale.newlocale
libc.src.locale.setlocale
libc.src.locale.uselocale
-
- # gpu/rpc.h entrypoints
- libc.src.gpu.rpc_host_call
)
set(TARGET_LIBM_ENTRYPOINTS
diff --git a/libc/config/gpu/headers.txt b/libc/config/gpu/headers.txt
index adbd014fba6c18..fa8ad7c11ba8b1 100644
--- a/libc/config/gpu/headers.txt
+++ b/libc/config/gpu/headers.txt
@@ -18,7 +18,4 @@ set(TARGET_PUBLIC_HEADERS
libc.include.uchar
libc.include.features
libc.include.locale
-
- # Header for RPC extensions
- libc.include.gpu_rpc
)
diff --git a/libc/hdrgen/yaml/gpu/rpc.yaml b/libc/hdrgen/yaml/gpu/rpc.yaml
deleted file mode 100644
index da4f6afb7856d2..00000000000000
--- a/libc/hdrgen/yaml/gpu/rpc.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-header: gpu-rpc.h
-macros: []
-types: []
-enums: []
-objects: []
-functions:
- - name: rpc_fprintf
- standards:
- - GPUExtensions
- return_type: int
- arguments:
- - type: ::FILE *__restrict
- - type: const char *__restrict
- - type: void *
- - type: size_t
- - name: rpc_host_call
- standards:
- - GPUExtensions
- return_type: unsigned long long
- arguments:
- - type: void *
- - type: void *
- - type: size_t
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 18ce8e22d1a0ac..3a05c01abba5a4 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -750,19 +750,6 @@ add_header_macro(
.llvm-libc-types.struct_lconv
)
-if(LIBC_TARGET_OS_IS_GPU)
- file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/gpu)
-
- add_header_macro(
- gpu_rpc
- ../libc/hdrgen/yaml/gpu/rpc.yaml
- gpu/rpc.h.def
- gpu/rpc.h
- DEPENDS
- .llvm_libc_common_h
- )
-endif()
-
if(NOT LLVM_LIBC_FULL_BUILD)
# We don't install headers in non-fullbuild mode.
return()
diff --git a/libc/include/gpu/rpc.h.def b/libc/include/gpu/rpc.h.def
deleted file mode 100644
index 060650345e1fb1..00000000000000
--- a/libc/include/gpu/rpc.h.def
+++ /dev/null
@@ -1,18 +0,0 @@
-//===-- GPU header rpc.h --------------------------------------------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_LIBC_GPU_RPC_H
-#define LLVM_LIBC_GPU_RPC_H
-
-#include "__llvm-libc-common.h"
-
-#include "../llvm-libc-types/rpc_opcodes_t.h"
-
-%%public_api()
-
-#endif // LLVM_LIBC_GPU_RPC_H
diff --git a/libc/src/__support/RPC/CMakeLists.txt b/libc/src/__support/RPC/CMakeLists.txt
index 0a7141fb60bf03..cac9c4e05e3698 100644
--- a/libc/src/__support/RPC/CMakeLists.txt
+++ b/libc/src/__support/RPC/CMakeLists.txt
@@ -9,6 +9,5 @@ add_object_library(
HDRS
rpc_client.h
DEPENDS
- libc.include.gpu_rpc
libc.src.__support.GPU.utils
)
More information about the libc-commits
mailing list