/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 | 503 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 …]
|
D | MachineFunction.cpp | 633 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/ |
D | NVPTXPrologEpilogPass.cpp | 86 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/ |
D | MipsFrameLowering.cpp | 128 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()
|
D | MipsConstantIslandPass.cpp | 543 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()
|
D | MipsSEFrameLowering.cpp | 521 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/ |
D | RemoteMemoryManager.cpp | 93 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/ |
D | WebAssemblyPEI.cpp | 519 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/ |
D | TypeLoc.cpp | 79 unsigned MaxAlign = 1; in getFullDataSizeForType() local 82 MaxAlign = std::max(Align, MaxAlign); in getFullDataSizeForType() 87 Total = llvm::RoundUpToAlignment(Total, MaxAlign); in getFullDataSizeForType()
|
D | RecordLayoutBuilder.cpp | 1254 if (unsigned MaxAlign = D->getMaxAlignment()) in InitializeLayout() local 1255 UpdateAlignment(Context.toCharUnitsFromBits(MaxAlign)); in InitializeLayout()
|
/external/llvm/lib/Target/X86/ |
D | X86FrameLowering.cpp | 793 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 …]
|
D | X86FrameLowering.h | 183 unsigned Reg, uint64_t MaxAlign) const;
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 344 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()
|
D | PPCFrameLowering.cpp | 435 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()
|
D | PPCISelLowering.cpp | 945 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/ |
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/Hexagon/ |
D | HexagonFrameLowering.cpp | 433 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/ |
D | ARMFrameLowering.cpp | 649 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()
|
D | ARMConstantIslandPass.cpp | 534 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()
|
D | ARMExpandPseudoInsts.cpp | 933 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/ |
D | InstCombineLoadStoreAlloca.cpp | 267 unsigned MaxAlign = std::max(EntryAI->getAlignment(), in visitAllocaInst() local 269 EntryAI->setAlignment(MaxAlign); in visitAllocaInst()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 1188 unsigned MaxAlign = 0; in isSafePHIToSpeculate() local 1203 MaxAlign = std::max(MaxAlign, LI->getAlignment()); in isSafePHIToSpeculate() 1233 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign)) in isSafePHIToSpeculate()
|
D | SROA.cpp | 1146 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/ |
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()
|