Home
last modified time | relevance | path

Searched refs:Alignment (Results 1 – 25 of 519) sorted by relevance

12345678910>>...21

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFrameInfo.cpp31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) { in ensureMaxAlignment() argument
33 assert(Alignment <= StackAlignment && in ensureMaxAlignment()
35 if (MaxAlignment < Alignment) in ensureMaxAlignment()
36 MaxAlignment = Alignment; in ensureMaxAlignment()
40 static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment, in clampStackAlignment() argument
42 if (!ShouldClamp || Alignment <= StackAlignment) in clampStackAlignment()
43 return Alignment; in clampStackAlignment()
44 LLVM_DEBUG(dbgs() << "Warning: requested alignment " << DebugStr(Alignment) in clampStackAlignment()
51 int MachineFrameInfo::CreateStackObject(uint64_t Size, Align Alignment, in CreateStackObject() argument
56 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateStackObject()
[all …]
H A DSafeStackLayout.cpp39 void StackLayout::addObject(const Value *V, unsigned Size, Align Alignment, in addObject() argument
41 StackObjects.push_back({V, Size, Alignment, Range}); in addObject()
42 ObjectAlignments[V] = Alignment; in addObject()
43 MaxAlignment = std::max(MaxAlignment, Alignment); in addObject()
47 Align Alignment) { in AdjustStackOffset() argument
48 return alignTo(Offset + Size, Alignment) - Size; in AdjustStackOffset()
56 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject()
64 << Obj.Alignment.value() << ", range " << Obj.Range in layoutObject()
66 assert(Obj.Alignment <= MaxAlignment); in layoutObject()
67 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); in layoutObject()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DOptimizedStructLayout.cpp28 assert(isAligned(Field.Alignment, Field.Offset) && in checkValidLayout()
33 assert(Field.Alignment <= MaxAlign && in checkValidLayout()
35 ComputedMaxAlign = std::max(Field.Alignment, MaxAlign); in checkValidLayout()
72 MaxAlign = std::max(MaxAlign, FirstFlexible->Alignment); in performOptimizedStructLayout()
97 MaxAlign = std::max(MaxAlign, I->Alignment); in performOptimizedStructLayout()
109 if (lhs->Alignment != rhs->Alignment) in performOptimizedStructLayout()
110 return (lhs->Alignment < rhs->Alignment ? 1 : -1); in performOptimizedStructLayout()
152 auto Offset = alignTo(LastEnd, I->Alignment); in performOptimizedStructLayout()
248 Align Alignment; in performOptimizedStructLayout() member
257 auto Alignment = I->Alignment; in performOptimizedStructLayout() local
[all …]
H A DMemoryBuffer.cpp127 std::optional<Align> Alignment);
166 std::optional<Align> Alignment) { in getFileOrSTDIN() argument
173 /*IsVolatile=*/false, Alignment); in getFileOrSTDIN()
179 std::optional<Align> Alignment) { in getFileSlice() argument
182 Alignment); in getFileSlice()
263 std::optional<Align> Alignment) { in getFile() argument
266 Alignment); in getFile()
273 bool IsVolatile, std::optional<Align> Alignment);
279 std::optional<Align> Alignment) { in getFileAux() argument
286 RequiresNullTerminator, IsVolatile, Alignment); in getFileAux()
[all …]
H A DMemAlloc.cpp15 llvm::allocate_buffer(size_t Size, size_t Alignment) { in allocate_buffer() argument
19 std::align_val_t(Alignment) in allocate_buffer()
24 void llvm::deallocate_buffer(void *Ptr, size_t Size, size_t Alignment) { in deallocate_buffer() argument
32 std::align_val_t(Alignment) in deallocate_buffer()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DASanStackFrameLayout.cpp30 return a.Alignment > b.Alignment; in CompareVars()
41 uint64_t Alignment) { in VarAndRedzoneSize() argument
49 return alignTo(std::max(Res, 2 * Granularity), Alignment); in VarAndRedzoneSize()
62 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout()
68 Layout.FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout()
70 std::max(std::max(MinHeaderSize, Granularity), Vars[0].Alignment); in ComputeASanStackFrameLayout()
74 uint64_t Alignment = std::max(Granularity, Vars[i].Alignment); in ComputeASanStackFrameLayout() local
75 (void)Alignment; // Used only in asserts. in ComputeASanStackFrameLayout()
77 assert((Alignment & (Alignment - 1)) == 0); in ComputeASanStackFrameLayout()
78 assert(Layout.FrameAlignment >= Alignment); in ComputeASanStackFrameLayout()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp172 size_t Alignment, in getRequiredBackingSize() argument
174 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in getRequiredBackingSize()
175 assert(Alignment != 0 && "Alignment should be non-zero"); in getRequiredBackingSize()
178 if (Alignment <= PageSize) in getRequiredBackingSize()
181 return Size + Alignment - PageSize; in getRequiredBackingSize()
184 uintptr_t GuardedPoolAllocator::alignUp(uintptr_t Ptr, size_t Alignment) { in alignUp() argument
185 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignUp()
186 assert(Alignment != 0 && "Alignment should be non-zero"); in alignUp()
187 if ((Ptr & (Alignment - 1)) == 0) in alignUp()
190 Ptr += Alignment - (Ptr & (Alignment - 1)); in alignUp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp22 unsigned Alignment, in allocateDataSection() argument
28 Size, Alignment); in allocateDataSection()
30 Alignment); in allocateDataSection()
34 unsigned Alignment, in allocateCodeSection() argument
38 Alignment); in allocateCodeSection()
43 unsigned Alignment) { in allocateSection() argument
44 if (!Alignment) in allocateSection()
45 Alignment = 16; in allocateSection()
47 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection()
49 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1) / Alignment + 1); in allocateSection()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h95 Align Alignment) const;
125 Align Alignment, unsigned AddressSpace,
157 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind,
162 Align Alignment,
168 Align Alignment,
191 getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment,
220 bool isLegalMaskedLoadStore(Type *DataType, Align Alignment) { in isLegalMaskedLoadStore() argument
231 if (!ST->enableUnalignedVectorMem() && Alignment < ElemType.getStoreSize()) in isLegalMaskedLoadStore()
238 bool isLegalMaskedLoad(Type *DataType, Align Alignment) { in isLegalMaskedLoad() argument
239 return isLegalMaskedLoadStore(DataType, Alignment); in isLegalMaskedLoad()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h177 getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment,
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);
[all …]
H A DX86SelectionDAGInfo.cpp49 SDValue Size, Align Alignment, bool isVolatile, bool AlwaysInline, in EmitTargetCodeForMemset() argument
68 if (Alignment < Align(4) || !ConstantSize || in EmitTargetCodeForMemset()
82 if (Alignment >= Align(4)) { in EmitTargetCodeForMemset()
88 if (Subtarget.is64Bit() && Alignment >= Align(8)) { // QWORD aligned in EmitTargetCodeForMemset()
93 } else if (Alignment == Align(2)) { in EmitTargetCodeForMemset()
148 Val, DAG.getConstant(BytesLeft, dl, SizeVT), Alignment, in EmitTargetCodeForMemset()
187 Align Alignment) { in getOptimalRepmovsType() argument
188 uint64_t Align = Alignment.value(); in getOptimalRepmovsType()
210 Align Alignment, bool isVolatile, bool AlwaysInline, in emitConstantSizeRepmov() argument
225 if (!AlwaysInline && (Alignment.value() & 3) != 0) in emitConstantSizeRepmov()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoads.cpp29 static bool isAligned(const Value *Base, const APInt &Offset, Align Alignment, in isAligned() argument
32 return BA >= Alignment && Offset.isAligned(BA); in isAligned()
38 const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() argument
61 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) in isDereferenceableAndAlignedPointer()
74 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer()
82 BC->getOperand(0), Alignment, Size, DL, CtxI, AC, DT, TLI, in isDereferenceableAndAlignedPointer()
88 return isDereferenceableAndAlignedPointer(Sel->getTrueValue(), Alignment, in isDereferenceableAndAlignedPointer()
91 isDereferenceableAndAlignedPointer(Sel->getFalseValue(), Alignment, in isDereferenceableAndAlignedPointer()
108 return isAligned(V, Offset, Alignment, DL); in isDereferenceableAndAlignedPointer()
117 return isDereferenceableAndAlignedPointer(RP, Alignment, Size, DL, CtxI, in isDereferenceableAndAlignedPointer()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c_checks.h33 inline bool checkAlignedAllocAlignmentAndSize(uptr Alignment, uptr Size) { in checkAlignedAllocAlignmentAndSize() argument
34 return !isPowerOfTwo(Alignment) || !isAligned(Size, Alignment); in checkAlignedAllocAlignmentAndSize()
39 inline bool checkPosixMemalignAlignment(uptr Alignment) { in checkPosixMemalignAlignment() argument
40 return !isPowerOfTwo(Alignment) || !isAligned(Alignment, sizeof(void *)); in checkPosixMemalignAlignment()
H A Dreport.cpp82 void NORETURN reportAlignmentTooBig(uptr Alignment, uptr MaxAlignment) {
86 Alignment, MaxAlignment); in reportHeaderRace()
155 void NORETURN reportAlignmentNotPowerOfTwo(uptr Alignment) { in reportDeallocTypeMismatch()
159 Alignment); in reportDeallocTypeMismatch()
169 void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment) { in reportDeleteSizeMismatch()
174 Alignment, sizeof(void *)); in reportAlignmentNotPowerOfTwo()
184 void NORETURN reportInvalidAlignedAllocAlignment(uptr Alignment, uptr Size) { in reportCallocOverflow()
189 Alignment, Size); in reportInvalidPosixMemalignAlignment()
99 reportAlignmentTooBig(uptr Alignment,uptr MaxAlignment) reportAlignmentTooBig() argument
172 reportAlignmentNotPowerOfTwo(uptr Alignment) reportAlignmentNotPowerOfTwo() argument
186 reportInvalidPosixMemalignAlignment(uptr Alignment) reportInvalidPosixMemalignAlignment() argument
201 reportInvalidAlignedAllocAlignment(uptr Alignment,uptr Size) reportInvalidAlignedAllocAlignment() argument
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DAddress.h45 CharUnits Alignment; variable
51 RawAddress(llvm::Value *Pointer, llvm::Type *ElementType, CharUnits Alignment,
54 ElementType(ElementType), Alignment(Alignment) { in PointerAndKnownNonNull()
95 return Alignment; in getAlignment()
139 CharUnits Alignment; variable
157 Alignment(alignment) { in Pointer()
163 Address(llvm::Value *BasePtr, llvm::Type *ElementType, CharUnits Alignment,
167 Alignment(Alignment), PtrAuthInfo(PtrAuthInfo), Offset(Offset) {} in Pointer()
173 Alignment(RawAddr.isValid() ? RawAddr.getAlignment() in Address()
189 CharUnits getAlignment() const { return Alignment; } in getAlignment()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h163 Align Alignment, unsigned AddressSpace,
168 Align Alignment,
222 getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment,
258 bool isLegalMaskedLoadStore(Type *DataType, Align Alignment) { in isLegalMaskedLoadStore() argument
270 bool isLegalMaskedLoad(Type *DataType, Align Alignment) { in isLegalMaskedLoad() argument
271 return isLegalMaskedLoadStore(DataType, Alignment); in isLegalMaskedLoad()
274 bool isLegalMaskedStore(Type *DataType, Align Alignment) { in isLegalMaskedStore() argument
275 return isLegalMaskedLoadStore(DataType, Alignment); in isLegalMaskedStore()
291 bool isLegalMaskedGather(Type *DataType, Align Alignment) const { in isLegalMaskedGather() argument
295 bool isLegalMaskedScatter(Type *DataType, Align Alignment) const { in isLegalMaskedScatter() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp165 MaybeAlign Alignment, in getMemoryOpCost() argument
176 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
192 if (!Alignment || *Alignment > RegAlign) in getMemoryOpCost()
193 Alignment = RegAlign; in getMemoryOpCost()
194 assert(Alignment); in getMemoryOpCost()
195 unsigned AlignWidth = 8 * Alignment->value(); in getMemoryOpCost()
206 const Align BoundAlignment = std::min(Alignment.valueOrOne(), Align(8)); in getMemoryOpCost()
209 if (Alignment == Align(4) || Alignment == Align(8)) in getMemoryOpCost()
217 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind, in getMemoryOpCost()
223 Align Alignment, unsigned AddressSpace, in getMaskedMemoryOpCost() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocatorBase.h44 void *Allocate(size_t Size, size_t Alignment) { in Allocate() argument
53 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate()
58 void Deallocate(const void *Ptr, size_t Size, size_t Alignment) { in Deallocate() argument
68 return static_cast<DerivedT *>(this)->Deallocate(Ptr, Size, Alignment); in Deallocate()
91 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, size_t Alignment) { in Allocate() argument
92 return allocate_buffer(Size, Alignment); in Allocate()
98 void Deallocate(const void *Ptr, size_t Size, size_t Alignment) { in Deallocate() argument
99 deallocate_buffer(const_cast<void *>(Ptr), Size, Alignment); in Deallocate()
/freebsd/contrib/file/magic/Magdir/
H A Dbioinformatics39 # BAM (Binary Sequence Alignment/Map format)
43 0 string BAM\1 SAMtools BAM (Binary Sequence Alignment/Map)
59 # CRAM (Binary Sequence Alignment/Map format)
144 # SAM (Sequence Alignment/Map format)
150 >4 search VN: Sequence Alignment/Map (SAM), with header
155 # SAM Alignment QNAME
157 # SAM Alignment FLAG
159 # SAM Alignment RNAME
161 # SAM Alignment POS
163 # SAM Alignment MAPQ
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineConstantPool.h49 Align Alignment) = 0;
76 Align Alignment; variable
81 : Alignment(A), IsMachineConstantPoolEntry(false) { in MachineConstantPoolEntry()
86 : Alignment(A), IsMachineConstantPoolEntry(true) { in MachineConstantPoolEntry()
95 Align getAlign() const { return Alignment; } in getAlign()
139 unsigned getConstantPoolIndex(const Constant *C, Align Alignment);
140 unsigned getConstantPoolIndex(MachineConstantPoolValue *V, Align Alignment);
H A DMachineFrameInfo.h133 Align Alignment; member
184 StackObject(uint64_t Size, Align Alignment, int64_t SPOffset,
187 : SPOffset(SPOffset), Size(Size), Alignment(Alignment), in SPOffset()
444 void setLocalFrameMaxAlign(Align Alignment) { in setLocalFrameMaxAlign() argument
445 LocalFrameMaxAlign = Alignment; in setLocalFrameMaxAlign()
489 return Objects[ObjectIdx + NumFixedObjects].Alignment; in getObjectAlign()
499 void setObjectAlignment(int ObjectIdx, Align Alignment) { in setObjectAlignment() argument
502 Objects[ObjectIdx + NumFixedObjects].Alignment = Alignment; in setObjectAlignment()
507 ensureMaxAlignment(Alignment); in setObjectAlignment()
606 void ensureMaxAlignment(Align Alignment);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h779 bool isLegalMaskedStore(Type *DataType, Align Alignment) const;
781 bool isLegalMaskedLoad(Type *DataType, Align Alignment) const;
784 bool isLegalNTStore(Type *DataType, Align Alignment) const;
786 bool isLegalNTLoad(Type *DataType, Align Alignment) const;
793 bool isLegalMaskedScatter(Type *DataType, Align Alignment) const;
795 bool isLegalMaskedGather(Type *DataType, Align Alignment) const;
798 bool forceScalarizeMaskedGather(VectorType *Type, Align Alignment) const;
801 bool forceScalarizeMaskedScatter(VectorType *Type, Align Alignment) const;
804 bool isLegalMaskedCompressStore(Type *DataType, Align Alignment) const;
806 bool isLegalMaskedExpandLoad(Type *DataType, Align Alignment) const;
[all …]
H A DVectorUtils.h472 InterleaveGroup(uint32_t Factor, bool Reverse, Align Alignment) in InterleaveGroup() argument
473 : Factor(Factor), Reverse(Reverse), Alignment(Alignment), in InterleaveGroup()
476 InterleaveGroup(InstTy *Instr, int32_t Stride, Align Alignment) in InterleaveGroup() argument
477 : Alignment(Alignment), InsertPos(Instr) { in InterleaveGroup()
487 Align getAlign() const { return Alignment; } in getAlign()
532 Alignment = std::min(Alignment, NewAlign); in insertMember()
585 Align Alignment; variable
708 Align Alignment) in StrideDescriptor()
709 : Stride(Stride), Scev(Scev), Size(Size), Alignment(Alignment) {} in StrideDescriptor()
721 Align Alignment; member
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYConstantPoolValue.cpp58 Align Alignment) { in getExistingMachineCPValue() argument
115 Align Alignment) { in getExistingMachineCPValue() argument
116 return getExistingMachineCPValueImpl<CSKYConstantPoolConstant>(CP, Alignment); in getExistingMachineCPValue()
149 Align Alignment) { in getExistingMachineCPValue() argument
151 return getExistingMachineCPValueImpl<CSKYConstantPoolSymbol>(CP, Alignment); in getExistingMachineCPValue()
183 Align Alignment) { in getExistingMachineCPValue() argument
184 return getExistingMachineCPValueImpl<CSKYConstantPoolMBB>(CP, Alignment); in getExistingMachineCPValue()
215 Align Alignment) { in getExistingMachineCPValue() argument
216 return getExistingMachineCPValueImpl<CSKYConstantPoolJT>(CP, Alignment); in getExistingMachineCPValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaConstantPoolValue.cpp49 Align Alignment) { in getExistingMachineCPValue() argument
90 MachineConstantPool *CP, Align Alignment) { in getExistingMachineCPValue() argument
92 Alignment); in getExistingMachineCPValue()
128 Align Alignment) { in getExistingMachineCPValue() argument
129 return getExistingMachineCPValueImpl<XtensaConstantPoolSymbol>(CP, Alignment); in getExistingMachineCPValue()
160 Align Alignment) { in getExistingMachineCPValue() argument
161 return getExistingMachineCPValueImpl<XtensaConstantPoolMBB>(CP, Alignment); in getExistingMachineCPValue()
190 MachineConstantPool *CP, Align Alignment) { in getExistingMachineCPValue() argument
192 Alignment); in getExistingMachineCPValue()

12345678910>>...21