Home
last modified time | relevance | path

Searched refs:MaxAlign (Results 1 – 25 of 34) 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.cpp556 unsigned &MaxAlign, unsigned Skew) { in AdjustStackOffset() argument
565 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
625 bool StackGrowsDown, unsigned MaxAlign, in scavengeStackSlot() argument
638 if (ObjAlign > MaxAlign) in scavengeStackSlot()
688 int64_t &Offset, unsigned &MaxAlign, unsigned Skew) { in AssignProtectedObjSet() argument
693 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign, Skew); in AssignProtectedObjSet()
774 unsigned MaxAlign = MFI->getMaxAlignment(); in calculateFrameObjectOffsets() local
789 AdjustStackOffset(MFI, *I, StackGrowsDown, Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
815 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
832 Offset, MaxAlign, Skew); in calculateFrameObjectOffsets()
[all …]
DMachineFunction.cpp676 unsigned MaxAlign = getMaxAlignment(); in estimateStackSize() local
695 MaxAlign = std::max(Align, MaxAlign); in estimateStackSize()
715 StackAlign = std::max(StackAlign, MaxAlign); in estimateStackSize()
/external/llvm/lib/Target/NVPTX/
DNVPTXPrologEpilogPass.cpp85 unsigned &MaxAlign) { in AdjustStackOffset() argument
94 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
152 unsigned MaxAlign = MFI->getMaxAlignment(); in calculateFrameObjectOffsets() local
179 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
193 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets()
219 StackAlign = std::max(StackAlign, MaxAlign); in calculateFrameObjectOffsets()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DLocalStackSlotAllocation.cpp62 bool StackGrowsDown, unsigned &MaxAlign);
121 unsigned &MaxAlign) { in AdjustStackOffset() argument
130 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
159 unsigned MaxAlign = 0; in calculateFrameObjectOffsets() local
166 StackGrowsDown, MaxAlign); in calculateFrameObjectOffsets()
177 AdjustStackOffset(MFI, i, Offset, StackGrowsDown, MaxAlign); in calculateFrameObjectOffsets()
192 AdjustStackOffset(MFI, i, Offset, StackGrowsDown, MaxAlign); in calculateFrameObjectOffsets()
197 MFI->setLocalFrameMaxAlign(MaxAlign); in calculateFrameObjectOffsets()
DPrologEpilogInserter.cpp469 unsigned &MaxAlign) { in AdjustStackOffset() argument
478 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
561 unsigned MaxAlign = MFI->getMaxAlignment(); in calculateFrameObjectOffsets() local
570 AdjustStackOffset(MFI, SFI, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets()
596 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
604 Offset, MaxAlign); in calculateFrameObjectOffsets()
622 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets()
644 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets()
653 AdjustStackOffset(MFI, SFI, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets()
677 StackAlign = std::max(StackAlign, MaxAlign); in calculateFrameObjectOffsets()
/external/llvm/lib/Target/Mips/
DMipsFrameLowering.cpp126 unsigned MaxAlign = MFI->getMaxAlignment(); in estimateStackSize() local
130 assert(!MFI->getObjectIndexEnd() || MaxAlign); in estimateStackSize()
134 Offset = alignTo(Offset + MFI->getObjectSize(I), MaxAlign); in estimateStackSize()
139 std::max(MaxAlign, getStackAlignment())); in estimateStackSize()
DMipsConstantIslandPass.cpp534 unsigned MaxAlign = Log2_32(MCP->getConstantPoolAlignment()); in doInitialPlacement() local
538 BB->setAlignment(AlignConstantIslands ? MaxAlign : 2); in doInitialPlacement()
548 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(MaxAlign + 1, BB->end()); in doInitialPlacement()
576 for (unsigned a = LogAlign + 1; a <= MaxAlign; ++a) in doInitialPlacement()
DMipsSEFrameLowering.cpp519 int MaxAlign = -(int)MFI->getMaxAlignment(); in emitPrologue() local
521 BuildMI(MBB, MBBI, dl, TII.get(ADDiu), VR).addReg(ZERO) .addImm(MaxAlign); in emitPrologue()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86FrameLowering.cpp606 uint64_t MaxAlign = MFI->getMaxAlignment(); // Desired stack alignment. in emitPrologue() local
623 MaxAlign = (StackAlign > MaxAlign) ? StackAlign : MaxAlign; in emitPrologue()
624 else if (MaxAlign < SlotSize) in emitPrologue()
625 MaxAlign = SlotSize; in emitPrologue()
687 FrameSize = (FrameSize + MaxAlign - 1) / MaxAlign * MaxAlign; in emitPrologue()
753 .addImm(-MaxAlign) in emitPrologue()
955 uint64_t MaxAlign = MFI->getMaxAlignment(); in emitEpilogue() local
965 MaxAlign = (StackAlign > MaxAlign) ? StackAlign : MaxAlign; in emitEpilogue()
967 MaxAlign = MaxAlign ? MaxAlign : 4; in emitEpilogue()
974 FrameSize = (FrameSize + MaxAlign - 1)/MaxAlign*MaxAlign; in emitEpilogue()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCFrameLowering.cpp181 unsigned MaxAlign = MFI->getMaxAlignment(); in determineFrameLayout() local
194 (!ALIGN_STACK || MaxAlign <= TargetAlign)) { // No special alignment. in determineFrameLayout()
348 unsigned MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local
354 if (ALIGN_STACK && MaxAlign > TargetAlign) { in emitPrologue()
355 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
362 .addImm(32 - Log2_32(MaxAlign)) in emitPrologue()
388 if (ALIGN_STACK && MaxAlign > TargetAlign) { in emitPrologue()
389 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
396 .addImm(64 - Log2_32(MaxAlign)); in emitPrologue()
525 unsigned MaxAlign = MFI->getMaxAlignment(); in emitEpilogue() local
[all …]
DPPCRegisterInfo.cpp360 unsigned MaxAlign = MFI->getMaxAlignment(); in lowerDynamicAlloc() local
361 if (MaxAlign > TargetAlign) in lowerDynamicAlloc()
381 if (MaxAlign < TargetAlign && isInt<16>(FrameSize)) { in lowerDynamicAlloc()
/external/clang/lib/AST/
DTypeLoc.cpp79 unsigned MaxAlign = 1; in getFullDataSizeForType() local
82 MaxAlign = std::max(Align, MaxAlign); in getFullDataSizeForType()
87 Total = llvm::alignTo(Total, MaxAlign); in getFullDataSizeForType()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMFrameLowering.cpp263 unsigned MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local
270 .addImm(MaxAlign-1))); in emitPrologue()
283 .addImm(MaxAlign-1))); in emitPrologue()
756 unsigned MaxAlign = MFI->getMaxAlignment(); in estimateStackSize() local
775 MaxAlign = std::max(Align, MaxAlign); in estimateStackSize()
795 StackAlign = std::max(StackAlign, MaxAlign); in estimateStackSize()
/external/llvm/lib/Target/PowerPC/
DPPCRegisterInfo.cpp371 unsigned MaxAlign = MFI->getMaxAlignment(); in lowerDynamicAlloc() local
372 assert((maxCallFrameSize & (MaxAlign-1)) == 0 && in lowerDynamicAlloc()
385 if (MaxAlign < TargetAlign && isInt<16>(FrameSize)) { in lowerDynamicAlloc()
405 if (MaxAlign > TargetAlign) { in lowerDynamicAlloc()
412 .addImm(~(MaxAlign-1)); in lowerDynamicAlloc()
430 if (MaxAlign > TargetAlign) { in lowerDynamicAlloc()
437 .addImm(~(MaxAlign-1)); in lowerDynamicAlloc()
DPPCFrameLowering.cpp433 unsigned MaxAlign = MFI->getMaxAlignment(); // algmt required by data in frame in determineFrameLayout() local
434 unsigned AlignMask = std::max(MaxAlign, TargetAlign) - 1; in determineFrameLayout()
675 unsigned MaxAlign = MFI->getMaxAlignment(); in twoUniqueScratchRegsRequired() local
677 return IsLargeFrame && HasBP && MaxAlign > 1; in twoUniqueScratchRegsRequired()
824 unsigned MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local
825 if (HasBP && MaxAlign > 1) in emitPrologue()
826 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
929 if (HasBP && MaxAlign > 1) { in emitPrologue()
934 .addImm(64 - Log2_32(MaxAlign)); in emitPrologue()
939 .addImm(32 - Log2_32(MaxAlign)) in emitPrologue()
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp797 uint64_t MaxAlign = MFI->getMaxAlignment(); // Desired stack alignment. in calculateMaxStackAlign() local
801 MaxAlign = (StackAlign > MaxAlign) ? StackAlign : MaxAlign; in calculateMaxStackAlign()
802 else if (MaxAlign < SlotSize) in calculateMaxStackAlign()
803 MaxAlign = SlotSize; in calculateMaxStackAlign()
805 return MaxAlign; in calculateMaxStackAlign()
811 uint64_t MaxAlign) const { in BuildStackAlignAND()
812 uint64_t Val = -MaxAlign; in BuildStackAlignAND()
916 uint64_t MaxAlign = calculateMaxStackAlign(MF); // Desired stack alignment. in emitPrologue() local
1034 NumBytes = alignTo(NumBytes, MaxAlign); in emitPrologue()
1135 BuildStackAlignAND(MBB, MBBI, DL, StackPtr, MaxAlign); in emitPrologue()
[all …]
DX86FrameLowering.h202 unsigned Reg, uint64_t MaxAlign) const;
/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/ARM/
DARMFrameLowering.cpp647 unsigned MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local
650 emitAligningInstructions(MF, AFI, TII, MBB, MBBI, dl, ARM::SP, MaxAlign, in emitPrologue()
662 emitAligningInstructions(MF, AFI, TII, MBB, MBBI, dl, ARM::R4, MaxAlign, in emitPrologue()
1107 unsigned MaxAlign = MF.getFrameInfo()->getMaxAlignment(); in emitAlignedDPRCS2Spills() local
1113 emitAligningInstructions(MF, AFI, TII, MBB, MI, DL, ARM::R4, MaxAlign, true); in emitAlignedDPRCS2Spills()
DARMConstantIslandPass.cpp547 unsigned MaxAlign = Log2_32(MCP->getConstantPoolAlignment()); in doInitialConstPlacement() local
550 BB->setAlignment(MaxAlign); in doInitialConstPlacement()
560 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(MaxAlign + 1, BB->end()); in doInitialConstPlacement()
586 for (unsigned a = LogAlign + 1; a <= MaxAlign; ++a) in doInitialConstPlacement()
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp503 unsigned MaxAlign = std::max(MFI->getMaxAlignment(), getStackAlignment()); in insertPrologueInBlock() local
509 unsigned MaxCFA = alignTo(MFI->getMaxCallFrameSize(), MaxAlign); in insertPrologueInBlock()
512 FrameSize = MaxCFA + alignTo(FrameSize, MaxAlign); in insertPrologueInBlock()
515 bool AlignStack = (MaxAlign > getStackAlignment()); in insertPrologueInBlock()
568 .addImm(-int64_t(MaxAlign)); in insertPrologueInBlock()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1065 unsigned MaxAlign = 0; in isSafePHIToSpeculate() local
1081 MaxAlign = std::max(MaxAlign, LI->getAlignment()); in isSafePHIToSpeculate()
1109 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign, TD)) 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()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp269 unsigned MaxAlign = std::max(EntryAI->getAlignment(), in visitAllocaInst() local
271 EntryAI->setAlignment(MaxAlign); in visitAllocaInst()

12