[libc-commits] [PATCH] D153897: [libc][hdr-gen] Add special offloading handling for the GPU target
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Jun 27 12:08:49 PDT 2023
jhuber6 added a comment.
Should probably show what one of these generated headers looks like,
#ifndef LLVM_LIBC_STDIO_H
#define LLVM_LIBC_STDIO_H
#include <llvm-libc-macros/gpu-macros.h>
#ifdef __OFFLOADING
#include_next <stdio.h>
#else
#include <__llvm-libc-common.h>
#include <llvm-libc-macros/file-seek-macros.h>
#include <llvm-libc-macros/stdio-macros.h>
#endif
#ifndef __OFFLOADING
#define EOF -1
#define _IONBF 2
#define _IOLBF 1
#define _IOFBF 0
#include <llvm-libc-types/FILE.h>
#include <llvm-libc-types/size_t.h>
#endif
__BEGIN_OPENMP_DECLS
__BEGIN_C_DECLS
int puts(const char *__restrict) __NOEXCEPT __DEVICE;
int fputs(const char *__restrict, FILE *__restrict) __NOEXCEPT __DEVICE;
extern FILE * stdin __DEVICE;
extern FILE * stdout __DEVICE;
extern FILE * stderr __DEVICE;
__END_C_DECLS
__END_OPENMP_DECLS
#endif // LLVM_LIBC_STDIO_H
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153897/new/
https://reviews.llvm.org/D153897
More information about the libc-commits
mailing list