mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-16 04:20:59 +00:00
d04494ccc9
The GPU has much tighter requirements for handling IO functions. Previously we attempted to define the GPU as one of the platform files. Using a common interface allowed us to easily define these functions without much extra work. However, it became more clear that this was a poor fit for the GPU. The file interface uses function pointers, which prevented inlining and caused bad perfromance and resource usage on the GPU. Further, using an actual `FILE` type rather than referring to it as a host stub prevented us from usin files coming from the host on the GPU device. After talking with @sivachandra, the approach now is to simply define GPU specific versions of the functions we intend to support. Also, we are ignoring `errno` for the time being as it is unlikely we will ever care about supporting it fully. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D157427 |
||
---|---|---|
.. | ||
_static | ||
dev | ||
gpu | ||
math | ||
build_and_test.rst | ||
check.rst | ||
CMakeLists.txt | ||
compiler_support.rst | ||
conf.py | ||
contributing.rst | ||
date_and_time.rst | ||
full_cross_build.rst | ||
full_host_build.rst | ||
fullbuild_mode.rst | ||
header_gen_scheme.svg | ||
index.rst | ||
overlay_mode.rst | ||
porting.rst | ||
README.txt | ||
stdio.rst | ||
strings.rst | ||
usage_modes.rst |
libc Documentation ================== The libc documentation is written using the Sphinx documentation generator. It is currently tested with Sphinx 1.1.3. To build the documents into html configure libc with the following cmake options: * -DLLVM_ENABLE_SPHINX=ON * -DLIBC_INCLUDE_DOCS=ON After configuring libc with these options the make rule `docs-libc-html` should be available.