/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | LocalStackSlotAllocation.cpp | 82 bool StackGrowsDown, unsigned &MaxAlign); 86 int64_t &Offset, unsigned &MaxAlign); 146 unsigned &MaxAlign) { in AdjustStackOffset() argument 155 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 180 unsigned &MaxAlign) { in AssignProtectedObjSet() argument 184 AdjustStackOffset(MFI, i, Offset, StackGrowsDown, MaxAlign); in AssignProtectedObjSet() 198 unsigned MaxAlign = 0; in calculateFrameObjectOffsets() local 209 StackGrowsDown, MaxAlign); in calculateFrameObjectOffsets() 235 Offset, MaxAlign); in calculateFrameObjectOffsets() 237 Offset, MaxAlign); in calculateFrameObjectOffsets() [all …]
|
D | PrologEpilogInserter.cpp | 549 unsigned &MaxAlign, unsigned Skew) { in AdjustStackOffset() argument 558 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 618 bool StackGrowsDown, unsigned MaxAlign, in scavengeStackSlot() argument 631 if (ObjAlign > MaxAlign) in scavengeStackSlot() 681 int64_t &Offset, unsigned &MaxAlign, unsigned Skew) { in AssignProtectedObjSet() argument 686 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign, Skew); in AssignProtectedObjSet() 768 unsigned MaxAlign = MFI.getMaxAlignment(); in calculateFrameObjectOffsets() local 783 AdjustStackOffset(MFI, *I, StackGrowsDown, Offset, MaxAlign, Skew); in calculateFrameObjectOffsets() 809 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets() 826 Offset, MaxAlign, Skew); in calculateFrameObjectOffsets() [all …]
|
D | MachineFrameInfo.cpp | 137 unsigned MaxAlign = getMaxAlignment(); in estimateStackSize() local 156 MaxAlign = std::max(Align, MaxAlign); in estimateStackSize() 176 StackAlign = std::max(StackAlign, MaxAlign); in estimateStackSize()
|
D | GlobalMerge.cpp | 460 unsigned MaxAlign = 1; in doMerge() local 480 MaxAlign = std::max(MaxAlign, Align); in doMerge() 518 MergedGV->setAlignment(MaxAlign); in doMerge()
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/ |
D | NVPTXPrologEpilogPass.cpp | 85 unsigned &MaxAlign) { in AdjustStackOffset() argument 94 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 154 unsigned MaxAlign = MFI.getMaxAlignment(); in calculateFrameObjectOffsets() local 181 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets() 195 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets() 221 StackAlign = std::max(StackAlign, MaxAlign); in calculateFrameObjectOffsets()
|
/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()
|
/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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUSubtarget.cpp | 410 unsigned &MaxAlign) const { in getExplicitKernArgSize() 416 MaxAlign = 1; in getExplicitKernArgSize() 424 MaxAlign = std::max(MaxAlign, Align); in getExplicitKernArgSize() 431 unsigned &MaxAlign) const { in getKernArgSegmentSize() 432 uint64_t ExplicitArgBytes = getExplicitKernArgSize(F, MaxAlign); in getKernArgSegmentSize()
|
D | AMDGPULowerKernelArguments.cpp | 80 unsigned MaxAlign; in runOnFunction() local 82 const uint64_t TotalKernArgSize = ST.getKernArgSegmentSize(F, MaxAlign); in runOnFunction() 224 Attribute::getWithAlignment(Ctx, std::max(KernArgBaseAlign, MaxAlign))); in runOnFunction()
|
/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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86FrameLowering.cpp | 848 uint64_t MaxAlign = MFI.getMaxAlignment(); // Desired stack alignment. in calculateMaxStackAlign() local 852 MaxAlign = (StackAlign > MaxAlign) ? StackAlign : MaxAlign; in calculateMaxStackAlign() 853 else if (MaxAlign < SlotSize) in calculateMaxStackAlign() 854 MaxAlign = SlotSize; in calculateMaxStackAlign() 856 return MaxAlign; in calculateMaxStackAlign() 862 uint64_t MaxAlign) const { in BuildStackAlignAND() 863 uint64_t Val = -MaxAlign; in BuildStackAlignAND() 968 uint64_t MaxAlign = calculateMaxStackAlign(MF); // Desired stack alignment. in emitPrologue() local 1104 NumBytes = alignTo(NumBytes, MaxAlign); in emitPrologue() 1210 BuildStackAlignAND(MBB, MBBI, DL, StackPtr, MaxAlign); in emitPrologue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 445 unsigned MaxAlign = MFI.getMaxAlignment(); in lowerDynamicAlloc() local 446 assert((maxCallFrameSize & (MaxAlign-1)) == 0 && in lowerDynamicAlloc() 459 if (MaxAlign < TargetAlign && isInt<16>(FrameSize)) { in lowerDynamicAlloc() 484 if (MaxAlign > TargetAlign) { in lowerDynamicAlloc() 491 .addImm(~(MaxAlign-1)); in lowerDynamicAlloc() 509 if (MaxAlign > TargetAlign) { in lowerDynamicAlloc() 516 .addImm(~(MaxAlign-1)); in lowerDynamicAlloc()
|
D | PPCFrameLowering.cpp | 451 unsigned MaxAlign = MFI.getMaxAlignment(); // algmt required by data in frame in determineFrameLayout() local 452 unsigned AlignMask = std::max(MaxAlign, TargetAlign) - 1; in determineFrameLayout() 685 unsigned MaxAlign = MFI.getMaxAlignment(); in twoUniqueScratchRegsRequired() local 688 return (IsLargeFrame || !HasRedZone) && HasBP && MaxAlign > 1; in twoUniqueScratchRegsRequired() 834 unsigned MaxAlign = MFI.getMaxAlignment(); in emitPrologue() local 835 if (HasBP && MaxAlign > 1) in emitPrologue() 836 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue() 942 if (HasBP && MaxAlign > 1) { in emitPrologue() 947 .addImm(64 - Log2_32(MaxAlign)); in emitPrologue() 952 .addImm(32 - Log2_32(MaxAlign)) in emitPrologue()
|
/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()
|