aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/IdentifierTable.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-08-08 06:45:42 -0500
committerGitHub <noreply@github.com>2024-08-08 06:45:42 -0500
commit1a92cc5a0ad108c515b1c383645ff70069c12077 (patch)
tree741eeb51472e654fc535a8e6775c8ebe1c3ef991 /clang/lib/Basic/IdentifierTable.cpp
parent8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2 (diff)
downloadllvm-1a92cc5a0ad108c515b1c383645ff70069c12077.zip
llvm-1a92cc5a0ad108c515b1c383645ff70069c12077.tar.gz
llvm-1a92cc5a0ad108c515b1c383645ff70069c12077.tar.bz2
[libc] Implement 'getenv' on the GPU target (#102376)
Summary: This patch implements 'getenv'. I was torn on how to implement this, since realistically we only have access to this environment pointer in the "loader" interface. An alternative would be to use an RPC call every time, but I think that's overkill for what this will be used for. A better solution is just to emit a common `DataEnvironment` that contains all of the host visible resources to initialize. Right now this is the `env_ptr`, `clock_freq`, and `rpc_client`. I did this by making the `app.h` interface that Linux uses more general, could possibly move that into a separate patch, but I figured it's easier to see with the usage.
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
0 files changed, 0 insertions, 0 deletions