Home
last modified time | relevance | path

Searched refs:MinAlign (Results 1 – 25 of 29) sorted by relevance

12

/external/llvm/unittests/Support/
DMathExtrasTest.cpp169 TEST(MathExtras, MinAlign) { in TEST() argument
170 EXPECT_EQ(1u, MinAlign(2, 3)); in TEST()
171 EXPECT_EQ(2u, MinAlign(2, 4)); in TEST()
172 EXPECT_EQ(1u, MinAlign(17, 64)); in TEST()
173 EXPECT_EQ(256u, MinAlign(256, 512)); in TEST()
/external/llvm/lib/CodeGen/
DCallingConvLower.cpp46 int MinSize, int MinAlign, in HandleByVal() argument
52 if (MinAlign > (int)Align) in HandleByVal()
53 Align = MinAlign; in HandleByVal()
56 Size = unsigned(RoundUpToAlignment(Size, MinAlign)); in HandleByVal()
DMachineFunction.cpp586 unsigned Align = MinAlign(SPOffset, StackAlignment); in CreateFixedObject()
599 unsigned Align = MinAlign(SPOffset, StackAlignment); in CreateFixedSpillStackObject()
DMachineInstr.cpp535 return MinAlign(getBaseAlignment(), getOffset()); in getAlignment()
/external/clang/include/clang/AST/
DCharUnits.h185 return CharUnits(llvm::MinAlign(Quantity, offset.Quantity)); in alignmentAtOffset()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp189 false, false, MinAlign(Alignment, IncrementSize)); in ExpandRes_BITCAST()
284 MinAlign(Alignment, IncrementSize), AAInfo); in ExpandRes_NormalLoad()
502 MinAlign(Alignment, IncrementSize), AAInfo); in ExpandOp_NormalStore()
DLegalizeVectorOps.cpp537 MinAlign(LD->getAlignment(), Offset), in ExpandLoad()
549 MinAlign(LD->getAlignment(), Offset), in ExpandLoad()
625 MinAlign(LD->getAlignment(), Idx * Stride), LD->getAAInfo()); in ExpandLoad()
685 isVolatile, isNonTemporal, MinAlign(Alignment, Idx*Stride), in ExpandStore()
DLegalizeDAG.cpp372 MinAlign(ST->getAlignment(), Offset))); in ExpandUnalignedStore()
396 MinAlign(ST->getAlignment(), Offset), in ExpandUnalignedStore()
428 Alignment = MinAlign(Alignment, IncrementSize); in ExpandUnalignedStore()
491 MinAlign(LD->getAlignment(), Offset), in ExpandUnalignedLoad()
511 MinAlign(LD->getAlignment(), Offset), in ExpandUnalignedLoad()
564 MinAlign(Alignment, IncrementSize), LD->getAAInfo()); in ExpandUnalignedLoad()
576 MinAlign(Alignment, IncrementSize), LD->getAAInfo()); in ExpandUnalignedLoad()
718 isVolatile, isNonTemporal, MinAlign(Alignment, 4U), in OptimizeFloatStore()
834 MinAlign(Alignment, IncrementSize), AAInfo); in LegalizeStoreOps()
855 MinAlign(Alignment, IncrementSize), AAInfo); in LegalizeStoreOps()
[all …]
DLegalizeVectorTypes.cpp874 false, false, false, MinAlign(Alignment, IncrementSize)); in SplitVecRes_INSERT_SUBVECTOR()
973 false, false, false, MinAlign(Alignment, IncrementSize)); in SplitVecRes_INSERT_VECTOR_ELT()
3444 isNonTemporal, isInvariant, MinAlign(Align, Increment), in GenWidenVectorLoads()
3460 isNonTemporal, isInvariant, MinAlign(Align, Increment), in GenWidenVectorLoads()
3617 MinAlign(Align, Offset), AAInfo)); in GenWidenVectorStores()
3640 MinAlign(Align, Offset), AAInfo)); in GenWidenVectorStores()
3701 MinAlign(Align, Offset), AAInfo)); in GenWidenVectorTruncStores()
DLegalizeIntegerTypes.cpp2056 MinAlign(Alignment, IncrementSize), AAInfo); in ExpandIntRes_LOAD()
2085 MinAlign(Alignment, IncrementSize), AAInfo); in ExpandIntRes_LOAD()
2989 MinAlign(Alignment, IncrementSize), AAInfo); in ExpandIntOp_STORE()
3028 MinAlign(Alignment, IncrementSize), AAInfo); in ExpandIntOp_STORE()
DDAGCombiner.cpp3233 Alignment = MinAlign(Alignment, PtrOff); in visitAND()
5929 const unsigned Align = MinAlign(LN0->getAlignment(), Offset); in CombineExtLoad()
6845 unsigned NewAlign = MinAlign(LN0->getAlignment(), PtrOff); in ReduceLoadWidth()
10206 Alignment = MinAlign(Alignment, Alignment + Offset); in getAlignment()
10720 NewAlign = MinAlign(NewAlign, StOffset); in ShrinkLoadReplaceStoreWithStore()
10826 unsigned NewAlign = MinAlign(LD->getAlignment(), PtrOff); in ReduceLoadOpStoreWidth()
11827 Alignment = MinAlign(Alignment, 4U); in replaceStoreOfFPConstant()
DSelectionDAG.cpp4367 false, MinAlign(SrcAlign, SrcOff)); in getMemcpyLoadsAndStores()
7076 return MinAlign(Align, GVOffset); in InferPtrAlignment()
7094 unsigned FIInfoAlign = MinAlign(MFI.getObjectAlignment(FrameIdx), in InferPtrAlignment()
/external/llvm/include/llvm/CodeGen/
DCallingConvLower.h443 int MinSize, int MinAlign, ISD::ArgFlagsTy ArgFlags);
/external/llvm/include/llvm/Support/
DMathExtras.h552 inline uint64_t MinAlign(uint64_t A, uint64_t B) {
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp1623 return MinAlign(Alignment, Offset); in getAdjustedAlignment()
2335 MinAlign(NewAIAlign, NewBeginOffset - NewAllocaBeginOffset); in getSliceAlign()
2746 ConstantInt::get(CstTy, MinAlign(II.getAlignment(), SliceAlign))); in visitMemTransferInst()
2799 unsigned OtherAlign = MinAlign(II.getAlignment() ? II.getAlignment() : 1, in visitMemTransferInst()
2814 MinAlign(SliceAlign, OtherAlign), II.isVolatile()); in visitMemTransferInst()
3864 Alignment = MinAlign(Alignment, P.beginOffset()); in rewritePartition()
DScalarizer.cpp109 return MinAlign(VecAlign, I * ElemSize); in getElemAlign()
DMemCpyOptimizer.cpp880 Align = MinAlign(SrcSizeC->getZExtValue(), DestAlign); in processMemSetMemCpyDependence()
DScalarReplAggregates.cpp2261 OtherEltAlign = (unsigned)MinAlign(OtherEltAlign, EltOffset); in RewriteMemIntrinUserOfAlloca()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp66 unsigned MinAlign = std::min(DstAlign, SrcAlign); in SimplifyMemTransfer() local
69 if (CopyAlign < MinAlign) { in SimplifyMemTransfer()
70 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(), MinAlign, false)); in SimplifyMemTransfer()
/external/llvm/lib/Analysis/
DLint.cpp458 Assert(!BaseAlign || Align <= MinAlign(BaseAlign, Offset), in visitMemoryReference()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp510 unsigned NewAlign = (unsigned)MinAlign(StartAlignment, FieldOffset); in SRAGlobal()
543 unsigned NewAlign = (unsigned)MinAlign(StartAlignment, EltSize*i); in SRAGlobal()
/external/clang/lib/CodeGen/
DCGCall.cpp866 CharUnits MinAlign) { in CreateTempAllocaForCoercion() argument
869 CharUnits Align = std::max(MinAlign, CharUnits::fromQuantity(PrefAlign)); in CreateTempAllocaForCoercion()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp1230 unsigned HiAlign = MinAlign(BaseAlign, Size); in SplitVectorLoad()
1380 unsigned HiAlign = MinAlign(BaseAlign, Size); in SplitVectorStore()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp456 MinAlign(GV->getAlignment(), 4) == 4) { in LowerLOAD()
/external/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp7674 LN->isInvariant(), MinAlign(Alignment, Idx*Stride), in LowerVectorLoad()
7681 LN->isInvariant(), MinAlign(Alignment, Idx*Stride), in LowerVectorLoad()
7773 MinAlign(Alignment, Idx*Stride), SN->getAAInfo()); in LowerVectorStore()
7779 MinAlign(Alignment, Idx*Stride), SN->getAAInfo()); in LowerVectorStore()

12