[PATCH] D132144: [Clang][BPF] Support record argument with direct values
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 18 11:34:37 PDT 2022
yonghong-song added a comment.
The compiler only counted the total number of registers won't exceed 5. You could have 5 struct arguments (each one register), or 2 struct arguments (with two registers each) and one integer register.
Whether to pass by value or by reference is a ABI issue, not related to the number of arguments. Checking whether arguments are enough or not is left to BPF backend lowering.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132144/new/
https://reviews.llvm.org/D132144
More information about the cfe-commits
mailing list