/external/llvm-project/llvm/lib/Support/ |
D | OptimizedStructLayout.cpp | 21 Align MaxAlign) { in checkValidLayout() argument 32 assert(Field.Alignment <= MaxAlign && in checkValidLayout() 34 ComputedMaxAlign = std::max(Field.Alignment, MaxAlign); in checkValidLayout() 37 assert(ComputedMaxAlign == MaxAlign && "didn't compute MaxAlign correctly"); in checkValidLayout() 66 Align MaxAlign; in performOptimizedStructLayout() local 71 MaxAlign = std::max(MaxAlign, FirstFlexible->Alignment); in performOptimizedStructLayout() 82 checkValidLayout(Fields, Size, MaxAlign); in performOptimizedStructLayout() 84 return std::make_pair(Size, MaxAlign); in performOptimizedStructLayout() 96 MaxAlign = std::max(MaxAlign, I->Alignment); in performOptimizedStructLayout() 164 checkValidLayout(Fields, LastEnd, MaxAlign); in performOptimizedStructLayout() [all …]
|
/external/swiftshader/third_party/llvm-10.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 217 AdjustStackOffset(MFI, StackProtectorFI, Offset, StackGrowsDown, MaxAlign); in calculateFrameObjectOffsets() 243 Offset, MaxAlign); in calculateFrameObjectOffsets() 245 Offset, MaxAlign); in calculateFrameObjectOffsets() [all …]
|
D | PrologEpilogInserter.cpp | 637 unsigned &MaxAlign, unsigned Skew) { in AdjustStackOffset() argument 646 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 709 bool StackGrowsDown, unsigned MaxAlign, in scavengeStackSlot() argument 722 if (ObjAlign > MaxAlign) in scavengeStackSlot() 772 int64_t &Offset, unsigned &MaxAlign, unsigned Skew) { in AssignProtectedObjSet() argument 777 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign, Skew); in AssignProtectedObjSet() 879 unsigned MaxAlign = MFI.getMaxAlignment(); in calculateFrameObjectOffsets() local 894 AdjustStackOffset(MFI, *I, StackGrowsDown, Offset, MaxAlign, Skew); in calculateFrameObjectOffsets() 920 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets() 942 AdjustStackOffset(MFI, StackProtectorFI, StackGrowsDown, Offset, MaxAlign, in calculateFrameObjectOffsets() [all …]
|
D | MachineFrameInfo.cpp | 139 unsigned MaxAlign = getMaxAlignment(); in estimateStackSize() local 162 MaxAlign = std::max(Align, MaxAlign); in estimateStackSize() 182 StackAlign = std::max(StackAlign, MaxAlign); in estimateStackSize()
|
D | GlobalMerge.cpp | 460 Align MaxAlign; in doMerge() local 482 MaxAlign = std::max(MaxAlign, Alignment); in doMerge() 520 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 …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LocalStackSlotAllocation.cpp | 82 bool StackGrowsDown, Align &MaxAlign); 86 int64_t &Offset, Align &MaxAlign); 145 Align &MaxAlign) { in AdjustStackOffset() argument 154 MaxAlign = std::max(MaxAlign, Alignment); in AdjustStackOffset() 178 Align &MaxAlign) { in AssignProtectedObjSet() argument 182 AdjustStackOffset(MFI, i, Offset, StackGrowsDown, MaxAlign); in AssignProtectedObjSet() 196 Align MaxAlign; in calculateFrameObjectOffsets() local 215 AdjustStackOffset(MFI, StackProtectorFI, Offset, StackGrowsDown, MaxAlign); in calculateFrameObjectOffsets() 243 Offset, MaxAlign); in calculateFrameObjectOffsets() 245 Offset, MaxAlign); in calculateFrameObjectOffsets() [all …]
|
D | PrologEpilogInserter.cpp | 638 Align &MaxAlign, unsigned Skew) { in AdjustStackOffset() argument 647 MaxAlign = std::max(MaxAlign, Alignment); in AdjustStackOffset() 710 bool StackGrowsDown, Align MaxAlign, in scavengeStackSlot() argument 723 if (ObjAlign > MaxAlign) in scavengeStackSlot() 772 int64_t &Offset, Align &MaxAlign, in AssignProtectedObjSet() argument 778 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign, Skew); in AssignProtectedObjSet() 878 Align MaxAlign = MFI.getMaxAlign(); in calculateFrameObjectOffsets() local 893 AdjustStackOffset(MFI, *I, StackGrowsDown, Offset, MaxAlign, Skew); in calculateFrameObjectOffsets() 919 MaxAlign = std::max(Alignment, MaxAlign); in calculateFrameObjectOffsets() 941 AdjustStackOffset(MFI, StackProtectorFI, StackGrowsDown, Offset, MaxAlign, in calculateFrameObjectOffsets() [all …]
|
D | MachineFrameInfo.cpp | 140 Align MaxAlign = getMaxAlign(); in estimateStackSize() local 163 MaxAlign = std::max(Alignment, MaxAlign); in estimateStackSize() 183 StackAlign = std::max(StackAlign, MaxAlign); in estimateStackSize()
|
D | GlobalMerge.cpp | 462 Align MaxAlign; in doMerge() local 484 MaxAlign = std::max(MaxAlign, Alignment); in doMerge() 522 MergedGV->setAlignment(MaxAlign); in doMerge()
|
/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-project/llvm/lib/Target/NVPTX/ |
D | NVPTXPrologEpilogPass.cpp | 103 Align &MaxAlign) { in AdjustStackOffset() argument 112 MaxAlign = std::max(MaxAlign, Alignment); in AdjustStackOffset() 172 Align MaxAlign = MFI.getMaxAlign(); in calculateFrameObjectOffsets() local 199 MaxAlign = std::max(Alignment, MaxAlign); in calculateFrameObjectOffsets() 213 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets() 239 Offset = alignTo(Offset, std::max(StackAlign, MaxAlign)); in calculateFrameObjectOffsets()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXPrologEpilogPass.cpp | 103 unsigned &MaxAlign) { in AdjustStackOffset() argument 112 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 172 unsigned MaxAlign = MFI.getMaxAlignment(); in calculateFrameObjectOffsets() local 199 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets() 213 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets() 239 StackAlign = std::max(StackAlign, MaxAlign); in calculateFrameObjectOffsets()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCBranchSelector.cpp | 181 Align MaxAlign = Align(4); in computeBranchSize() local 188 MaxAlign = std::max(MaxAlign, Src->getAlignment()); in computeBranchSize() 194 MaxAlign = std::max(MaxAlign, Fn.getBlockNumbered(i)->getAlignment()); in computeBranchSize() 205 MaxAlign = std::max(MaxAlign, Dest->getAlignment()); in computeBranchSize() 208 MaxAlign = std::max(MaxAlign, Fn.getBlockNumbered(i)->getAlignment()); in computeBranchSize() 258 BranchSize += MaxAlign.value() - 4; in computeBranchSize()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCBranchSelector.cpp | 212 Align MaxAlign = Align(4); in computeBranchSize() local 219 MaxAlign = std::max(MaxAlign, Src->getAlignment()); in computeBranchSize() 225 MaxAlign = std::max(MaxAlign, Fn.getBlockNumbered(i)->getAlignment()); in computeBranchSize() 236 MaxAlign = std::max(MaxAlign, Dest->getAlignment()); in computeBranchSize() 239 MaxAlign = std::max(MaxAlign, Fn.getBlockNumbered(i)->getAlignment()); in computeBranchSize() 289 BranchSize += MaxAlign.value() - 4; in computeBranchSize()
|
/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/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonVExtract.cpp | 110 MaybeAlign MaxAlign; in runOnMachineFunction() local 141 MaxAlign = max(MaxAlign, Alignment); in runOnMachineFunction() 181 if (AR && MaxAlign) { in runOnMachineFunction() 186 if (*MaxAlign > Op.getImm()) in runOnMachineFunction() 187 Op.setImm(MaxAlign->value()); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonVExtract.cpp | 110 unsigned MaxAlign = 0; in runOnMachineFunction() local 141 MaxAlign = std::max(MaxAlign, Align); in runOnMachineFunction() 186 if (MaxAlign > Op.getImm()) in runOnMachineFunction() 187 Op.setImm(MaxAlign); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULowerKernelArguments.cpp | 78 Align MaxAlign; in runOnFunction() local 80 const uint64_t TotalKernArgSize = ST.getKernArgSegmentSize(F, MaxAlign); in runOnFunction() 224 Attribute::getWithAlignment(Ctx, std::max(KernArgBaseAlign, MaxAlign))); in runOnFunction()
|
D | AMDGPUSubtarget.cpp | 494 Align &MaxAlign) const { in getExplicitKernArgSize() 500 MaxAlign = Align::None(); in getExplicitKernArgSize() 508 MaxAlign = std::max(MaxAlign, Alignment); in getExplicitKernArgSize() 515 Align &MaxAlign) const { in getKernArgSegmentSize() 516 uint64_t ExplicitArgBytes = getExplicitKernArgSize(F, MaxAlign); in getKernArgSegmentSize()
|
/external/llvm-project/clang-tools-extra/clang-tidy/altera/ |
D | StructPackAlignCheck.cpp | 76 CharUnits MaxAlign = CharUnits::fromQuantity( in check() local 83 bool NeedsPacking = (MinByteSize < CurrSize) && (MaxAlign != NewAlign) && in check()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPULowerKernelArguments.cpp | 93 Align MaxAlign; in runOnFunction() local 95 const uint64_t TotalKernArgSize = ST.getKernArgSegmentSize(F, MaxAlign); in runOnFunction() 256 Attribute::getWithAlignment(Ctx, std::max(KernArgBaseAlign, MaxAlign))); in runOnFunction()
|
D | AMDGPUSubtarget.cpp | 533 Align &MaxAlign) const { in getExplicitKernArgSize() 539 MaxAlign = Align(1); in getExplicitKernArgSize() 550 MaxAlign = max(MaxAlign, Alignment); in getExplicitKernArgSize() 557 Align &MaxAlign) const { in getKernArgSegmentSize() 558 uint64_t ExplicitArgBytes = getExplicitKernArgSize(F, MaxAlign); in getKernArgSegmentSize()
|
/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()
|