| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | Loads.cpp | 39 APInt Alignment(Offset.getBitWidth(), Align); in isAligned() 49 return isAligned(Base, Offset, Align, DL); in isAligned() 76 return isAligned(V, Align, DL); in isDereferenceableAndAlignedPointer() 141 if (Align == 0) in isDereferenceableAndAlignedPointer() 142 Align = DL.getABITypeAlignment(Ty); in isDereferenceableAndAlignedPointer() 201 bool llvm::isSafeToLoadUnconditionally(Value *V, unsigned Align, in isSafeToLoadUnconditionally() argument 206 if (Align == 0) in isSafeToLoadUnconditionally() 208 assert(isPowerOf2_32(Align)); in isSafeToLoadUnconditionally() 249 if (Align <= BaseAlign) { in isSafeToLoadUnconditionally() 252 ((ByteOffset % Align) == 0)) in isSafeToLoadUnconditionally() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | VectorUtils.h | 254 InterleaveGroup(unsigned Factor, bool Reverse, unsigned Align) in InterleaveGroup() argument 255 : Factor(Factor), Reverse(Reverse), Align(Align), InsertPos(nullptr) {} in InterleaveGroup() 257 InterleaveGroup(InstTy *Instr, int Stride, unsigned Align) in InterleaveGroup() argument 258 : Align(Align), InsertPos(Instr) { in InterleaveGroup() 259 assert(Align && "The alignment should be non-zero"); in InterleaveGroup() 270 unsigned getAlignment() const { return Align; } in getAlignment() 302 Align = std::min(Align, NewAlign); in insertMember() 361 unsigned Align; variable 478 unsigned Align) in StrideDescriptor() 479 : Stride(Stride), Scev(Scev), Size(Size), Align(Align) {} in StrideDescriptor() [all …]
|
| H A D | Loads.h | 37 bool isDereferenceableAndAlignedPointer(const Value *V, unsigned Align, 46 bool isDereferenceableAndAlignedPointer(const Value *V, unsigned Align, 59 bool isSafeToLoadUnconditionally(Value *V, unsigned Align,
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | MachineFrameInfo.cpp | 32 void MachineFrameInfo::ensureMaxAlignment(unsigned Align) { in ensureMaxAlignment() argument 34 assert(Align <= StackAlignment && in ensureMaxAlignment() 36 if (MaxAlignment < Align) MaxAlignment = Align; in ensureMaxAlignment() 40 static inline unsigned clampStackAlignment(bool ShouldClamp, unsigned Align, in clampStackAlignment() argument 42 if (!ShouldClamp || Align <= StackAlign) in clampStackAlignment() 43 return Align; in clampStackAlignment() 44 LLVM_DEBUG(dbgs() << "Warning: requested alignment " << Align in clampStackAlignment() 152 unsigned Align = getObjectAlignment(i); in estimateStackSize() local 154 Offset = (Offset+Align-1)/Align*Align; in estimateStackSize() 156 MaxAlign = std::max(Align, MaxAlign); in estimateStackSize()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | Recycler.h | 28 void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize); 34 template <class T, size_t Size = sizeof(T), size_t Align = alignof(T)> 85 static_assert(alignof(SubClass) <= Align, in Allocate() 90 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate() 106 template <class T, size_t Size, size_t Align> 107 void Recycler<T, Size, Align>::PrintStats() { in PrintStats() 111 PrintRecyclerStats(Size, Align, S); in PrintStats()
|
| H A D | RecyclingAllocator.h | 26 size_t Align = alignof(T)> 31 Recycler<T, Size, Align> Base; 62 template<class AllocatorType, class T, size_t Size, size_t Align> 65 T, Size, Align> &Allocator) { in new() 70 template<class AllocatorType, class T, size_t Size, size_t Align> 73 T, Size, Align> &A) { in delete()
|
| H A D | MathExtras.h | 686 assert(Align != 0u && "Align can't be 0."); 687 Skew %= Align; 688 return (Value + Align - 1 - Skew) / Align * Align + Skew; 694 static_assert(Align != 0u, "Align must be non-zero"); 695 return (Value + Align - 1) / Align * Align; 707 template <uint64_t Align> 712 static const uint64_t value = (Value + Align - 1) / Align * Align; 719 assert(Align != 0u && "Align can't be 0."); 720 Skew %= Align; 721 return (Value - Skew) / Align * Align + Skew; [all …]
|
| H A D | FormatVariadic.h | 51 ReplacementItem(StringRef Spec, size_t Index, size_t Align, AlignStyle Where, in ReplacementItem() 53 : Type(ReplacementType::Format), Spec(Spec), Index(Index), Align(Align), in ReplacementItem() 59 size_t Align = 0; member 86 size_t &Align, char &Pad); 121 FmtAlign Align(*W, R.Where, R.Align, R.Pad); in format() 122 Align.format(S, R.Options); in format()
|
| H A D | TrailingObjects.h | 96 template <int Align> 128 template <int Align, typename BaseTy, typename TopTrailingObj, typename PrevTy, 135 template <int Align, typename BaseTy, typename TopTrailingObj, typename PrevTy, 137 class TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, PrevTy, NextTy, 139 : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, 142 typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...> 211 template <int Align, typename BaseTy, typename TopTrailingObj, typename PrevTy> 212 class TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, PrevTy> 213 : public TrailingObjectsAligner<Align> {
|
| /freebsd-12.1/contrib/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXPrologEpilogPass.cpp | 109 unsigned Align = MFI.getObjectAlignment(FrameIdx); in AdjustStackOffset() local 113 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 116 Offset = (Offset + Align - 1) / Align * Align; in AdjustStackOffset() 182 unsigned Align = MFI.getLocalFrameMaxAlign(); in calculateFrameObjectOffsets() local 185 Offset = (Offset + Align - 1) / Align * Align; in calculateFrameObjectOffsets() 200 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | ARMSelectionDAGInfo.cpp | 26 SDValue Size, unsigned Align, RTLIB::Libcall LC) const { in EmitSpecializedLibcall() argument 68 if ((Align & 7) == 0) in EmitSpecializedLibcall() 70 else if ((Align & 3) == 0) in EmitSpecializedLibcall() 130 SDValue Size, unsigned Align, bool isVolatile, bool AlwaysInline, in EmitTargetCodeForMemcpy() argument 136 if ((Align & 3) != 0) in EmitTargetCodeForMemcpy() 142 return EmitSpecializedLibcall(DAG, dl, Chain, Dst, Src, Size, Align, in EmitTargetCodeForMemcpy() 146 return EmitSpecializedLibcall(DAG, dl, Chain, Dst, Src, Size, Align, in EmitTargetCodeForMemcpy() 244 SDValue Size, unsigned Align, bool isVolatile, in EmitTargetCodeForMemmove() argument 246 return EmitSpecializedLibcall(DAG, dl, Chain, Dst, Src, Size, Align, in EmitTargetCodeForMemmove() 252 SDValue Size, unsigned Align, bool isVolatile, in EmitTargetCodeForMemset() argument [all …]
|
| H A D | ARMSelectionDAGInfo.h | 43 SDValue Size, unsigned Align, bool isVolatile, 51 unsigned Align, bool isVolatile, 58 SDValue Op3, unsigned Align, bool isVolatile, 63 SDValue Size, unsigned Align,
|
| /freebsd-12.1/contrib/llvm/include/llvm/CodeGen/ |
| H A D | CallingConvLower.h | 425 unsigned AllocateStack(unsigned Size, unsigned Align) { in AllocateStack() argument 426 assert(Align && ((Align - 1) & Align) == 0); // Align is power of 2. in AllocateStack() 427 StackOffset = alignTo(StackOffset, Align); in AllocateStack() 430 MaxStackArgAlign = std::max(Align, MaxStackArgAlign); in AllocateStack() 431 ensureMaxAlignment(Align); in AllocateStack() 435 void ensureMaxAlignment(unsigned Align) { in ensureMaxAlignment() argument 437 MF.getFrameInfo().ensureMaxAlignment(Align); in ensureMaxAlignment() 441 unsigned AllocateStack(unsigned Size, unsigned Align, unsigned ShadowReg) { in AllocateStack() argument 443 return AllocateStack(Size, Align); in AllocateStack() 448 unsigned AllocateStack(unsigned Size, unsigned Align, in AllocateStack() argument [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/ |
| H A D | X86SelectionDAGInfo.cpp | 67 SDValue Size, unsigned Align, bool isVolatile, in EmitTargetCodeForMemset() argument 87 if ((Align & 3) != 0 || !ConstantSize || in EmitTargetCodeForMemset() 133 switch (Align & 3) { in EmitTargetCodeForMemset() 144 if (Subtarget.is64Bit() && ((Align & 0x7) == 0)) { // QWORD aligned in EmitTargetCodeForMemset() 196 Align, isVolatile, false, in EmitTargetCodeForMemset() 206 SDValue Size, unsigned Align, bool isVolatile, bool AlwaysInline, in EmitTargetCodeForMemcpy() argument 223 if (!AlwaysInline && (Align & 3) != 0) in EmitTargetCodeForMemcpy() 240 if (!Subtarget.hasERMSB() && !(Align & 1)) { in EmitTargetCodeForMemcpy() 241 if (Align & 2) in EmitTargetCodeForMemcpy() 244 else if (Align & 4) in EmitTargetCodeForMemcpy() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/BPF/ |
| H A D | BPFSelectionDAGInfo.cpp | 23 SDValue Size, unsigned Align, bool isVolatile, bool AlwaysInline, in EmitTargetCodeForMemcpy() argument 31 unsigned StoresNumEstimate = alignTo(CopyLen, Align) >> Log2_32(Align); in EmitTargetCodeForMemcpy() 40 DAG.getConstant(Align, dl, MVT::i64)); in EmitTargetCodeForMemcpy()
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | FormatVariadic.cpp | 28 size_t &Align, char &Pad) { in consumeFieldLayout() argument 30 Align = 0; in consumeFieldLayout() 53 bool Failed = Spec.consumeInteger(0, Align); in consumeFieldLayout() 64 std::size_t Align = 0; in parseReplacementItem() local 76 if (!consumeFieldLayout(RepString, Where, Align, Pad)) in parseReplacementItem() 89 return ReplacementItem{Spec, Index, Align, Where, Pad, Options}; in parseReplacementItem()
|
| /freebsd-12.1/contrib/llvm/include/llvm/MC/ |
| H A D | MCSymbol.h | 345 void setCommon(uint64_t Size, unsigned Align) { in setCommon() argument 350 assert((!Align || isPowerOf2_32(Align)) && in setCommon() 352 unsigned Log2Align = Log2_32(Align) + 1; in setCommon() 369 bool declareCommon(uint64_t Size, unsigned Align) { in declareCommon() argument 372 if(CommonSize != Size || getCommonAlignment() != Align) in declareCommon() 375 setCommon(Size, Align); in declareCommon()
|
| H A D | MCSymbolMachO.h | 114 if (unsigned Align = getCommonAlignment()) { in getEncodedFlags() local 115 unsigned Log2Size = Log2_32(Align); in getEncodedFlags() 116 assert((1U << Log2Size) == Align && "Invalid 'common' alignment!"); in getEncodedFlags() 119 Twine(Align) + "' for '" + getName() + "'", in getEncodedFlags()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUMachineFunction.cpp | 52 unsigned Align = GV.getAlignment(); in allocateLDSGlobal() local 53 if (Align == 0) in allocateLDSGlobal() 54 Align = DL.getABITypeAlignment(GV.getValueType()); in allocateLDSGlobal() 59 unsigned Offset = LDSSize = alignTo(LDSSize, Align); in allocateLDSGlobal()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 233 CharUnits Align; in calculateOptimalPad() member 240 return std::make_tuple(Align, -Size, in calculateOptimalPad() 244 RHS.Align, -RHS.Size, in calculateOptimalPad() 254 std::tie(RetVal.Size, RetVal.Align) = in calculateOptimalPad() 256 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad() 258 RetVal.Align = std::max(Ctx.toCharUnitsFromBits(Max), RetVal.Align); in calculateOptimalPad() 298 CharUnits NextOffset = NewOffset.alignTo(Fields[0].Align); in calculateOptimalPad()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 537 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo() 538 Align = PowerOf2Ceil(Align); in getAlignmentInfo() 539 return Align; in getAlignmentInfo() 548 unsigned Align = getTypeStoreSize(Ty); in getAlignmentInfo() local 549 Align = PowerOf2Ceil(Align); in getAlignmentInfo() 550 return Align; in getAlignmentInfo() 703 unsigned Align = getAlignmentInfo(AGGREGATE_ALIGN, 0, abi_or_pref, Ty); in getAlignment() local 704 return std::max(Align, Layout->getAlignment()); in getAlignment() 745 unsigned Align = getPrefTypeAlignment(Ty); in getPreferredTypeAlignmentShift() local 746 assert(!(Align & (Align-1)) && "Alignment is not a power of two!"); in getPreferredTypeAlignmentShift() [all …]
|
| H A D | Value.cpp | 649 unsigned Align = 0; in getPointerAlignment() local 655 Align = GO->getAlignment(); in getPointerAlignment() 656 if (Align == 0) { in getPointerAlignment() 664 Align = DL.getPreferredAlignment(GVar); in getPointerAlignment() 671 Align = A->getParamAlignment(); in getPointerAlignment() 673 if (!Align && A->hasStructRetAttr()) { in getPointerAlignment() 677 Align = DL.getABITypeAlignment(EltTy); in getPointerAlignment() 680 Align = AI->getAlignment(); in getPointerAlignment() 681 if (Align == 0) { in getPointerAlignment() 691 Align = CI->getLimitedValue(); in getPointerAlignment() [all …]
|
| /freebsd-12.1/contrib/llvm/utils/TableGen/ |
| H A D | CallingConvEmitter.cpp | 176 int Align = Action->getValueAsInt("Align"); in EmitAction() local 187 if (Align) in EmitAction() 188 O << Align; in EmitAction() 200 int Align = Action->getValueAsInt("Align"); in EmitAction() local 216 << Size << ", " << Align << ", " in EmitAction() 260 int Align = Action->getValueAsInt("Align"); in EmitAction() local 263 << Size << ", " << Align << ", ArgFlags);\n"; in EmitAction()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CGBuilder.h | 91 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, 93 return CreateAlignedLoad(Addr, Align.getQuantity(), Name); 95 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, in CreateAlignedLoad() argument 97 return CreateAlignedLoad(Addr, Align.getQuantity(), Name); in CreateAlignedLoad() 100 CharUnits Align, 103 return CreateAlignedLoad(Addr, Align.getQuantity(), Name); 116 CharUnits Align, bool IsVolatile = false) { 117 return CreateAlignedStore(Val, Addr, Align.getQuantity(), IsVolatile);
|
| /freebsd-12.1/contrib/llvm/lib/Target/XCore/ |
| H A D | XCoreMachineFunctionInfo.cpp | 74 unsigned Align = TRI.getSpillAlignment(RC); in createEHSpillSlot() local 75 EHSpillSlot[0] = MFI.CreateStackObject(Size, Align, true); in createEHSpillSlot() 76 EHSpillSlot[1] = MFI.CreateStackObject(Size, Align, true); in createEHSpillSlot()
|