[all-commits] [llvm/llvm-project] a06dd7: [CIR] NFC: Extract rewriteIndirectReturnCall helper
adams381 via All-commits
all-commits at lists.llvm.org
Wed Jun 10 14:31:32 PDT 2026
Branch: refs/heads/users/adams381/cir-callconv-lowering-indirect-sret
Home: https://github.com/llvm/llvm-project
Commit: a06dd7a4fe7b7239d823e3ea872fc4c3fc5f0d49
https://github.com/llvm/llvm-project/commit/a06dd7a4fe7b7239d823e3ea872fc4c3fc5f0d49
Author: Adam Smith <adams at nvidia.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
M clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
Log Message:
-----------
[CIR] NFC: Extract rewriteIndirectReturnCall helper
The sret call-site rewrite was a large block inside rewriteCallSite.
Move it into a dedicated rewriteIndirectReturnCall helper in the
anonymous namespace, leaving rewriteCallSite to dispatch to it when the
return is indirect.
Pure code motion: the Indirect-and-has-result guard stays at the call
site (the moved block dereferences the call result, so the guard cannot
fold into the helper), and the helper derives its MLIR context from the
call. No behavior change.
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