/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/ |
H A D | scudo_errors.cpp | 30 void NORETURN reportAllocationAlignmentTooBig(uptr Alignment, argument 33 "allocation of %zd\n", Alignment, MaxAlignment); 36 void NORETURN reportAllocationAlignmentNotPowerOfTwo(uptr Alignment) { argument 38 "of two\n", Alignment); 41 void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment) { argument 45 Alignment, sizeof(void *)); 48 void NORETURN reportInvalidAlignedAllocAlignment(uptr Size, uptr Alignment) { argument 52 "of alignment\n", Alignment, Size); 55 "requested size 0x%zx must be a multiple of alignment\n", Alignment,
|
H A D | scudo_errors.h | 22 void NORETURN reportAllocationAlignmentTooBig(uptr Alignment, 24 void NORETURN reportAllocationAlignmentNotPowerOfTwo(uptr Alignment); 25 void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment); 26 void NORETURN reportInvalidAlignedAllocAlignment(uptr Size, uptr Alignment);
|
H A D | scudo_allocator_secondary.h | 74 void *Allocate(AllocatorStats *Stats, uptr Size, uptr Alignment) { argument 79 if (UNLIKELY(Alignment > MinAlignment)) 80 ReservedSize += Alignment; 104 if (UNLIKELY(Alignment > MinAlignment)) { 105 if (!IsAligned(UserBeg, Alignment)) { 106 UserBeg = RoundUpTo(UserBeg, Alignment);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | wrappers_c_checks.h | 33 inline bool checkAlignedAllocAlignmentAndSize(uptr Alignment, uptr Size) { argument 34 return Alignment == 0 || !isPowerOfTwo(Alignment) || 35 !isAligned(Size, Alignment); 40 inline bool checkPosixMemalignAlignment(uptr Alignment) { argument 41 return Alignment == 0 || !isPowerOfTwo(Alignment) || 42 !isAligned(Alignment, sizeof(void *));
|
H A D | report.h | 32 void NORETURN reportAlignmentTooBig(uptr Alignment, uptr MaxAlignment); 49 void NORETURN reportAlignmentNotPowerOfTwo(uptr Alignment); 50 void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment); 53 void NORETURN reportInvalidAlignedAllocAlignment(uptr Size, uptr Alignment);
|
H A D | report.cpp | 87 void NORETURN reportAlignmentTooBig(uptr Alignment, uptr MaxAlignment) { argument 91 Alignment, MaxAlignment); 155 void NORETURN reportAlignmentNotPowerOfTwo(uptr Alignment) { argument 159 Alignment); 169 void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment) { argument 174 Alignment, sizeof(void *)); 184 void NORETURN reportInvalidAlignedAllocAlignment(uptr Alignment, uptr Size) { argument 189 Alignment, Size);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineFrameInfo.cpp | 31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) { argument 33 assert(Alignment <= StackAlignment && 34 "For targets without stack realignment, Alignment is out of limit!"); 35 if (MaxAlignment < Alignment) 36 MaxAlignment = Alignment; 40 static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment, argument 42 if (!ShouldClamp || Alignment <= StackAlignment) 43 return Alignment; 44 LLVM_DEBUG(dbgs() << "Warning: requested alignment " << Alignment.value() 50 int MachineFrameInfo::CreateStackObject(uint64_t Size, Align Alignment, argument 65 CreateSpillStackObject(uint64_t Size, Align Alignment) argument 73 CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca) argument 91 Align Alignment = local 104 Align Alignment = local [all...] |
H A D | SafeStackLayout.cpp | 41 void StackLayout::addObject(const Value *V, unsigned Size, unsigned Alignment, argument 43 StackObjects.push_back({V, Size, Alignment, Range}); 44 ObjectAlignments[V] = Alignment; 45 MaxAlignment = std::max(MaxAlignment, Alignment); 49 unsigned Alignment) { 50 return alignTo(Offset + Size, Alignment) - Size; 58 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); 66 << Obj.Alignment << ", range " << Obj.Range << "\n"); 67 assert(Obj.Alignment <= MaxAlignment); 68 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); 48 AdjustStackOffset(unsigned Offset, unsigned Size, unsigned Alignment) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineConstantPool.h | 48 unsigned Alignment) = 0; 76 unsigned Alignment; member in class:llvm::MachineConstantPoolEntry 79 : Alignment(A) { 84 : Alignment(A) { 86 Alignment |= 1U << (sizeof(unsigned) * CHAR_BIT - 1); 93 return (int)Alignment < 0; 97 return Alignment & ~(1 << (sizeof(unsigned) * CHAR_BIT - 1)); 142 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment); 144 unsigned Alignment);
|
H A D | MachineFrameInfo.h | 17 #include "llvm/Support/Alignment.h" 133 Align Alignment; member in struct:llvm::MachineFrameInfo::StackObject 184 StackObject(uint64_t Size, Align Alignment, int64_t SPOffset, argument 187 : SPOffset(SPOffset), Size(Size), Alignment(Alignment), 422 void setLocalFrameMaxAlign(Align Alignment) { argument 423 LocalFrameMaxAlign = Alignment; 467 return Objects[ObjectIdx + NumFixedObjects].Alignment.value(); 474 Objects[ObjectIdx + NumFixedObjects].Alignment = assumeAligned(Align); 569 void ensureMaxAlignment(Align Alignment); 740 CreateStackObject(uint64_t Size, unsigned Alignment, bool isSpillSlot, const AllocaInst *Alloca = nullptr, uint8_t ID = 0) argument 752 CreateSpillStackObject(uint64_t Size, unsigned Alignment) argument 767 CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ASanStackFrameLayout.cpp | 31 return a.Alignment > b.Alignment; 40 // The resulting frame size is a multiple of Alignment. 42 size_t Alignment) { 50 return alignTo(std::max(Res, 2 * Granularity), Alignment); 63 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); 69 Layout.FrameAlignment = std::max(Granularity, Vars[0].Alignment); 71 Vars[0].Alignment); 75 size_t Alignment local 41 VarAndRedzoneSize(size_t Size, size_t Granularity, size_t Alignment) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTContextAllocate.h | 27 size_t Alignment = 8); 29 size_t Alignment = 8);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
H A D | JITLinkMemoryManager.h | 36 SegmentRequest(uint64_t Alignment, size_t ContentSize, argument 38 : Alignment(Alignment), ContentSize(ContentSize), 40 assert(isPowerOf2_32(Alignment) && "Alignment must be power of 2"); 42 uint64_t getAlignment() const { return Alignment; } 46 uint64_t Alignment = 0; member in class:llvm::jitlink::JITLinkMemoryManager::SegmentRequest
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsFrameLowering.h | 27 explicit MipsFrameLowering(const MipsSubtarget &sti, Align Alignment) argument 28 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | SectionMemoryManager.cpp | 22 unsigned Alignment, 28 Size, Alignment); 30 Alignment); 34 unsigned Alignment, 38 Alignment); 43 unsigned Alignment) { 44 if (!Alignment) 45 Alignment = 16; 47 assert(!(Alignment & (Alignment 21 allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName, bool IsReadOnly) argument 33 allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName) argument 41 allocateSection( SectionMemoryManager::AllocationPurpose Purpose, uintptr_t Size, unsigned Alignment) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBasicBlockInfo.h | 31 /// @param Alignment alignment 33 inline unsigned UnknownPadding(Align Alignment, unsigned KnownBits) { argument 34 if (KnownBits < Log2(Alignment)) 35 return Alignment.value() - (1ull << KnownBits); 90 unsigned postOffset(Align Alignment = Align::None()) const { 92 const Align PA = std::max(PostAlign, Alignment);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.h | 136 int getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment, 138 int getMaskedMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, 141 bool VariableMask, unsigned Alignment); 162 unsigned Alignment, unsigned AddressSpace, 167 unsigned Alignment, unsigned AddressSpace, 172 unsigned Alignment, unsigned AddressSpace, 188 bool isLegalMaskedLoad(Type *DataType, MaybeAlign Alignment); 189 bool isLegalMaskedStore(Type *DataType, MaybeAlign Alignment); 190 bool isLegalNTLoad(Type *DataType, Align Alignment); 191 bool isLegalNTStore(Type *DataType, Align Alignment); [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetTransformInfo.cpp | 155 MaybeAlign Alignment, 160 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, I); 173 if (!Alignment || *Alignment > RegAlign) 174 Alignment = RegAlign; 175 assert(Alignment); 176 unsigned AlignWidth = 8 * Alignment->value(); 187 const Align BoundAlignment = std::min(Alignment.valueOrOne(), Align(8)); 190 if (Alignment == Align(4) || Alignment 154 getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment, unsigned AddressSpace, const Instruction *I) argument 201 getMaskedMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace) argument 211 getGatherScatterOpCost(unsigned Opcode, Type *DataTy, Value *Ptr, bool VariableMask, unsigned Alignment) argument 217 getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, unsigned Alignment, unsigned AddressSpace, bool UseMaskForCond, bool UseMaskForGaps) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Loads.cpp | 39 static bool isAligned(const Value *Base, const APInt &Offset, Align Alignment, argument 43 const APInt APAlign(Offset.getBitWidth(), Alignment.value()); 53 const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, 65 return isDereferenceableAndAlignedPointer(BC->getOperand(0), Alignment, 79 return isAligned(V, Offset, Alignment, DL); 88 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) 101 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, 108 RelocateInst->getDerivedPtr(), Alignment, Size, DL, CtxI, DT, Visited); 111 return isDereferenceableAndAlignedPointer(ASC->getOperand(0), Alignment, 116 return isDereferenceableAndAlignedPointer(RP, Alignment, Siz 52 isDereferenceableAndAlignedPointer( const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, const Instruction *CtxI, const DominatorTree *DT, SmallPtrSetImpl<const Value *> &Visited) argument 123 isDereferenceableAndAlignedPointer(const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, const Instruction *CtxI, const DominatorTree *DT) argument 152 const Align Alignment = DL.getValueOrABITypeAlignment(MA, Ty); local 205 const Align Alignment = DL.getValueOrABITypeAlignment( local 267 const Align Alignment = local 341 isSafeToLoadUnconditionally(Value *V, Type *Ty, MaybeAlign Alignment, const DataLayout &DL, Instruction *ScanFrom, const DominatorTree *DT) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/ |
H A D | Atoms.h | 31 const ArrayRef<uint8_t> content, Alignment align) 39 Alignment align) 51 Alignment alignment() const override { return _align; } 79 const DefinedAtom::Alignment _align; 93 StringRef sectionName, Alignment align) 114 uint64_t size, DefinedAtom::Alignment align) 126 Alignment alignment() const override { return _align; } 138 const DefinedAtom::Alignment _align;
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | StringTableBuilder.h | 31 unsigned Alignment; member in class:llvm::StringTableBuilder 38 StringTableBuilder(Kind K, unsigned Alignment = 1);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | Loads.h | 40 MaybeAlign Alignment, 49 bool isDereferenceableAndAlignedPointer(const Value *V, Align Alignment, 62 bool isSafeToLoadUnconditionally(Value *V, MaybeAlign Alignment, APInt &Size, 86 bool isSafeToLoadUnconditionally(Value *V, Type *Ty, MaybeAlign Alignment,
|
H A D | VectorUtils.h | 66 Align Alignment = Align(); // Optional aligment in bytes, defaulted to 1. member in struct:llvm::VFParameter 70 return std::tie(ParamPos, ParamKind, LinearStepOrPos, Alignment) == 72 Other.Alignment); 419 InterleaveGroup(uint32_t Factor, bool Reverse, Align Alignment) argument 420 : Factor(Factor), Reverse(Reverse), Alignment(Alignment), 423 InterleaveGroup(InstTy *Instr, int32_t Stride, Align Alignment) argument 424 : Alignment(Alignment), InsertPos(Instr) { 434 uint32_t getAlignment() const { return Alignment 533 Align Alignment; member in class:llvm::InterleaveGroup 646 StrideDescriptor(int64_t Stride, const SCEV *Scev, uint64_t Size, Align Alignment) argument 660 Align Alignment; member in struct:llvm::InterleavedAccessInfo::StrideDescriptor 671 createInterleaveGroup(Instruction *Instr, int Stride, Align Alignment) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXTargetTransformInfo.h | 54 unsigned Alignment, 56 return Alignment >= ChainSizeInBytes; 59 unsigned Alignment, 61 return isLegalToVectorizeLoadChain(ChainSizeInBytes, Alignment, AddrSpace); 53 isLegalToVectorizeLoadChain(unsigned ChainSizeInBytes, unsigned Alignment, unsigned AddrSpace) const argument 58 isLegalToVectorizeStoreChain(unsigned ChainSizeInBytes, unsigned Alignment, unsigned AddrSpace) const argument
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/ |
H A D | StringTableBuilder.cpp | 49 StringTableBuilder::StringTableBuilder(Kind K, unsigned Alignment) argument 50 : K(K), Alignment(Alignment) { 148 if (!(Pos & (Alignment - 1))) { 154 Size = alignTo(Size, Alignment); 194 size_t Start = alignTo(Size, Alignment);
|