aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorSteven Perron <stevenperron@google.com>2024-11-12 14:04:45 -0500
committerGitHub <noreply@github.com>2024-11-12 14:04:45 -0500
commitba572abeb4fa698d04222877d10d1c547b6c2c01 (patch)
treed567d76fd076991da1357516878899a0185fb513 /llvm/lib/Object/ELFObjectFile.cpp
parentaaa37d6755e635bbd62ba58896acd54ceef64610 (diff)
downloadllvm-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