diff options
author | Steven Perron <stevenperron@google.com> | 2024-11-12 14:04:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 14:04:45 -0500 |
commit | ba572abeb4fa698d04222877d10d1c547b6c2c01 (patch) | |
tree | d567d76fd076991da1357516878899a0185fb513 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | aaa37d6755e635bbd62ba58896acd54ceef64610 (diff) | |
download | llvm-ba572abeb4fa698d04222877d10d1c547b6c2c01.zip llvm-ba572abeb4fa698d04222877d10d1c547b6c2c01.tar.gz llvm-ba572abeb4fa698d04222877d10d1c547b6c2c01.tar.bz2 |
[SPIRV] Add reads from image buffer for shaders. (#115178)
This commit adds an intrinsic that will read from an image buffer. We
chose to match the name of the DXIL intrinsic for simplicity in clang.
We cannot reuse the existing openCL readimage function because that is
not a reserved name in HLSL.
I considered trying to refactor generateReadImageInst, so that we could
share code between the two implementations. However, most of the code in
generateReadImageInst is concerned with trying to figure out which type
of image read is being done. Once we factor out the code that will be
common, then we end up with just a single call to the MIRBuilder being
common.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions