/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Alignment.h | 39 struct Align { struct 45 friend unsigned Log2(Align); 46 friend bool operator==(Align Lhs, Align Rhs); 47 friend bool operator!=(Align Lhs, Align Rhs); 48 friend bool operator<=(Align Lhs, Align Rhs); 49 friend bool operator>=(Align Lhs, Align Rhs); 50 friend bool operator<(Align Lhs, Align Rhs); 51 friend bool operator>(Align Lhs, Align Rhs); 68 constexpr Align() = default; argument 71 constexpr Align(const Align &Other) = default; [all …]
|
H A D | MathExtras.h | 487 constexpr T alignTo(U Value, V Align) { in alignTo() argument 488 assert(Align != 0u && "Align can't be 0."); in alignTo() 489 T CeilDiv = divideCeil(Value, Align); in alignTo() 490 return CeilDiv * Align; in alignTo() 494 constexpr uint64_t alignTo(uint64_t Value, uint64_t Align) { in alignTo() argument 495 assert(Align != 0u && "Align can't be 0."); in alignTo() 496 uint64_t CeilDiv = divideCeil(Value, Align); in alignTo() 497 return CeilDiv * Align; in alignTo() 500 constexpr uint64_t alignToPowerOf2(uint64_t Value, uint64_t Align) { in alignToPowerOf2() argument 501 assert(Align != 0 && (Align & (Align - 1)) == 0 && in alignToPowerOf2() [all …]
|
H A D | Recycler.h | 27 void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize); 33 template <class T, size_t Size = sizeof(T), size_t Align = alignof(T)> 84 static_assert(alignof(SubClass) <= Align, in Allocate() 89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate() 105 template <class T, size_t Size, size_t Align> 106 void Recycler<T, Size, Align>::PrintStats() { in PrintStats() 110 PrintRecyclerStats(Size, Align, S); in PrintStats()
|
H A D | RecyclingAllocator.h | 25 size_t Align = alignof(T)> 30 Recycler<T, Size, Align> Base; 61 template<class AllocatorType, class T, size_t Size, size_t Align> 64 T, Size, Align> &Allocator) { in new() 69 template<class AllocatorType, class T, size_t Size, size_t Align> 72 T, Size, Align> &A) { in delete()
|
H A D | FormatVariadic.h | 52 ReplacementItem(StringRef Spec, size_t Index, size_t Align, AlignStyle Where, in ReplacementItem() 54 : Type(ReplacementType::Format), Spec(Spec), Index(Index), Align(Align), in ReplacementItem() 60 size_t Align = 0; member 72 size_t &Align, char &Pad); 100 FmtAlign Align(*W, R.Where, R.Align, R.Pad); in format() 101 Align.format(S, R.Options); in format()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64Subtarget.cpp | 117 PrefFunctionAlignment = Align(16); in initializeProperties() 118 PrefLoopAlignment = Align(16); in initializeProperties() 123 PrefFunctionAlignment = Align(16); in initializeProperties() 124 PrefLoopAlignment = Align(16); in initializeProperties() 128 PrefFunctionAlignment = Align(8); in initializeProperties() 133 PrefFunctionAlignment = Align(16); in initializeProperties() 134 PrefLoopAlignment = Align(16); in initializeProperties() 143 PrefFunctionAlignment = Align(16); in initializeProperties() 144 PrefLoopAlignment = Align(32); in initializeProperties() 149 PrefFunctionAlignment = Align(16); in initializeProperties() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | InferAlignment.cpp | 27 function_ref<Align(Value *PtrOp, Align OldAlign, Align PrefAlign)> Fn) { in tryToImproveAlign() 30 Align OldAlign = LI->getAlign(); in tryToImproveAlign() 31 Align NewAlign = Fn(PtrOp, OldAlign, DL.getPrefTypeAlign(LI->getType())); in tryToImproveAlign() 39 Align OldAlign = SI->getAlign(); in tryToImproveAlign() 40 Align NewAlign = Fn(PtrOp, OldAlign, DL.getPrefTypeAlign(ValOp->getType())); in tryToImproveAlign() 59 DL, &I, [&](Value *PtrOp, Align OldAlign, Align PrefAlign) { in inferAlignment() 72 DL, &I, [&](Value *PtrOp, Align OldAlign, Align PrefAlign) { in inferAlignment() 76 return Align(1ull << std::min(Known.getBitWidth() - 1, TrailZ)); in inferAlignment()
|
H A D | AlignmentFromAssumptions.cpp | 73 return Align(DiffUnitsAbs); in getNewAlignmentDiff() 82 static Align getNewAlignment(const SCEV *AASCEV, const SCEV *AlignSCEV, in getNewAlignment() 89 return Align(1); in getNewAlignment() 136 return Align(1); in getNewAlignment() 138 const Align NewAlign = *NewAlignment; in getNewAlignment() 139 const Align NewIncAlign = *NewIncAlignment; in getNewAlignment() 156 return Align(1); in getNewAlignment() 219 Align NewAlignment = getNewAlignment(AASCEV, AlignSCEV, OffSCEV, in processAssumption() 228 Align NewAlignment = getNewAlignment(AASCEV, AlignSCEV, OffSCEV, in processAssumption() 237 Align NewDestAlignmen in processAssumption() [all...] |
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | DataLayout.cpp | 60 const Align TyAlign = ST->isPacked() ? Align(1) : DL.getABITypeAlign(Ty); in StructLayout() 125 LayoutAlignElem LayoutAlignElem::get(Align ABIAlign, Align PrefAlign, in get() 145 Align ABIAlign, Align PrefAlign, in getInBits() 182 {INTEGER_ALIGN, {1, Align(1), Align(1)}}, // i1 183 {INTEGER_ALIGN, {8, Align(1), Align(1)}}, // i8 184 {INTEGER_ALIGN, {16, Align(2), Align(2)}}, // i16 185 {INTEGER_ALIGN, {32, Align(4), Align(4)}}, // i32 186 {INTEGER_ALIGN, {64, Align(4), Align(8)}}, // i64 187 {FLOAT_ALIGN, {16, Align(2), Align(2)}}, // half, bfloat 188 {FLOAT_ALIGN, {32, Align(4), Align(4)}}, // float [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUHSAMetadataStreamer.cpp | 26 static std::pair<Type *, Align> getArgumentTypeAlign(const Argument &Arg, in getArgumentTypeAlign() 327 Align ArgAlign; in emitKernelArg() 337 const DataLayout &DL, Type *Ty, Align Alignment, StringRef ValueKind, in emitKernelArg() 401 emitKernelArg(DL, Int64Ty, Align(8), "hidden_global_offset_x", Offset, in emitHiddenKernelArgs() 404 emitKernelArg(DL, Int64Ty, Align(8), "hidden_global_offset_y", Offset, in emitHiddenKernelArgs() 407 emitKernelArg(DL, Int64Ty, Align(8), "hidden_global_offset_z", Offset, in emitHiddenKernelArgs() 418 emitKernelArg(DL, Int8PtrTy, Align(8), "hidden_printf_buffer", Offset, in emitHiddenKernelArgs() 421 emitKernelArg(DL, Int8PtrTy, Align(8), "hidden_hostcall_buffer", Offset, in emitHiddenKernelArgs() 424 emitKernelArg(DL, Int8PtrTy, Align(8), "hidden_none", Offset, Args); in emitHiddenKernelArgs() 431 emitKernelArg(DL, Int8PtrTy, Align(8), "hidden_default_queue", Offset, in emitHiddenKernelArgs() [all …]
|
H A D | AMDGPUMachineFunction.h | 31 Align MaxKernArgAlign; // Cache for this. 42 /// Align for dynamic shared memory if any. Dynamic shared memory is 47 Align DynLDSAlign; 77 Align getMaxKernArgAlign() const { return MaxKernArgAlign; } 117 Align Trailing); 122 Align getDynLDSAlign() const { return DynLDSAlign; }
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DataLayout.h | 74 Align ABIAlign; 75 Align PrefAlign; 77 static LayoutAlignElem get(Align ABIAlign, Align PrefAlign, 90 Align ABIAlign; 91 Align PrefAlign; 97 static PointerAlignElem getInBits(uint32_t AddressSpace, Align ABIAlign, 98 Align PrefAlign, uint32_t TypeBitWidth, 169 Error setAlignment(AlignTypeEnum AlignType, Align ABIAlign, Align PrefAlign, 174 Error setPointerAlignmentInBits(uint32_t AddrSpace, Align ABIAlign, 175 Align PrefAlign, uint32_t TypeBitWidth, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBasicBlockInfo.h | 33 inline unsigned UnknownPadding(Align Alignment, unsigned KnownBits) { in UnknownPadding() 71 Align PostAlign; 90 unsigned postOffset(Align Alignment = Align(1)) const { 92 const Align PA = std::max(PostAlign, Alignment); 93 if (PA == Align(1)) 104 unsigned postKnownBits(Align Align = llvm::Align(1)) const { 105 return std::max(Log2(std::max(PostAlign, Align)), internalKnownBits());
|
H A D | ARMBasicBlockInfo.cpp | 51 BBI.PostAlign = Align(1); in computeBlockSize() 66 BBI.PostAlign = Align(4); in computeBlockSize() 67 MBB->getParent()->ensureAlignment(Align(4)); in computeBlockSize() 130 const Align Align = MF.getBlockNumbered(i)->getAlignment(); in adjustBBOffsetsAfter() 131 const unsigned Offset = BBInfo[i - 1].postOffset(Align); in adjustBBOffsetsAfter() local 132 const unsigned KnownBits = BBInfo[i - 1].postKnownBits(Align); in adjustBBOffsetsAfter()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineConstantPool.h | 49 Align Alignment) = 0; 76 Align Alignment; 80 MachineConstantPoolEntry(const Constant *V, Align A) in MachineConstantPoolEntry() 85 MachineConstantPoolEntry(MachineConstantPoolValue *V, Align A) in MachineConstantPoolEntry() 95 Align getAlign() const { return Alignment; } in getAlign() 118 Align PoolAlignment; ///< The alignment for the pool. 134 Align getConstantPoolAlign() const { return PoolAlignment; } in getConstantPoolAlign() 139 unsigned getConstantPoolIndex(const Constant *C, Align Alignment); 140 unsigned getConstantPoolIndex(MachineConstantPoolValue *V, Align Alignment);
|
H A D | MachineFrameInfo.h | 133 Align Alignment; 184 StackObject(uint64_t Size, Align Alignment, int64_t SPOffset, 193 Align StackAlignment; 263 Align MaxAlignment; 307 Align LocalFrameMaxAlign; 342 explicit MachineFrameInfo(Align StackAlignment, bool StackRealignable, in MachineFrameInfo() 444 void setLocalFrameMaxAlign(Align Alignment) { in setLocalFrameMaxAlign() 449 Align getLocalFrameMaxAlign() const { return LocalFrameMaxAlign; } in getLocalFrameMaxAlign() 486 Align getObjectAlign(int ObjectIdx) const { in getObjectAlign() 499 void setObjectAlignment(int ObjectIdx, Align Alignment) { in setObjectAlignment() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineFrameInfo.cpp | 31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) { in ensureMaxAlignment() 40 static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment, in clampStackAlignment() 41 Align StackAlignment) { in clampStackAlignment() 51 int MachineFrameInfo::CreateStackObject(uint64_t Size, Align Alignment, in CreateStackObject() 66 int MachineFrameInfo::CreateSpillStackObject(uint64_t Size, Align Alignment) { in CreateSpillStackObject() 74 int MachineFrameInfo::CreateVariableSizedObject(Align Alignment, in CreateVariableSizedObject() 92 Align Alignment = in CreateFixedObject() 93 commonAlignment(ForcedRealign ? Align(1) : StackAlignment, SPOffset); in CreateFixedObject() 105 Align Alignment = in CreateFixedSpillStackObject() 106 commonAlignment(ForcedRealign ? Align(1) : StackAlignment, SPOffset); in CreateFixedSpillStackObject() [all …]
|
H A D | SafeStackLayout.h | 26 Align MaxAlignment; 44 Align Alignment; 51 DenseMap<const Value *, Align> ObjectAlignments; 56 StackLayout(Align StackAlignment) : MaxAlignment(StackAlignment) {} in StackLayout() 60 void addObject(const Value *V, unsigned Size, Align Alignment, 70 Align getObjectAlignment(const Value *V) { return ObjectAlignments[V]; } in getObjectAlignment() 76 Align getFrameAlignment() { return MaxAlignment; } in getFrameAlignment()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | EPCGenericRTDyldMemoryManager.h | 63 void reserveAllocationSpace(uintptr_t CodeSize, Align CodeAlign, 64 uintptr_t RODataSize, Align RODataAlign, 65 uintptr_t RWDataSize, Align RWDataAlign) override; 81 SectionAlloc(uint64_t Size, unsigned Align) in SectionAlloc() 82 : Size(Size), Align(Align), in SectionAlloc() 83 Contents(std::make_unique<uint8_t[]>(Size + Align - 1)) {} in SectionAlloc() 86 unsigned Align; member
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.h | 182 Align Alignment, unsigned AddressSpace, 186 Align Alignment, 228 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, 232 ArrayRef<unsigned> Indices, Align Alignment, unsigned AddressSpace, 263 bool isLegalMaskedLoad(Type *DataType, Align Alignment); 264 bool isLegalMaskedStore(Type *DataType, Align Alignment); 265 bool isLegalNTLoad(Type *DataType, Align Alignment); 266 bool isLegalNTStore(Type *DataType, Align Alignment); 268 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment); 269 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.h | 95 Align Alignment) const; 125 Align Alignment, unsigned AddressSpace, 157 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, 162 Align Alignment, 168 Align Alignment, 220 bool isLegalMaskedLoadStore(Type *DataType, Align Alignment) { in isLegalMaskedLoadStore() 238 bool isLegalMaskedLoad(Type *DataType, Align Alignment) { in isLegalMaskedLoad() 241 bool isLegalMaskedStore(Type *DataType, Align Alignment) { in isLegalMaskedStore() 245 bool isLegalMaskedGatherScatter(Type *DataType, Align Alignment) { in isLegalMaskedGatherScatter() 262 bool isLegalMaskedGather(Type *DataType, Align Alignment) { in isLegalMaskedGather() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | MachOUniversalWriter.h | 46 std::string ArchName, uint32_t Align); 51 Slice(const MachOObjectFile &O, uint32_t Align); 54 /// \param ArchName , \param Align instead of inferring them from the archive 57 std::string ArchName, uint32_t Align); 62 static Expected<Slice> create(const IRObjectFile &IRO, uint32_t Align); 64 void setP2Alignment(uint32_t Align) { P2Alignment = Align; } in setP2Alignment() argument
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCWasmStreamer.h | 53 Align ByteAlignment) override; 58 Align ByteAlignment) override; 61 uint64_t Size = 0, Align ByteAlignment = Align(1), 64 Align ByteAlignment = Align(1)) override;
|
H A D | MCELFStreamer.h | 62 Align ByteAlignment) override; 69 Align ByteAlignment) override; 72 uint64_t Size = 0, Align ByteAlignment = Align(1), 75 Align ByteAlignment = Align(1)) override; 81 void emitValueToAlignment(Align, int64_t, unsigned, unsigned) override; 90 void emitBundleAlignMode(Align Alignment) override;
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | LowerMemIntrinsics.h | 31 struct Align; 37 Align SrcAlign, Align DestAlign, bool SrcIsVolatile, bool DstIsVolatile, 45 ConstantInt *CopyLen, Align SrcAlign, Align DestAlign, bool SrcIsVolatile,
|