mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 18:34:09 +00:00
Forgot these.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46292 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2928650262
commit
3ae054385c
@ -3917,8 +3917,7 @@ TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
|
|||||||
Flags |= ISD::ParamFlags::ByVal;
|
Flags |= ISD::ParamFlags::ByVal;
|
||||||
const PointerType *Ty = cast<PointerType>(I->getType());
|
const PointerType *Ty = cast<PointerType>(I->getType());
|
||||||
const Type *ElementTy = Ty->getElementType();
|
const Type *ElementTy = Ty->getElementType();
|
||||||
unsigned FrameAlign =
|
unsigned FrameAlign = Log2_32(getByValTypeAlignment(ElementTy));
|
||||||
Log2_32(getTargetData()->getCallFrameTypeAlignment(ElementTy));
|
|
||||||
unsigned FrameSize = getTargetData()->getABITypeSize(ElementTy);
|
unsigned FrameSize = getTargetData()->getABITypeSize(ElementTy);
|
||||||
Flags |= (FrameAlign << ISD::ParamFlags::ByValAlignOffs);
|
Flags |= (FrameAlign << ISD::ParamFlags::ByValAlignOffs);
|
||||||
Flags |= (FrameSize << ISD::ParamFlags::ByValSizeOffs);
|
Flags |= (FrameSize << ISD::ParamFlags::ByValSizeOffs);
|
||||||
@ -4047,8 +4046,7 @@ TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy,
|
|||||||
Flags |= ISD::ParamFlags::ByVal;
|
Flags |= ISD::ParamFlags::ByVal;
|
||||||
const PointerType *Ty = cast<PointerType>(Args[i].Ty);
|
const PointerType *Ty = cast<PointerType>(Args[i].Ty);
|
||||||
const Type *ElementTy = Ty->getElementType();
|
const Type *ElementTy = Ty->getElementType();
|
||||||
unsigned FrameAlign =
|
unsigned FrameAlign = Log2_32(getByValTypeAlignment(ElementTy));
|
||||||
Log2_32(getTargetData()->getCallFrameTypeAlignment(ElementTy));
|
|
||||||
unsigned FrameSize = getTargetData()->getABITypeSize(ElementTy);
|
unsigned FrameSize = getTargetData()->getABITypeSize(ElementTy);
|
||||||
Flags |= (FrameAlign << ISD::ParamFlags::ByValAlignOffs);
|
Flags |= (FrameAlign << ISD::ParamFlags::ByValAlignOffs);
|
||||||
Flags |= (FrameSize << ISD::ParamFlags::ByValSizeOffs);
|
Flags |= (FrameSize << ISD::ParamFlags::ByValSizeOffs);
|
||||||
|
@ -414,6 +414,12 @@ unsigned TargetLowering::getVectorTypeBreakdown(MVT::ValueType VT,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// getByValTypeAlignment - Return the desired alignment for ByVal aggregate
|
||||||
|
/// function arguments in the caller parameter area.
|
||||||
|
unsigned TargetLowering::getByValTypeAlignment(const Type *Ty) const {
|
||||||
|
return Log2_32(TD->getCallFrameTypeAlignment(Ty));
|
||||||
|
}
|
||||||
|
|
||||||
SDOperand TargetLowering::getPICJumpTableRelocBase(SDOperand Table,
|
SDOperand TargetLowering::getPICJumpTableRelocBase(SDOperand Table,
|
||||||
SelectionDAG &DAG) const {
|
SelectionDAG &DAG) const {
|
||||||
if (usesGlobalOffsetTable())
|
if (usesGlobalOffsetTable())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user