Home
last modified time | relevance | path

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

/external/llvm/include/llvm/Object/
DELFTypes.h60 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/
DLocalStackSlotAllocation.cpp70 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 …]
DPrologEpilogInserter.cpp404 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 …]
DMachineFunction.cpp630 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/
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/llvm/lib/Target/Mips/
DMipsFrameLowering.cpp118 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()
DMipsConstantIslandPass.cpp545 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/
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/X86/
DX86FrameLowering.cpp447 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()
DX86ISelLowering.cpp1630 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/
DTypeLoc.cpp77 unsigned MaxAlign = 1; in getFullDataSizeForType() local
80 MaxAlign = std::max(Align, MaxAlign); in getFullDataSizeForType()
85 Total = llvm::RoundUpToAlignment(Total, MaxAlign); in getFullDataSizeForType()
DRecordLayoutBuilder.cpp1246 if (unsigned MaxAlign = D->getMaxAlignment()) in InitializeLayout() local
1247 UpdateAlignment(Context.toCharUnitsFromBits(MaxAlign)); in InitializeLayout()
/external/llvm/lib/Target/PowerPC/
DPPCRegisterInfo.cpp293 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()
DPPCFrameLowering.cpp371 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()
DPPCISelLowering.cpp719 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/
DInstCombineLoadStoreAlloca.cpp251 unsigned MaxAlign = std::max(EntryAI->getAlignment(), in visitAllocaInst() local
253 EntryAI->setAlignment(MaxAlign); in visitAllocaInst()
/external/llvm/lib/Target/ARM/
DARMFrameLowering.cpp517 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()
DARMConstantIslandPass.cpp512 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()
DARMExpandPseudoInsts.cpp887 unsigned MaxAlign = MFI->getMaxAlignment(); in ExpandMI() local
895 .addImm(MaxAlign-1))); in ExpandMI()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1187 unsigned MaxAlign = 0; in isSafePHIToSpeculate() local
1202 MaxAlign = std::max(MaxAlign, LI->getAlignment()); in isSafePHIToSpeculate()
1230 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign, DL)) in isSafePHIToSpeculate()
DSROA.cpp1086 unsigned MaxAlign = 0; in isSafePHIToSpeculate() local
1105 MaxAlign = std::max(MaxAlign, LI->getAlignment()); in isSafePHIToSpeculate()
1134 isSafeToLoadUnconditionally(InVal, TI, MaxAlign, DL)) in isSafePHIToSpeculate()