[all-commits] [llvm/llvm-project] 609899: [flang][cuda] Avoid stack corruption when setting ...
khaki3 via All-commits
all-commits at lists.llvm.org
Tue Dec 10 16:08:44 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 609899f443223ccc977c25293931067e73ad76db
https://github.com/llvm/llvm-project/commit/609899f443223ccc977c25293931067e73ad76db
Author: khaki3 <47756807+khaki3 at users.noreply.github.com>
Date: 2024-12-10 (Tue, 10 Dec 2024)
Changed paths:
M flang/lib/Optimizer/Transforms/CUFGPUToLLVMConversion.cpp
M flang/test/Fir/CUDA/cuda-gpu-launch-func.mlir
Log Message:
-----------
[flang][cuda] Avoid stack corruption when setting kernel launch parameters (#119469)
In order to get the pointer to a structure member, `getelementptr`
typically requires two indices: one to indicate the structure itself,
and another to specify the member's position. We are missing the former
in `GPULaunchKernelConversion`, so generated code may cause stack
corruption. This PR corrects the indices of a structure used as a kernel
launch temp.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list