/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineFrameInfo.cpp | 31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) { in ensureMaxAlignment() argument 33 assert(Alignment <= StackAlignment && in ensureMaxAlignment() 34 "For targets without stack realignment, Alignment is out of limit!"); 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 66 CreateSpillStackObject(uint64_t Size,Align Alignment) CreateSpillStackObject() argument 74 CreateVariableSizedObject(Align Alignment,const AllocaInst * Alloca) CreateVariableSizedObject() argument 92 Align Alignment = CreateFixedObject() local 105 Align Alignment = CreateFixedSpillStackObject() local 159 Align Alignment = getObjectAlign(i); estimateStackSize() local [all...] |
H A D | SafeStackLayout.cpp | 39 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 …]
|
/llvm-project/clang/test/Analysis/inlining/ |
H A D | placement-new-fp-suppression.cpp | 22 inline uintptr_t alignAddr(const void *Addr, size_t Alignment) { in alignAddr() argument 23 return (((uintptr_t)Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1)); in alignAddr() 26 inline size_t alignmentAdjustment(const void *Ptr, size_t Alignment) { in alignmentAdjustment() argument 27 return alignAddr(Ptr, Alignment) - (uintptr_t)Ptr; in alignmentAdjustment() 51 void *Allocate(size_t Size, size_t Alignment) { in Allocate() argument 53 size_t Adjustment = alignmentAdjustment(CurPtr, Alignment); in Allocate() 56 size_t PaddedSize = SizeToAllocate + Alignment - 1; in Allocate() 58 Alignment); in Allocate() 74 void *operator new(size_t Bytes, const ASTContext &C, size_t Alignment = 8); 75 void *operator new[](size_t Bytes, const ASTContext &C, size_t Alignment = 8); [all …]
|
/llvm-project/llvm/lib/Support/ |
H A D | OptimizedStructLayout.cpp | 28 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 D | MemoryBuffer.cpp | 17 #include "llvm/Support/Alignment.h" 126 std::optional<Align> Alignment); 165 std::optional<Align> Alignment) { in getFileOrSTDIN() 172 /*IsVolatile=*/false, Alignment); in getFileOrSTDIN() 178 std::optional<Align> Alignment) { in getFileSlice() 181 Alignment); in getFileSlice() 262 std::optional<Align> Alignment) { in getFile() 265 Alignment); in getFile() 272 bool IsVolatile, std::optional<Align> Alignment); 278 std::optional<Align> Alignment) { in getFileAux() 166 getFileOrSTDIN(const Twine & Filename,bool IsText,bool RequiresNullTerminator,std::optional<Align> Alignment) getFileOrSTDIN() argument 179 getFileSlice(const Twine & FilePath,uint64_t MapSize,uint64_t Offset,bool IsVolatile,std::optional<Align> Alignment) getFileSlice() argument 263 getFile(const Twine & Filename,bool IsText,bool RequiresNullTerminator,bool IsVolatile,std::optional<Align> Alignment) getFile() argument 279 getFileAux(const Twine & Filename,uint64_t MapSize,uint64_t Offset,bool IsText,bool RequiresNullTerminator,bool IsVolatile,std::optional<Align> Alignment) getFileAux() argument 293 getFile(const Twine & Filename,bool IsVolatile,std::optional<Align> Alignment) getFile() argument 302 getFileSlice(const Twine & Filename,uint64_t MapSize,uint64_t Offset,bool IsVolatile,std::optional<Align> Alignment) getFileSlice() argument 311 getNewUninitMemBuffer(size_t Size,const Twine & BufferName,std::optional<Align> Alignment) getNewUninitMemBuffer() argument 470 getOpenFileImpl(sys::fs::file_t FD,const Twine & Filename,uint64_t FileSize,uint64_t MapSize,int64_t Offset,bool RequiresNullTerminator,bool IsVolatile,std::optional<Align> Alignment) getOpenFileImpl() argument 541 getOpenFile(sys::fs::file_t FD,const Twine & Filename,uint64_t FileSize,bool RequiresNullTerminator,bool IsVolatile,std::optional<Align> Alignment) getOpenFile() argument 549 getOpenFileSlice(sys::fs::file_t FD,const Twine & Filename,uint64_t MapSize,int64_t Offset,bool IsVolatile,std::optional<Align> Alignment) getOpenFileSlice() argument [all...] |
/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ASanStackFrameLayout.cpp | 30 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 …]
|
/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 172 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 …]
|
/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | SectionMemoryManager.cpp | 21 unsigned Alignment, in allocateDataSection() 27 Size, Alignment); in allocateDataSection() 29 Alignment); in allocateDataSection() 33 unsigned Alignment, in allocateCodeSection() 37 Alignment); in allocateCodeSection() 42 unsigned Alignment) { in allocateSection() 43 if (!Alignment) in allocateSection() argument 44 Alignment = 16; in allocateSection() 46 assert(!(Alignment & (Alignment in allocateSection() 22 allocateDataSection(uintptr_t Size,unsigned Alignment,unsigned SectionID,StringRef SectionName,bool IsReadOnly) allocateDataSection() argument 34 allocateCodeSection(uintptr_t Size,unsigned Alignment,unsigned SectionID,StringRef SectionName) allocateCodeSection() argument [all...] |
/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.h | 89 /// \param Alignment the alignment for memory access operation checked for 92 Align Alignment) const; 122 Align Alignment, unsigned AddressSpace, in preferEpilogueVectorization() 160 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, 165 Align Alignment, 171 Align Alignment, 196 getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment, 226 bool isLegalMaskedLoadStore(Type *DataType, Align Alignment) { in isLegalMaskedLoadStore() 237 if (!ST->enableUnalignedVectorMem() && Alignment < ElemType.getStoreSize()) 243 bool isLegalMaskedLoad(Type *DataType, Align Alignment) { in isLegalMaskedStore() 220 isLegalMaskedLoadStore(Type * DataType,Align Alignment) isLegalMaskedLoadStore() argument 238 isLegalMaskedLoad(Type * DataType,Align Alignment) isLegalMaskedLoad() argument 241 isLegalMaskedStore(Type * DataType,Align Alignment) isLegalMaskedStore() argument 245 isLegalMaskedGatherScatter(Type * DataType,Align Alignment) isLegalMaskedGatherScatter() argument 262 isLegalMaskedGather(Type * DataType,Align Alignment) isLegalMaskedGather() argument 265 isLegalMaskedScatter(Type * DataType,Align Alignment) isLegalMaskedScatter() argument 269 forceScalarizeMaskedGather(VectorType * VTy,Align Alignment) forceScalarizeMaskedGather() argument 274 forceScalarizeMaskedScatter(VectorType * VTy,Align Alignment) forceScalarizeMaskedScatter() argument 279 isLegalStridedLoadStore(Type * DataType,Align Alignment) isLegalStridedLoadStore() argument [all...] |
/llvm-project/clang/unittests/Format/ |
H A D | FormatTest.cpp | 18409 FormatStyle Alignment = getLLVMStyle(); in TEST_F() 18410 Alignment.AlignConsecutiveMacros.Enabled = true; in TEST_F() local 18411 Alignment.AlignConsecutiveAssignments.Enabled = true; in TEST_F() 18412 Alignment.AlignConsecutiveAssignments.AcrossEmptyLines = true; in TEST_F() 18414 Alignment.MaxEmptyLinesToKeep = 10; in TEST_F() 18422 Alignment); in TEST_F() 18431 Alignment); in TEST_F() 18442 Alignment); in TEST_F() 18451 Alignment); in TEST_F() 18459 Alignment); in TEST_F() 18115 FormatStyle Alignment = getLLVMStyle(); TEST_F() local 18190 FormatStyle Alignment = getLLVMStyle(); TEST_F() local 18254 FormatStyle Alignment = getLLVMStyle(); TEST_F() local 18322 FormatStyle Alignment = getLLVMStyle(); TEST_F() local 18726 FormatStyle Alignment = getLLVMStyle(); TEST_F() local 18853 FormatStyle Alignment = getLLVMStyle(); TEST_F() local 19190 FormatStyle Alignment = getLLVMStyle(); TEST_F() local 19247 FormatStyle Alignment = getLLVMStyle(); TEST_F() local 19866 FormatStyle Alignment = getLLVMStyle(); TEST_F() local [all...] |
/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.h | 179 getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment, 184 Align Alignment, unsigned AddressSpace, 188 Align Alignment, 230 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, 234 ArrayRef<unsigned> Indices, Align Alignment, unsigned AddressSpace, 265 bool isLegalMaskedLoad(Type *DataType, Align Alignment); 266 bool isLegalMaskedStore(Type *DataType, Align Alignment); 267 bool isLegalNTLoad(Type *DataType, Align Alignment); 268 bool isLegalNTStore(Type *DataType, Align Alignment); 270 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment); in forceScalarizeMaskedScatter() 269 forceScalarizeMaskedScatter(VectorType * VTy,Align Alignment) forceScalarizeMaskedScatter() argument [all...] |
/llvm-project/llvm/lib/Analysis/ |
H A D | Loads.cpp | 31 static bool isAligned(const Value *Base, Align Alignment, in isAligned() 33 return Base->getPointerAlignment(DL) >= Alignment; in isAligned() 39 const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() 62 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) in isDereferenceableAndAlignedPointer() 75 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer() 83 BC->getOperand(0), Alignment, Size, DL, CtxI, AC, DT, TLI, in isDereferenceableAndAlignedPointer() 89 return isDereferenceableAndAlignedPointer(Sel->getTrueValue(), Alignment, in isDereferenceableAndAlignedPointer() 92 isDereferenceableAndAlignedPointer(Sel->getFalseValue(), Alignment, in isDereferenceableAndAlignedPointer() 123 return isAligned(V, Alignment, DL); in isDereferenceableAndAlignedPointer() 127 /// Dereferencability and Alignment requirement in isDereferenceableAndAlignedPointer() 29 isAligned(const Value * Base,const APInt & Offset,Align Alignment,const DataLayout & DL) isAligned() argument 38 isDereferenceableAndAlignedPointer(const Value * V,Align Alignment,const APInt & Size,const DataLayout & DL,const Instruction * CtxI,AssumptionCache * AC,const DominatorTree * DT,const TargetLibraryInfo * TLI,SmallPtrSetImpl<const Value * > & Visited,unsigned MaxDepth) isDereferenceableAndAlignedPointer() argument 188 isDereferenceableAndAlignedPointer(const Value * V,Align Alignment,const APInt & Size,const DataLayout & DL,const Instruction * CtxI,AssumptionCache * AC,const DominatorTree * DT,const TargetLibraryInfo * TLI) isDereferenceableAndAlignedPointer() argument 202 isDereferenceableAndAlignedPointer(const Value * V,Type * Ty,Align Alignment,const DataLayout & DL,const Instruction * CtxI,AssumptionCache * AC,const DominatorTree * DT,const TargetLibraryInfo * TLI) isDereferenceableAndAlignedPointer() argument 271 const Align Alignment = LI->getAlign(); isDereferenceableAndAlignedInLoop() local 352 isSafeToLoadUnconditionally(Value * V,Align Alignment,const APInt & Size,const DataLayout & DL,Instruction * ScanFrom,AssumptionCache * AC,const DominatorTree * DT,const TargetLibraryInfo * TLI) isSafeToLoadUnconditionally() argument 429 isSafeToLoadUnconditionally(Value * V,Type * Ty,Align Alignment,const DataLayout & DL,Instruction * ScanFrom,AssumptionCache * AC,const DominatorTree * DT,const TargetLibraryInfo * TLI) isSafeToLoadUnconditionally() argument [all...] |
/llvm-project/clang/lib/CodeGen/ |
H A D | Address.h | 45 CharUnits Alignment; 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; in Pointer() 157 Alignment(alignment) { 160 assert(!alignment.isZero() && "Alignment cannot be zero"); in replaceBasePointer() 163 Address(llvm::Value *BasePtr, llvm::Type *ElementType, CharUnits Alignment, in replaceBasePointer() 167 Alignment(Alignmen in getAlignment() 44 CharUnits Alignment; global() variable 122 CharUnits Alignment; global() variable [all...] |
/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.h | 173 Align Alignment, unsigned AddressSpace, 178 Align Alignment, 243 getMemoryOpCost(unsigned Opcode, Type *Src, MaybeAlign Alignment, in isElementTypeLegalForScalableVector() 279 bool isLegalMaskedLoadStore(Type *DataType, Align Alignment) { in isLegalMaskedGatherScatter() 291 bool isLegalMaskedLoad(Type *DataType, Align Alignment) { in isLegalMaskedGather() argument 292 return isLegalMaskedLoadStore(DataType, Alignment); in isLegalMaskedGather() 295 bool isLegalMaskedStore(Type *DataType, Align Alignment) { in isLegalMaskedScatter() argument 296 return isLegalMaskedLoadStore(DataType, Alignment); in isLegalMaskedScatter() 312 bool isLegalMaskedGather(Type *DataType, Align Alignment) const { in isLegalBroadcastLoad() 316 bool isLegalMaskedScatter(Type *DataType, Align Alignment) cons argument 258 isLegalMaskedLoadStore(Type * DataType,Align Alignment) isLegalMaskedLoadStore() argument 270 isLegalMaskedLoad(Type * DataType,Align Alignment) isLegalMaskedLoad() argument 274 isLegalMaskedStore(Type * DataType,Align Alignment) isLegalMaskedStore() argument 333 isLegalNTStore(Type * DataType,Align Alignment) isLegalNTStore() argument 337 isLegalNTLoad(Type * DataType,Align Alignment) isLegalNTLoad() argument [all...] |
/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetTransformInfo.cpp | 165 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 in getMemoryOpCost() 223 getMaskedMemoryOpCost(unsigned Opcode,Type * Src,Align Alignment,unsigned AddressSpace,TTI::TargetCostKind CostKind) getMaskedMemoryOpCost() argument 240 getGatherScatterOpCost(unsigned Opcode,Type * DataTy,const Value * Ptr,bool VariableMask,Align Alignment,TTI::TargetCostKind CostKind,const Instruction * I) getGatherScatterOpCost() argument 247 getInterleavedMemoryOpCost(unsigned Opcode,Type * VecTy,unsigned Factor,ArrayRef<unsigned> Indices,Align Alignment,unsigned AddressSpace,TTI::TargetCostKind CostKind,bool UseMaskForCond,bool UseMaskForGaps) getInterleavedMemoryOpCost() argument [all...] |
/llvm-project/llvm/include/llvm/Support/ |
H A D | AllocatorBase.h | 44 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()
|
/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | wrappers_c_checks.h | 33 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 D | report.cpp | 82 void NORETURN reportAlignmentTooBig(uptr Alignment, uptr MaxAlignment) { in reportAlignmentTooBig() argument 86 Alignment, MaxAlignment); in reportAlignmentTooBig() 155 void NORETURN reportAlignmentNotPowerOfTwo(uptr Alignment) { in reportAlignmentNotPowerOfTwo() argument 159 Alignment); in reportAlignmentNotPowerOfTwo() 169 void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment) { in reportInvalidPosixMemalignAlignment() argument 174 Alignment, sizeof(void *)); in reportInvalidPosixMemalignAlignment() 184 void NORETURN reportInvalidAlignedAllocAlignment(uptr Alignment, uptr Size) { in reportInvalidAlignedAllocAlignment() argument 189 Alignment, Size); in reportInvalidAlignedAllocAlignment()
|
/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfo.h | 791 bool isLegalMaskedStore(Type *DataType, Align Alignment) const; 793 bool isLegalMaskedLoad(Type *DataType, Align Alignment) const; 796 bool isLegalNTStore(Type *DataType, Align Alignment) const; 798 bool isLegalNTLoad(Type *DataType, Align Alignment) const; 805 bool isLegalMaskedScatter(Type *DataType, Align Alignment) const; 807 bool isLegalMaskedGather(Type *DataType, Align Alignment) const; 810 bool forceScalarizeMaskedGather(VectorType *Type, Align Alignment) const; 813 bool forceScalarizeMaskedScatter(VectorType *Type, Align Alignment) const; 816 bool isLegalMaskedCompressStore(Type *DataType, Align Alignment) const; 818 bool isLegalMaskedExpandLoad(Type *DataType, Align Alignment) cons 2368 isLegalMaskedStore(Type * DataType,Align Alignment) isLegalMaskedStore() argument 2371 isLegalMaskedLoad(Type * DataType,Align Alignment) isLegalMaskedLoad() argument 2374 isLegalNTStore(Type * DataType,Align Alignment) isLegalNTStore() argument 2377 isLegalNTLoad(Type * DataType,Align Alignment) isLegalNTLoad() argument 2384 isLegalMaskedScatter(Type * DataType,Align Alignment) isLegalMaskedScatter() argument 2387 isLegalMaskedGather(Type * DataType,Align Alignment) isLegalMaskedGather() argument 2391 forceScalarizeMaskedGather(VectorType * DataType,Align Alignment) forceScalarizeMaskedGather() argument 2395 forceScalarizeMaskedScatter(VectorType * DataType,Align Alignment) forceScalarizeMaskedScatter() argument 2398 isLegalMaskedCompressStore(Type * DataType,Align Alignment) isLegalMaskedCompressStore() argument 2401 isLegalMaskedExpandLoad(Type * DataType,Align Alignment) isLegalMaskedExpandLoad() argument 2404 isLegalStridedLoadStore(Type * DataType,Align Alignment) isLegalStridedLoadStore() argument 2504 allowsMisalignedMemoryAccesses(LLVMContext & Context,unsigned BitWidth,unsigned AddressSpace,Align Alignment,unsigned * Fast) allowsMisalignedMemoryAccesses() argument 2716 getMemoryOpCost(unsigned Opcode,Type * Src,Align Alignment,unsigned AddressSpace,TTI::TargetCostKind CostKind,OperandValueInfo OpInfo,const Instruction * I) getMemoryOpCost() argument 2724 getVPMemoryOpCost(unsigned Opcode,Type * Src,Align Alignment,unsigned AddressSpace,TTI::TargetCostKind CostKind,const Instruction * I) getVPMemoryOpCost() argument 2732 getMaskedMemoryOpCost(unsigned Opcode,Type * Src,Align Alignment,unsigned AddressSpace,TTI::TargetCostKind CostKind) getMaskedMemoryOpCost() argument 2755 getInterleavedMemoryOpCost(unsigned Opcode,Type * VecTy,unsigned Factor,ArrayRef<unsigned> Indices,Align Alignment,unsigned AddressSpace,TTI::TargetCostKind CostKind,bool UseMaskForCond,bool UseMaskForGaps) getInterleavedMemoryOpCost() argument 2858 isLegalToVectorizeLoadChain(unsigned ChainSizeInBytes,Align Alignment,unsigned AddrSpace) isLegalToVectorizeLoadChain() argument 2863 isLegalToVectorizeStoreChain(unsigned ChainSizeInBytes,Align Alignment,unsigned AddrSpace) isLegalToVectorizeStoreChain() argument 2918 hasActiveVectorLength(unsigned Opcode,Type * DataType,Align Alignment) hasActiveVectorLength() argument [all...] |
H A D | VectorUtils.h | 490 InterleaveGroup(uint32_t Factor, bool Reverse, Align Alignment) in insertMember() 491 : Factor(Factor), Reverse(Reverse), Alignment(Alignment), in insertMember() 494 InterleaveGroup(InstTy *Instr, int32_t Stride, Align Alignment) in insertMember() 495 : Alignment(Alignment), InsertPos(Instr) { in insertMember() 505 Align getAlign() const { return Alignment; } in insertMember() 550 Alignment = std::min(Alignment, NewAlign); 603 Align Alignment; 455 InterleaveGroup(uint32_t Factor,bool Reverse,Align Alignment) InterleaveGroup() argument 459 InterleaveGroup(InstTy * Instr,int32_t Stride,Align Alignment) InterleaveGroup() argument 568 Align Alignment; global() variable 704 Align Alignment; global() member 715 createInterleaveGroup(Instruction * Instr,int Stride,Align Alignment) createInterleaveGroup() argument [all...] |
/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineConstantPool.h | 49 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);
|
/llvm-project/compiler-rt/lib/gwp_asan/tests/ |
H A D | alignment.cpp | 14 static size_t getRequiredBackingSize(size_t Size, size_t Alignment, in getRequiredBackingSize() argument 16 return GuardedPoolAllocator::getRequiredBackingSize(Size, Alignment, in getRequiredBackingSize() 19 static uintptr_t alignUp(uintptr_t Ptr, size_t Alignment) { in alignUp() argument 20 return GuardedPoolAllocator::alignUp(Ptr, Alignment); in alignUp() 22 static uintptr_t alignDown(uintptr_t Ptr, size_t Alignment) { in alignDown() argument 23 return GuardedPoolAllocator::alignDown(Ptr, Alignment); in alignDown()
|
/llvm-project/bolt/lib/Rewrite/ |
H A D | ExecutableFileMemoryManager.cpp | 61 size_t Alignment; member 69 deallocate_buffer(Section.Address, Section.Size, Section.Alignment); in ~AllocInfo() 74 auto Alignment = sectionAlignment(Section); in allocateSection() local 75 auto *Buf = allocate_buffer(Size, Alignment); in allocateSection() 76 SectionAllocInfo Alloc{Buf, Size, Alignment}; in allocateSection() 106 size_t Alignment) { in updateSection() argument 116 BC.registerOrUpdateNoteSection(SectionName, Contents, Size, Alignment); in updateSection() 168 Alignment); in updateSection() 179 << " with size " << Size << ", alignment " << Alignment << " at " in updateSection() 197 SectionAlloc.Size, SectionAlloc.Alignment); in allocate()
|
/llvm-project/clang/test/CodeGenCXX/Inputs/ |
H A D | override-layout-ms.layout | 6 Alignment:8 16 Alignment:64 26 Alignment:8 36 Alignment:64 46 Alignment:64
|
/llvm-project/compiler-rt/lib/scudo/standalone/tests/ |
H A D | wrappers_c_test.cpp | 243 const size_t Alignment = 1U << I; in TEST_F() local 245 P = memalign(Alignment, Size); in TEST_F() 248 EXPECT_EQ(reinterpret_cast<uintptr_t>(P) % Alignment, 0U); in TEST_F() 255 EXPECT_EQ(posix_memalign(&P, Alignment, Size), 0); in TEST_F() 258 EXPECT_EQ(reinterpret_cast<uintptr_t>(P) % Alignment, 0U); in TEST_F() 271 for (size_t Alignment = 0U; Alignment <= 128U; Alignment++) { in TEST_F() local 272 P = memalign(Alignment, 1024U); in TEST_F() 283 const size_t Alignment = 4096U; in TEST_F() local 284 void *P = aligned_alloc(Alignment, Alignment * 4U); in TEST_F() 286 EXPECT_LE(Alignment * 4U, malloc_usable_size(P)); in TEST_F() [all …]
|