/external/llvm/include/llvm/Object/ |
D | ELFTypes.h | 60 template <endianness TargetEndianness, std::size_t MaxAlign> 61 struct ELFDataTypeTypedefHelper<ELFType<TargetEndianness, MaxAlign, false> > 62 : ELFDataTypeTypedefHelperCommon<TargetEndianness, MaxAlign> { 66 MaximumAlignment<value_type, MaxAlign>::value> Elf_Addr; 69 MaximumAlignment<value_type, MaxAlign>::value> Elf_Off; 73 template <endianness TargetEndianness, std::size_t MaxAlign> 74 struct ELFDataTypeTypedefHelper<ELFType<TargetEndianness, MaxAlign, true> > 75 : ELFDataTypeTypedefHelperCommon<TargetEndianness, MaxAlign> { 79 MaximumAlignment<value_type, MaxAlign>::value> Elf_Addr; 82 MaximumAlignment<value_type, MaxAlign>::value> Elf_Off; [all …]
|
/external/llvm/lib/CodeGen/ |
D | LocalStackSlotAllocation.cpp | 70 bool StackGrowsDown, unsigned &MaxAlign); 74 int64_t &Offset, unsigned &MaxAlign); 136 unsigned &MaxAlign) { in AdjustStackOffset() argument 145 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 170 unsigned &MaxAlign) { in AssignProtectedObjSet() argument 175 AdjustStackOffset(MFI, i, Offset, StackGrowsDown, MaxAlign); in AssignProtectedObjSet() 190 unsigned MaxAlign = 0; in calculateFrameObjectOffsets() local 202 StackGrowsDown, MaxAlign); in calculateFrameObjectOffsets() 228 Offset, MaxAlign); in calculateFrameObjectOffsets() 230 Offset, MaxAlign); in calculateFrameObjectOffsets() [all …]
|
D | PrologEpilogInserter.cpp | 404 unsigned &MaxAlign) { in AdjustStackOffset() argument 413 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 434 int64_t &Offset, unsigned &MaxAlign) { in AssignProtectedObjSet() argument 439 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in AssignProtectedObjSet() 513 unsigned MaxAlign = MFI->getMaxAlignment(); in calculateFrameObjectOffsets() local 528 AdjustStackOffset(MFI, *I, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets() 554 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets() 566 Offset, MaxAlign); in calculateFrameObjectOffsets() 599 Offset, MaxAlign); in calculateFrameObjectOffsets() 601 Offset, MaxAlign); in calculateFrameObjectOffsets() [all …]
|
D | MachineFunction.cpp | 630 unsigned MaxAlign = getMaxAlignment(); in estimateStackSize() local 649 MaxAlign = std::max(Align, MaxAlign); in estimateStackSize() 669 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/llvm/lib/Target/Mips/ |
D | MipsFrameLowering.cpp | 118 unsigned MaxAlign = MFI->getMaxAlignment(); in estimateStackSize() local 122 assert(!MFI->getObjectIndexEnd() || MaxAlign); in estimateStackSize() 126 Offset = RoundUpToAlignment(Offset + MFI->getObjectSize(I), MaxAlign); in estimateStackSize() 131 std::max(MaxAlign, getStackAlignment())); in estimateStackSize()
|
D | MipsConstantIslandPass.cpp | 545 unsigned MaxAlign = Log2_32(MCP->getConstantPoolAlignment()); in doInitialPlacement() local 549 BB->setAlignment(AlignConstantIslands ? MaxAlign : 2); in doInitialPlacement() 559 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(MaxAlign + 1, BB->end()); in doInitialPlacement() 587 for (unsigned a = LogAlign + 1; a <= MaxAlign; ++a) in doInitialPlacement()
|
/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/X86/ |
D | X86FrameLowering.cpp | 447 uint64_t MaxAlign = MFI->getMaxAlignment(); // Desired stack alignment. in emitPrologue() local 474 MaxAlign = (StackAlign > MaxAlign) ? StackAlign : MaxAlign; in emitPrologue() 475 else if (MaxAlign < SlotSize) in emitPrologue() 476 MaxAlign = SlotSize; in emitPrologue() 542 NumBytes = (FrameSize + MaxAlign - 1) / MaxAlign * MaxAlign; in emitPrologue() 640 .addImm(-MaxAlign) in emitPrologue() 872 uint64_t MaxAlign = MFI->getMaxAlignment(); in emitEpilogue() local 882 MaxAlign = (StackAlign > MaxAlign) ? StackAlign : MaxAlign; in emitEpilogue() 884 MaxAlign = MaxAlign ? MaxAlign : 4; in emitEpilogue() 894 NumBytes = (FrameSize + MaxAlign - 1) / MaxAlign * MaxAlign; in emitEpilogue()
|
D | X86ISelLowering.cpp | 1630 static void getMaxByValAlign(Type *Ty, unsigned &MaxAlign) { in getMaxByValAlign() argument 1631 if (MaxAlign == 16) in getMaxByValAlign() 1635 MaxAlign = 16; in getMaxByValAlign() 1639 if (EltAlign > MaxAlign) in getMaxByValAlign() 1640 MaxAlign = EltAlign; in getMaxByValAlign() 1645 if (EltAlign > MaxAlign) in getMaxByValAlign() 1646 MaxAlign = EltAlign; in getMaxByValAlign() 1647 if (MaxAlign == 16) in getMaxByValAlign()
|
/external/clang/lib/AST/ |
D | TypeLoc.cpp | 77 unsigned MaxAlign = 1; in getFullDataSizeForType() local 80 MaxAlign = std::max(Align, MaxAlign); in getFullDataSizeForType() 85 Total = llvm::RoundUpToAlignment(Total, MaxAlign); in getFullDataSizeForType()
|
D | RecordLayoutBuilder.cpp | 1246 if (unsigned MaxAlign = D->getMaxAlignment()) in InitializeLayout() local 1247 UpdateAlignment(Context.toCharUnitsFromBits(MaxAlign)); in InitializeLayout()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 293 unsigned MaxAlign = MFI->getMaxAlignment(); in lowerDynamicAlloc() local 294 assert((maxCallFrameSize & (MaxAlign-1)) == 0 && in lowerDynamicAlloc() 307 if (MaxAlign < TargetAlign && isInt<16>(FrameSize)) { in lowerDynamicAlloc() 327 if (MaxAlign > TargetAlign) { in lowerDynamicAlloc() 334 .addImm(~(MaxAlign-1)); in lowerDynamicAlloc() 352 if (MaxAlign > TargetAlign) { in lowerDynamicAlloc() 359 .addImm(~(MaxAlign-1)); in lowerDynamicAlloc()
|
D | PPCFrameLowering.cpp | 371 unsigned MaxAlign = MFI->getMaxAlignment(); // algmt required by data in frame in determineFrameLayout() local 372 unsigned AlignMask = std::max(MaxAlign, TargetAlign) - 1; in determineFrameLayout() 610 unsigned MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local 611 if (HasBP && MaxAlign > 1) in emitPrologue() 612 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue() 672 if (HasBP && MaxAlign > 1) { in emitPrologue() 677 .addImm(64 - Log2_32(MaxAlign)); in emitPrologue() 682 .addImm(32 - Log2_32(MaxAlign)) in emitPrologue()
|
D | PPCISelLowering.cpp | 719 static void getMaxByValAlign(Type *Ty, unsigned &MaxAlign, in getMaxByValAlign() argument 721 if (MaxAlign == MaxMaxAlign) in getMaxByValAlign() 725 MaxAlign = 32; in getMaxByValAlign() 726 else if (VTy->getBitWidth() >= 128 && MaxAlign < 16) in getMaxByValAlign() 727 MaxAlign = 16; in getMaxByValAlign() 731 if (EltAlign > MaxAlign) in getMaxByValAlign() 732 MaxAlign = EltAlign; in getMaxByValAlign() 737 if (EltAlign > MaxAlign) in getMaxByValAlign() 738 MaxAlign = EltAlign; in getMaxByValAlign() 739 if (MaxAlign == MaxMaxAlign) in getMaxByValAlign()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 251 unsigned MaxAlign = std::max(EntryAI->getAlignment(), in visitAllocaInst() local 253 EntryAI->setAlignment(MaxAlign); in visitAllocaInst()
|
/external/llvm/lib/Target/ARM/ |
D | ARMFrameLowering.cpp | 517 unsigned MaxAlign = MFI->getMaxAlignment(); in emitPrologue() local 524 .addImm(MaxAlign-1))); in emitPrologue() 537 .addImm(MaxAlign-1))); in emitPrologue() 1014 unsigned MaxAlign = MF.getFrameInfo()->getMaxAlignment(); in emitAlignedDPRCS2Spills() local 1017 .addImm(MaxAlign - 1))); in emitAlignedDPRCS2Spills()
|
D | ARMConstantIslandPass.cpp | 512 unsigned MaxAlign = Log2_32(MCP->getConstantPoolAlignment()); in doInitialPlacement() local 516 BB->setAlignment(AlignConstantIslands ? MaxAlign : 2); in doInitialPlacement() 526 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(MaxAlign + 1, BB->end()); in doInitialPlacement() 552 for (unsigned a = LogAlign + 1; a <= MaxAlign; ++a) in doInitialPlacement()
|
D | ARMExpandPseudoInsts.cpp | 887 unsigned MaxAlign = MFI->getMaxAlignment(); in ExpandMI() local 895 .addImm(MaxAlign-1))); in ExpandMI()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 1187 unsigned MaxAlign = 0; in isSafePHIToSpeculate() local 1202 MaxAlign = std::max(MaxAlign, LI->getAlignment()); in isSafePHIToSpeculate() 1230 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign, DL)) in isSafePHIToSpeculate()
|
D | SROA.cpp | 1086 unsigned MaxAlign = 0; in isSafePHIToSpeculate() local 1105 MaxAlign = std::max(MaxAlign, LI->getAlignment()); in isSafePHIToSpeculate() 1134 isSafeToLoadUnconditionally(InVal, TI, MaxAlign, DL)) in isSafePHIToSpeculate()
|