[PATCH] D74794: [X86][ISelLowering] refactor Varargs handling in X86ISelLowering.cpp
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 15:37:22 PDT 2020
aeubanks added a comment.
Definitely a step in the right direction, thanks!
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:3380-3393
+struct VarArgRegsDescr {
+ ArrayRef<MCPhysReg> ArgGPRs; // all GPR registers used for passing varargs
+ ArrayRef<MCPhysReg> ArgXMMs; // all XMM registers used for passing varargs
+ unsigned NumIntRegs = 0; // number of allocated GPRs
+ unsigned NumXMMRegs = 0; // number of allocated XMMs
+
+ ArrayRef<MCPhysReg> getAvailableIntRegs() {
----------------
this struct and VarArgsLoweringHelper::getVarArgRegsDescriptor seem unnecessary and are only used in the is64Bit() part, can all the variables be inlined?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74794/new/
https://reviews.llvm.org/D74794
More information about the llvm-commits
mailing list