/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/ |
D | hsa-metadata-from-llvm-ir-full.ll | 34 ; CHECK-NEXT: Align: 1 39 ; CHECK-NEXT: Align: 8 43 ; CHECK-NEXT: Align: 8 47 ; CHECK-NEXT: Align: 8 51 ; CHECK-NEXT: Align: 8 71 ; CHECK-NEXT: Align: 4 76 ; CHECK-NEXT: Align: 8 80 ; CHECK-NEXT: Align: 8 84 ; CHECK-NEXT: Align: 8 88 ; CHECK-NEXT: Align: 8 [all …]
|
D | hsa-metadata-hidden-args.ll | 14 ; CHECK-NEXT: Align: 8 20 ; CHECK-NEXT: Align: 8 26 ; CHECK-NEXT: Align: 8 48 ; CHECK-NEXT: Align: 8 54 ; CHECK-NEXT: Align: 8 60 ; CHECK-NEXT: Align: 8 65 ; CHECK-NEXT: Align: 8 86 ; CHECK-NEXT: Align: 8 92 ; CHECK-NEXT: Align: 8 98 ; CHECK-NEXT: Align: 8 [all …]
|
D | hsa-metadata-enqueue-kernel.ll | 17 ; CHECK-NEXT: Align: 1 22 ; CHECK-NEXT: Align: 8 26 ; CHECK-NEXT: Align: 8 30 ; CHECK-NEXT: Align: 8 49 ; CHECK-NEXT: Align: 1 54 ; CHECK-NEXT: Align: 8 58 ; CHECK-NEXT: Align: 8 62 ; CHECK-NEXT: Align: 8 66 ; CHECK-NEXT: Align: 8 71 ; CHECK-NEXT: Align: 8 [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | Loads.cpp | 28 static bool isAligned(const Value *Base, const APInt &Offset, unsigned Align, in isAligned() argument 39 APInt Alignment(Offset.getBitWidth(), Align); in isAligned() 45 static bool isAligned(const Value *Base, unsigned Align, const DataLayout &DL) { in isAligned() argument 49 return isAligned(Base, Offset, Align, DL); in isAligned() 55 const Value *V, unsigned Align, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() argument 67 return isDereferenceableAndAlignedPointer(BC->getOperand(0), Align, Size, in isDereferenceableAndAlignedPointer() 76 return isAligned(V, Align, DL); in isDereferenceableAndAlignedPointer() 85 !Offset.urem(APInt(Offset.getBitWidth(), Align)).isMinValue()) in isDereferenceableAndAlignedPointer() 97 Base, Align, Offset + Size.sextOrTrunc(Offset.getBitWidth()), in isDereferenceableAndAlignedPointer() 104 RelocateInst->getDerivedPtr(), Align, Size, DL, CtxI, DT, Visited); in isDereferenceableAndAlignedPointer() [all …]
|
/external/perf_data_converter/src/quipper/ |
D | binary_data_utils_test.cc | 22 TEST(BinaryDataUtilsTest, Align) { in TEST() argument 23 EXPECT_EQ(12, Align<4>(10)); in TEST() 24 EXPECT_EQ(12, Align<4>(12)); in TEST() 25 EXPECT_EQ(16, Align<4>(13)); in TEST() 26 EXPECT_EQ(100, Align<4>(97)); in TEST() 27 EXPECT_EQ(100, Align<4>(100)); in TEST() 28 EXPECT_EQ(104, Align<8>(100)); in TEST() 29 EXPECT_EQ(112, Align<8>(108)); in TEST() 30 EXPECT_EQ(112, Align<8>(112)); in TEST() 32 EXPECT_EQ(12, Align<uint32_t>(10)); in TEST() [all …]
|
/external/llvm/lib/Analysis/ |
D | Loads.cpp | 28 static bool isAligned(const Value *Base, const APInt &Offset, unsigned Align, in isAligned() argument 39 APInt Alignment(Offset.getBitWidth(), Align); in isAligned() 45 static bool isAligned(const Value *Base, unsigned Align, const DataLayout &DL) { in isAligned() argument 49 return isAligned(Base, Offset, Align, DL); in isAligned() 55 const Value *V, unsigned Align, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() argument 63 return isDereferenceableAndAlignedPointer(BC->getOperand(0), Align, Size, in isDereferenceableAndAlignedPointer() 72 return isAligned(V, Align, DL); in isDereferenceableAndAlignedPointer() 81 !Offset.urem(APInt(Offset.getBitWidth(), Align)).isMinValue()) in isDereferenceableAndAlignedPointer() 91 isDereferenceableAndAlignedPointer(Base, Align, Offset + Size, DL, in isDereferenceableAndAlignedPointer() 98 RelocateInst->getDerivedPtr(), Align, Size, DL, CtxI, DT, Visited); in isDereferenceableAndAlignedPointer() [all …]
|
/external/libcxx/test/std/utilities/memory/default.allocator/allocator.members/ |
D | allocate.pass.cpp | 39 template <size_t Align> 40 struct TEST_ALIGNAS(Align) AlignedType { in TEST_ALIGNAS() argument 47 template <size_t Align> 48 int AlignedType<Align>::constructed = 0; 51 template <size_t Align> 53 typedef AlignedType<Align> T; in test_aligned() 57 const bool IsOverAlignedType = Align > MaxAligned; in test_aligned() 70 assert(globalMemCounter.checkLastNewAlignEq(ExpectAligned ? Align : 0)); in test_aligned() 77 assert(globalMemCounter.checkLastDeleteAlignEq(ExpectAligned ? Align : 0)); in test_aligned() 90 assert(globalMemCounter.checkLastNewAlignEq(ExpectAligned ? Align : 0)); in test_aligned() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
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()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetObjectFile.cpp | 135 unsigned &Align) const { in getSectionForConstant() 142 if (Align <= 4) { in getSectionForConstant() 144 Align = 4; in getSectionForConstant() 147 if (Align <= 8) { in getSectionForConstant() 149 Align = 8; in getSectionForConstant() 152 if (Align <= 16) { in getSectionForConstant() 154 Align = 16; in getSectionForConstant() 157 if (Align <= 32) { in getSectionForConstant() 159 Align = 32; in getSectionForConstant() 169 return TargetLoweringObjectFile::getSectionForConstant(DL, Kind, C, Align); in getSectionForConstant()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXPrologEpilogPass.cpp | 90 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset() local 94 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 97 Offset = (Offset + Align - 1) / Align * Align; in AdjustStackOffset() 161 unsigned Align = MFI->getLocalFrameMaxAlign(); in calculateFrameObjectOffsets() local 164 Offset = (Offset + Align - 1) / Align * Align; in calculateFrameObjectOffsets() 179 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/ |
D | NVPTXPrologEpilogPass.cpp | 90 unsigned Align = MFI.getObjectAlignment(FrameIdx); in AdjustStackOffset() local 94 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 97 Offset = (Offset + Align - 1) / Align * Align; in AdjustStackOffset() 163 unsigned Align = MFI.getLocalFrameMaxAlign(); in calculateFrameObjectOffsets() local 166 Offset = (Offset + Align - 1) / Align * Align; in calculateFrameObjectOffsets() 181 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
|
/external/llvm/include/llvm/Support/ |
D | Recycler.h | 29 void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize); 35 template<class T, size_t Size = sizeof(T), size_t Align = AlignOf<T>::Alignment> 83 static_assert(AlignOf<SubClass>::Alignment <= Align, in Allocate() 88 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate() 104 template <class T, size_t Size, size_t Align> 105 void Recycler<T, Size, Align>::PrintStats() { in PrintStats() 109 PrintRecyclerStats(Size, Align, S); in PrintStats()
|
D | RecyclingAllocator.h | 26 size_t Size = sizeof(T), size_t Align = AlignOf<T>::Alignment> 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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
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()
|
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()
|
D | MathExtras.h | 685 inline uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew = 0) { 686 assert(Align != 0u && "Align can't be 0."); 687 Skew %= Align; 688 return (Value + Align - 1 - Skew) / Align * Align + Skew; 693 template <uint64_t Align> constexpr inline uint64_t alignTo(uint64_t Value) { 694 static_assert(Align != 0u, "Align must be non-zero"); 695 return (Value + Align - 1) / Align * Align; 707 template <uint64_t Align> 709 static_assert(Align != 0u, "Align must be non-zero"); 712 static const uint64_t value = (Value + Align - 1) / Align * Align; [all …]
|
/external/clang/lib/CodeGen/ |
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); 105 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, 108 return CreateAlignedLoad(Addr, Align.getQuantity(), IsVolatile, Name); 121 CharUnits Align, bool IsVolatile = false) { 122 return CreateAlignedStore(Val, Addr, Align.getQuantity(), IsVolatile); [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | RecyclingAllocator.h | 26 size_t Size = sizeof(T), size_t Align = AlignOf<T>::Alignment> 31 Recycler<T, Size, Align> Base; 59 template<class AllocatorType, class T, size_t Size, size_t Align> 62 T, Size, Align> &Allocator) { in new() 66 template<class AllocatorType, class T, size_t Size, size_t Align> 69 T, Size, Align> &A) { in delete()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MathExtras.h | 672 inline uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew = 0) { 673 assert(Align != 0u && "Align can't be 0."); 674 Skew %= Align; 675 return (Value + Align - 1 - Skew) / Align * Align + Skew; 680 template <uint64_t Align> constexpr inline uint64_t alignTo(uint64_t Value) { 681 static_assert(Align != 0u, "Align must be non-zero"); 682 return (Value + Align - 1) / Align * Align; 689 template <uint64_t Align> 691 static_assert(Align != 0u, "Align must be non-zero"); 694 static const uint64_t value = (Value + Align - 1) / Align * Align; [all …]
|
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); 112 FmtAlign Align(*W, R.Where, R.Align); in format() 113 Align.format(S, R.Options); in format()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/AMDGPU/ |
D | hsa-metadata-unknown-key.s | 20 Align: 1 26 Align: 8 30 Align: 8 34 Align: 8 38 Align: 8
|
D | hsa-metadata-kernel-args.s | 51 Align: 1 56 Align: 8 60 Align: 8 64 Align: 8 68 Align: 8
|
/external/llvm/lib/IR/ |
D | DataLayout.cpp | 493 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo() local 494 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo() 497 if (Align & (Align-1)) in getAlignmentInfo() 498 Align = NextPowerOf2(Align); in getAlignmentInfo() 499 return Align; in getAlignmentInfo() 510 unsigned Align = getTypeStoreSize(Ty); in getAlignmentInfo() local 511 if (Align & (Align-1)) in getAlignmentInfo() 512 Align = NextPowerOf2(Align); in getAlignmentInfo() 513 return Align; in getAlignmentInfo() 651 unsigned Align = getAlignmentInfo(AGGREGATE_ALIGN, 0, abi_or_pref, Ty); in getAlignment() local [all …]
|
/external/llvm/lib/Target/ARM/ |
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() 250 SDValue Size, unsigned Align, bool isVolatile, in EmitTargetCodeForMemmove() argument 252 return EmitSpecializedLibcall(DAG, dl, Chain, Dst, Src, Size, Align, in EmitTargetCodeForMemmove() 258 SDValue Size, unsigned Align, bool isVolatile, in EmitTargetCodeForMemset() argument [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | PrologEpilogInserter.cpp | 270 unsigned Align = RC->getAlignment(); in calculateCalleeSavedRegisters() local 276 Align = std::min(Align, StackAlign); in calculateCalleeSavedRegisters() 277 FrameIdx = MFI->CreateStackObject(RC->getSize(), Align, true); in calculateCalleeSavedRegisters() 474 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset() local 478 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset() 481 Offset = (Offset + Align - 1) / Align * Align; in AdjustStackOffset() 543 unsigned Align = MFI->getObjectAlignment(i); in calculateFrameObjectOffsets() local 545 Offset = (Offset+Align-1)/Align*Align; in calculateFrameObjectOffsets() 552 unsigned Align = MFI->getObjectAlignment(i); in calculateFrameObjectOffsets() local 554 Offset = (Offset+Align-1)/Align*Align; in calculateFrameObjectOffsets() [all …]
|