Home
last modified time | relevance | path

Searched refs:MaxAlign (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm/lib/CodeGen/
DLocalStackSlotAllocation.cpp71 bool StackGrowsDown, unsigned &MaxAlign);
75 int64_t &Offset, unsigned &MaxAlign);
137 unsigned &MaxAlign) { in AdjustStackOffset() argument
146 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
171 unsigned &MaxAlign) { in AssignProtectedObjSet() argument
176 AdjustStackOffset(MFI, i, Offset, StackGrowsDown, MaxAlign); in AssignProtectedObjSet()
191 unsigned MaxAlign = 0; in calculateFrameObjectOffsets() local
203 StackGrowsDown, MaxAlign); in calculateFrameObjectOffsets()
229 Offset, MaxAlign); in calculateFrameObjectOffsets()
231 Offset, MaxAlign); in calculateFrameObjectOffsets()
[all …]
DPrologEpilogInserter.cpp503 unsigned &MaxAlign, unsigned Skew) { in AdjustStackOffset() argument
512 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
533 int64_t &Offset, unsigned &MaxAlign, unsigned Skew) { in AssignProtectedObjSet() argument
538 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign, Skew); in AssignProtectedObjSet()
615 unsigned MaxAlign = MFI->getMaxAlignment(); in calculateFrameObjectOffsets() local
630 AdjustStackOffset(MFI, *I, StackGrowsDown, Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
656 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
668 Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
701 Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
703 Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
[all …]
DMachineFunction.cpp633 unsigned MaxAlign = getMaxAlignment(); in estimateStackSize() local
652 MaxAlign = std::max(Align, MaxAlign); in estimateStackSize()
672 StackAlign = std::max(StackAlign, MaxAlign); in estimateStackSize()
/external/llvm/lib/Target/NVPTX/
DNVPTXPrologEpilogPass.cpp86 unsigned &MaxAlign) { in AdjustStackOffset() argument
95 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
153 unsigned MaxAlign = MFI->getMaxAlignment(); in calculateFrameObjectOffsets() local
180 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
194 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets()
220 StackAlign = std::max(StackAlign, MaxAlign); in calculateFrameObjectOffsets()
/external/llvm/lib/Target/Mips/
DMipsFrameLowering.cpp128 unsigned MaxAlign = MFI->getMaxAlignment(); in estimateStackSize() local
132 assert(!MFI->getObjectIndexEnd() || MaxAlign); in estimateStackSize()
136 Offset = RoundUpToAlignment(Offset + MFI->getObjectSize(I), MaxAlign); in estimateStackSize()
141 std::max(MaxAlign, getStackAlignment())); in estimateStackSize()
DMipsConstantIslandPass.cpp543 unsigned MaxAlign = Log2_32(MCP->getConstantPoolAlignment()); in doInitialPlacement() local
547 BB->setAlignment(AlignConstantIslands ? MaxAlign : 2); in doInitialPlacement()
557 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(MaxAlign + 1, BB->end()); in doInitialPlacement()
585 for (unsigned a = LogAlign + 1; a <= MaxAlign; ++a) in doInitialPlacement()
DMipsSEFrameLowering.cpp521 int MaxAlign = - (signed) MFI->getMaxAlignment(); in emitPrologue() local
523 BuildMI(MBB, MBBI, dl, TII.get(ADDiu), VR).addReg(ZERO) .addImm(MaxAlign); in emitPrologue()
/external/llvm/tools/lli/
DRemoteMemoryManager.cpp93 unsigned MaxAlign = Target->getPageAlignment(); in notifyObjectLoaded() local
114 CurOffset = (CurOffset + MaxAlign - 1) / MaxAlign * MaxAlign; in notifyObjectLoaded()
133 if (!Target->allocateSpace(CurOffset, MaxAlign, RemoteAddr)) in notifyObjectLoaded()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyPEI.cpp519 unsigned &MaxAlign, unsigned Skew) { in AdjustStackOffset() argument
528 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
549 int64_t &Offset, unsigned &MaxAlign, unsigned Skew) { in AssignProtectedObjSet() argument
554 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign, Skew); in AssignProtectedObjSet()
631 unsigned MaxAlign = MFI->getMaxAlignment(); in calculateFrameObjectOffsets() local
646 AdjustStackOffset(MFI, *I, StackGrowsDown, Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
672 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
684 Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
717 Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
719 Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
[all …]
/external/clang/lib/AST/
DTypeLoc.cpp79 unsigned MaxAlign = 1; in getFullDataSizeForType() local
82 MaxAlign = std::max(Align, MaxAlign); in getFullDataSizeForType()
87 Total = llvm::RoundUpToAlignment(Total, MaxAlign); in getFullDataSizeForType()
DRecordLayoutBuilder.cpp1254 if (unsigned MaxAlign = D->getMaxAlignment()) in InitializeLayout() local
1255 UpdateAlignment(Context.toCharUnitsFromBits(MaxAlign)); in InitializeLayout()
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp793 uint64_t MaxAlign = MFI->getMaxAlignment(); // Desired stack alignment. in calculateMaxStackAlign() local
797 MaxAlign = (StackAlign > MaxAlign) ? StackAlign : MaxAlign; in calculateMaxStackAlign()
798 else if (MaxAlign < SlotSize) in calculateMaxStackAlign()
799 MaxAlign = SlotSize; in calculateMaxStackAlign()
801 return MaxAlign; in calculateMaxStackAlign()
807 uint64_t MaxAlign) const { in BuildStackAlignAND()
808 uint64_t Val = -MaxAlign; in BuildStackAlignAND()
912 uint64_t MaxAlign = calculateMaxStackAlign(MF); // Desired stack alignment. in emitPrologue() local
1030 NumBytes = RoundUpToAlignment(NumBytes, MaxAlign); in emitPrologue()
1131 BuildStackAlignAND(MBB, MBBI, DL, StackPtr, MaxAlign); in emitPrologue()
[all …]
DX86FrameLowering.h183 unsigned Reg, uint64_t MaxAlign) const;
/external/llvm/lib/Target/PowerPC/
DPPCRegisterInfo.cpp344 unsigned MaxAlign = MFI->getMaxAlignment(); in lowerDynamicAlloc() local
345 assert((maxCallFrameSize & (MaxAlign-1)) == 0 && in lowerDynamicAlloc()
358 if (MaxAlign < TargetAlign && isInt<16>(FrameSize)) { in lowerDynamicAlloc()
378 if (MaxAlign > TargetAlign) { in lowerDynamicAlloc()
385 .addImm(~(MaxAlign-1)); in lowerDynamicAlloc()
403 if (MaxAlign > TargetAlign) { in lowerDynamicAlloc()
410 .addImm(~(MaxAlign-1)); in lowerDynamicAlloc()
DPPCFrameLowering.cpp435 unsigned MaxAlign = MFI->getMaxAlignment(); // algmt required by data in frame in determineFrameLayout() local
436 unsigned AlignMask = std::max(MaxAlign, TargetAlign) - 1; in determineFrameLayout()
742 unsigned MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local
743 if (HasBP && MaxAlign > 1) in emitPrologue()
744 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
814 if (HasBP && MaxAlign > 1) { in emitPrologue()
819 .addImm(64 - Log2_32(MaxAlign)); in emitPrologue()
824 .addImm(32 - Log2_32(MaxAlign)) in emitPrologue()
DPPCISelLowering.cpp945 static void getMaxByValAlign(Type *Ty, unsigned &MaxAlign, in getMaxByValAlign() argument
947 if (MaxAlign == MaxMaxAlign) in getMaxByValAlign()
951 MaxAlign = 32; in getMaxByValAlign()
952 else if (VTy->getBitWidth() >= 128 && MaxAlign < 16) in getMaxByValAlign()
953 MaxAlign = 16; in getMaxByValAlign()
957 if (EltAlign > MaxAlign) in getMaxByValAlign()
958 MaxAlign = EltAlign; in getMaxByValAlign()
963 if (EltAlign > MaxAlign) in getMaxByValAlign()
964 MaxAlign = EltAlign; in getMaxByValAlign()
965 if (MaxAlign == MaxMaxAlign) in getMaxByValAlign()
/external/llvm/lib/Target/Sparc/
DSparcFrameLowering.cpp181 int MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local
182 BuildMI(MBB, MBBI, dl, TII.get(SP::ANDNri), SP::O6).addReg(SP::O6).addImm(MaxAlign - 1); in emitPrologue()
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp433 unsigned MaxAlign = std::max(MFI->getMaxAlignment(), getStackAlignment()); in insertPrologueInBlock() local
439 unsigned MaxCFA = RoundUpToAlignment(MFI->getMaxCallFrameSize(), MaxAlign); in insertPrologueInBlock()
442 FrameSize = MaxCFA + RoundUpToAlignment(FrameSize, MaxAlign); in insertPrologueInBlock()
445 bool AlignStack = (MaxAlign > getStackAlignment()); in insertPrologueInBlock()
498 .addImm(-int64_t(MaxAlign)); in insertPrologueInBlock()
/external/llvm/lib/Target/ARM/
DARMFrameLowering.cpp649 unsigned MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local
652 emitAligningInstructions(MF, AFI, TII, MBB, MBBI, dl, ARM::SP, MaxAlign, in emitPrologue()
664 emitAligningInstructions(MF, AFI, TII, MBB, MBBI, dl, ARM::R4, MaxAlign, in emitPrologue()
1115 unsigned MaxAlign = MF.getFrameInfo()->getMaxAlignment(); in emitAlignedDPRCS2Spills() local
1121 emitAligningInstructions(MF, AFI, TII, MBB, MI, DL, ARM::R4, MaxAlign, true); in emitAlignedDPRCS2Spills()
DARMConstantIslandPass.cpp534 unsigned MaxAlign = Log2_32(MCP->getConstantPoolAlignment()); in doInitialConstPlacement() local
537 BB->setAlignment(MaxAlign); in doInitialConstPlacement()
547 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(MaxAlign + 1, BB->end()); in doInitialConstPlacement()
573 for (unsigned a = LogAlign + 1; a <= MaxAlign; ++a) in doInitialConstPlacement()
DARMExpandPseudoInsts.cpp933 unsigned MaxAlign = MFI->getMaxAlignment(); in ExpandMI() local
936 assert(MaxAlign <= 256 && "The BIC instruction cannot encode " in ExpandMI()
944 .addImm(MaxAlign-1))); in ExpandMI()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp267 unsigned MaxAlign = std::max(EntryAI->getAlignment(), in visitAllocaInst() local
269 EntryAI->setAlignment(MaxAlign); in visitAllocaInst()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1188 unsigned MaxAlign = 0; in isSafePHIToSpeculate() local
1203 MaxAlign = std::max(MaxAlign, LI->getAlignment()); in isSafePHIToSpeculate()
1233 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign)) in isSafePHIToSpeculate()
DSROA.cpp1146 unsigned MaxAlign = 0; in isSafePHIToSpeculate() local
1165 MaxAlign = std::max(MaxAlign, LI->getAlignment()); in isSafePHIToSpeculate()
1196 isSafeToLoadUnconditionally(InVal, TI, MaxAlign)) in isSafePHIToSpeculate()
/external/clang/lib/CodeGen/
DCodeGenFunction.cpp136 if (unsigned MaxAlign = getLangOpts().MaxTypeAlign) { in getNaturalTypeAlignment() local
137 if (Alignment.getQuantity() > MaxAlign && in getNaturalTypeAlignment()
139 Alignment = CharUnits::fromQuantity(MaxAlign); in getNaturalTypeAlignment()

12