Support inlining of function calls with the byval attribute on function
arguments by copying the pointee into a newly alloca'ed pointer at the
callsite before inlining.
The alignment attribute is not yet taken into account.
Paths
| Differential D146616
[MLIR][LLVM] Copy byval attributes during inlining. ClosedPublic Authored by definelicht on Mar 22 2023, 2:59 AM.
Details Summary Support inlining of function calls with the byval attribute on function The alignment attribute is not yet taken into account.
Diff Detail
Event Timelineftynse added inline comments. This revision is now accepted and ready to land.Mar 22 2023, 3:21 AM
Comment Actions Addressed comments by moving byval handling into a separate function so we can do early returns without breaking the control flow of other potential function argument attribute handling. This revision was landed with ongoing or failed builds.Mar 22 2023, 7:39 AM Closed by commit rGed114b6ffc95: [MLIR][LLVM] Copy byval attributes during inlining. (authored by definelicht, committed by gysit). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 507290 mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/test/Dialect/LLVMIR/inlining.mlir
|
Please expand auto unless the type is obvious from context (e.g., there's a cast on the RHS) or impossible to spell (e.g., lambdas).