aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorVyacheslav Levytskyy <vyacheslav.levytskyy@intel.com>2024-08-14 11:42:48 +0200
committerGitHub <noreply@github.com>2024-08-14 11:42:48 +0200
commit2fc7a72733762d685a07f846b44dc17a0585098e (patch)
tree6ad3ba38ba748509922dc1728d73b7820e828495 /llvm/lib/IR/Module.cpp
parentc4206f1ff1d946c495b74738eba9303dafb17e18 (diff)
downloadllvm-2fc7a72733762d685a07f846b44dc17a0585098e.zip
llvm-2fc7a72733762d685a07f846b44dc17a0585098e.tar.gz
llvm-2fc7a72733762d685a07f846b44dc17a0585098e.tar.bz2
[SPIR-V] Add implementation of the non-const G_BUILD_VECTOR and fix emission of the OpGroupBroadcast instruction (#103050)
This PR addresses a TODO in lib/Target/SPIRV/SPIRVInstructionSelector.cpp by adding implementation of the non-const G_BUILD_VECTOR, and fix emission of the OpGroupBroadcast instruction for the case when the `..._group_broadcast` builtin has more than one `local_id` argument and `OpGroupBroadcast` requires a newly constructed vector with 2 or 3 components instead of originally passed series of `local_id` arguments. This PR may resolve https://github.com/llvm/llvm-project/issues/97310 if the reason for the reported fail is an incorrectly generated OpGroupBroadcast instruction that was definitely a case. Existing test is hardened and a new test is added to cover this special case of the OpGroupBroadcast instruction emission.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions