/external/llvm/lib/CodeGen/ |
D | LocalStackSlotAllocation.cpp | 71 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 …]
|
D | PrologEpilogInserter.cpp | 556 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 …]
|
D | MachineFunction.cpp | 676 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/ |
D | NVPTXPrologEpilogPass.cpp | 85 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/ |
D | LocalStackSlotAllocation.cpp | 62 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()
|
D | PrologEpilogInserter.cpp | 469 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/ |
D | MipsFrameLowering.cpp | 126 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()
|
D | MipsConstantIslandPass.cpp | 534 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()
|
D | MipsSEFrameLowering.cpp | 519 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/ |
D | X86FrameLowering.cpp | 606 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/ |
D | PPCFrameLowering.cpp | 181 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 …]
|
D | PPCRegisterInfo.cpp | 360 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/ |
D | TypeLoc.cpp | 79 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/ |
D | ARMFrameLowering.cpp | 263 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/ |
D | PPCRegisterInfo.cpp | 371 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()
|
D | PPCFrameLowering.cpp | 433 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/ |
D | X86FrameLowering.cpp | 797 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 …]
|
D | X86FrameLowering.h | 202 unsigned Reg, uint64_t MaxAlign) const;
|
/external/llvm/lib/Target/Sparc/ |
D | SparcFrameLowering.cpp | 181 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/ |
D | ARMFrameLowering.cpp | 647 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()
|
D | ARMConstantIslandPass.cpp | 547 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/ |
D | HexagonFrameLowering.cpp | 503 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/ |
D | ScalarReplAggregates.cpp | 1065 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/ |
D | CodeGenFunction.cpp | 136 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/ |
D | InstCombineLoadStoreAlloca.cpp | 269 unsigned MaxAlign = std::max(EntryAI->getAlignment(), in visitAllocaInst() local 271 EntryAI->setAlignment(MaxAlign); in visitAllocaInst()
|