llvm-project
5c432432 - [SPIR-V] Initial support for SPIR-V in `gpuintrin.h` (#174910)

Commit
109 days ago
[SPIR-V] Initial support for SPIR-V in `gpuintrin.h` (#174910) Summary: https://github.com/llvm/llvm-project/pull/174862 and https://github.com/llvm/llvm-project/pull/174655 provided the intrinsics required to get the fundamental operations working for these. This patch sets up the basic support (as far as I know). This should be the first step towards allowing SPIR-V to build things like the LLVM libc and the OpenMP Device Runtime Library. The implementations here are intentionally inefficient, such as not using the dedicated SPIR-V opcode for read firstlane. This is just to start and hopefully start testing things later. Would appreciate someone more familiar with the backend double-checking these.
Author
Parents
Loading