aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2021-03-12 11:06:18 -0500
committerMatt Arsenault <Matthew.Arsenault@amd.com>2021-03-18 09:16:54 -0400
commit61f834cc0937c4532e5679f95b2a44d529a4d8bf (patch)
tree7b7892627d00544f981f8303df536d9cc3bc095a /flang/lib/Frontend/CompilerInvocation.cpp
parentb3ced9852c7e6cc2dab61b6adb5c92812c99b00e (diff)
downloadllvm-61f834cc0937c4532e5679f95b2a44d529a4d8bf.zip
llvm-61f834cc0937c4532e5679f95b2a44d529a4d8bf.tar.gz
llvm-61f834cc0937c4532e5679f95b2a44d529a4d8bf.tar.bz2
GlobalISel: Insert memcpy for outgoing byval arguments
byval requires an implicit copy between the caller and callee such that the callee may write into the stack area without it modifying the value in the parent. Previously, this was passing through the raw pointer value which would break if the callee wrote into it. Most of the time, this copy can be optimized out (however we don't have the optimization SelectionDAG does yet). This will trigger more fallbacks for AMDGPU now, since we don't have legalization for memcpy yet (although we should stop using byval anyway).
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions