aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorNathan Gauër <brioche@google.com>2023-09-26 16:33:17 +0200
committerGitHub <noreply@github.com>2023-09-26 16:33:17 +0200
commitc01b5bbba3df64086fa456a53a06ec81495698af (patch)
treeb512abf66261914f1d6b092b1d4be17ab7f0bf06 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parent78d649a417b48cb8a2ba2e755f0e7c8fb8b1bb83 (diff)
downloadllvm-c01b5bbba3df64086fa456a53a06ec81495698af.zip
llvm-c01b5bbba3df64086fa456a53a06ec81495698af.tar.gz
llvm-c01b5bbba3df64086fa456a53a06ec81495698af.tar.bz2
[SPIRV] Add OpAccessChain instruction support (#66253)
This commit adds 2 new instructions in the selector: - OpAccessChain - OpInBoundsAccessChain. The choice between the two relies on the `inbounds` marker. Those instruction are not used for OpenCL, to maintain the same behavior as previously. They are only added when building for logical SPIR-V, as it doesn't support the pointer equivalent. Because logical SPIR-V doesn't support pointer cast either, the assign_ptr_type intrinsic need to be generated so OpAccessChain gets lowered with the correct pointer type, instead of i8*. Fixes #66107 --------- Signed-off-by: Nathan Gauër <brioche@google.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions