mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Lower stackmap intrinsics directly to their target opcode in the DAG builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193769 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -64,6 +64,19 @@ bool TargetLowering::isInTailCallPosition(SelectionDAG &DAG, SDNode *Node,
|
||||
return isUsedByReturnOnly(Node, Chain);
|
||||
}
|
||||
|
||||
/// \brief Set CallLoweringInfo attribute flags based on a call instruction
|
||||
/// and called function attributes.
|
||||
void TargetLowering::ArgListEntry::setAttributes(ImmutableCallSite *CS,
|
||||
unsigned AttrIdx) {
|
||||
isSExt = CS->paramHasAttr(AttrIdx, Attribute::SExt);
|
||||
isZExt = CS->paramHasAttr(AttrIdx, Attribute::ZExt);
|
||||
isInReg = CS->paramHasAttr(AttrIdx, Attribute::InReg);
|
||||
isSRet = CS->paramHasAttr(AttrIdx, Attribute::StructRet);
|
||||
isNest = CS->paramHasAttr(AttrIdx, Attribute::Nest);
|
||||
isByVal = CS->paramHasAttr(AttrIdx, Attribute::ByVal);
|
||||
isReturned = CS->paramHasAttr(AttrIdx, Attribute::Returned);
|
||||
Alignment = CS->getParamAlignment(AttrIdx);
|
||||
}
|
||||
|
||||
/// Generate a libcall taking the given operands as arguments and returning a
|
||||
/// result of type RetVT.
|
||||
|
Reference in New Issue
Block a user