Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lib/Target/AArch64/AArch64ISelLowering.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 10,772 Lines • ▼ Show 20 Lines | |||||
unsigned | unsigned | ||||
AArch64TargetLowering::getVaListSizeInBits(const DataLayout &DL) const { | AArch64TargetLowering::getVaListSizeInBits(const DataLayout &DL) const { | ||||
if (Subtarget->isTargetDarwin()) | if (Subtarget->isTargetDarwin()) | ||||
return getPointerTy(DL).getSizeInBits(); | return getPointerTy(DL).getSizeInBits(); | ||||
return 3 * getPointerTy(DL).getSizeInBits() + 2 * 32; | return 3 * getPointerTy(DL).getSizeInBits() + 2 * 32; | ||||
} | } | ||||
// If the live interval can be spilled, we'd prefer to do so. | |||||
bool AArch64TargetLowering::useCSRInsteadOfSplit(const LiveInterval &LI) const { | |||||
return !LI.isSpillable(); | |||||
} | |||||
// The number of splits in user blocks which can be traded against the spill of | |||||
qcolombet: What do user blocks mean in this context? | |||||
junbumlAuthorUnsubmitted Not Done ReplyInline ActionsRename the function name and update the comment. junbuml: Rename the function name and update the comment. | |||||
// the CSR in the entry block when detering the first use of CSR is prefered. | |||||
unsigned AArch64TargetLowering::getNumberOfTradableSplitsAgainstCSR() const { | |||||
return 32; | |||||
} | |||||
// The number of spills in user blocks which can be traded against the spill of | |||||
// the CSR in the entry block when detering the first use of CSR is prefered. | |||||
unsigned AArch64TargetLowering::getNumberOfTradableSpillsAgainstCSR() const { | |||||
return 0; | |||||
} | |||||
What do user blocks mean in this context?