Path: blob/main/contrib/llvm-project/libc/src/__support/OSUtil/io.h
213799 views
//===---------------- Implementation of IO utils ----------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIBC_SRC___SUPPORT_OSUTIL_IO_H9#define LLVM_LIBC_SRC___SUPPORT_OSUTIL_IO_H1011#include "src/__support/macros/properties/architectures.h"1213#if defined(LIBC_TARGET_ARCH_IS_GPU)14#include "gpu/io.h"15#elif defined(__APPLE__)16#include "darwin/io.h"17#elif defined(__linux__)18#include "linux/io.h"19#elif defined(__Fuchsia__)20#include "fuchsia/io.h"21#elif defined(_WIN32)22#include "windows/io.h"23#elif defined(__ELF__)24// TODO: Ideally we would have LIBC_TARGET_OS_IS_BAREMETAL.25#include "baremetal/io.h"26#elif defined(__UEFI__)27#include "uefi/io.h"28#endif2930#endif // LLVM_LIBC_SRC___SUPPORT_OSUTIL_IO_H313233