| /minix3/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/MCJIT/ |
| H A D | SectionMemoryManager.cpp | 22 unsigned Alignment, in allocateDataSection() argument 27 return allocateSection(RODataMem, Size, Alignment); in allocateDataSection() 28 return allocateSection(RWDataMem, Size, Alignment); in allocateDataSection() 32 unsigned Alignment, in allocateCodeSection() argument 35 return allocateSection(CodeMem, Size, Alignment); in allocateCodeSection() 40 unsigned Alignment) { in allocateSection() argument 41 if (!Alignment) in allocateSection() 42 Alignment = 16; in allocateSection() 44 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection() 46 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1)/Alignment + 1); in allocateSection() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | ASanStackFrameLayout.cpp | 29 return a.Alignment > b.Alignment; in CompareVars() 43 static size_t VarAndRedzoneSize(size_t Size, size_t Alignment) { in VarAndRedzoneSize() argument 51 return RoundUpTo(Res, Alignment); in VarAndRedzoneSize() 65 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout() 71 Layout->FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout() 75 Vars[0].Alignment); in ComputeASanStackFrameLayout() 80 size_t Alignment = std::max(Granularity, Vars[i].Alignment); in ComputeASanStackFrameLayout() local 81 (void)Alignment; // Used only in asserts. in ComputeASanStackFrameLayout() 84 assert((Alignment & (Alignment - 1)) == 0); in ComputeASanStackFrameLayout() 85 assert(Layout->FrameAlignment >= Alignment); in ComputeASanStackFrameLayout() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/unittests/Support/ |
| H A D | AlignOfTest.cpp | 92 [AlignOf<char>::Alignment > 0] 93 [AlignOf<short>::Alignment > 0] 94 [AlignOf<int>::Alignment > 0] 95 [AlignOf<long>::Alignment > 0] 96 [AlignOf<long long>::Alignment > 0] 97 [AlignOf<float>::Alignment > 0] 98 [AlignOf<double>::Alignment > 0] 99 [AlignOf<long double>::Alignment > 0] 100 [AlignOf<void *>::Alignment > 0] 101 [AlignOf<int *>::Alignment > 0] [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/Support/ |
| H A D | AlignOf.h | 39 enum { Alignment = enumerator 42 enum { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 }; 43 enum { Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 : 0 }; 44 enum { Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 : 0 }; 45 enum { Alignment_GreaterEqual_16Bytes = Alignment >= 16 ? 1 : 0 }; 47 enum { Alignment_LessEqual_2Bytes = Alignment <= 2 ? 1 : 0 }; 48 enum { Alignment_LessEqual_4Bytes = Alignment <= 4 ? 1 : 0 }; 49 enum { Alignment_LessEqual_8Bytes = Alignment <= 8 ? 1 : 0 }; 50 enum { Alignment_LessEqual_16Bytes = Alignment <= 16 ? 1 : 0 }; 58 inline unsigned alignOf() { return AlignOf<T>::Alignment; } in alignOf() [all …]
|
| H A D | Allocator.h | 46 void *Allocate(size_t Size, size_t Alignment) { in Allocate() argument 55 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate() 77 return static_cast<T *>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment)); 206 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, size_t Alignment) { in Allocate() argument 207 assert(Alignment > 0 && "0-byte alignnment is not allowed. Use 1 instead."); in Allocate() 212 size_t Adjustment = alignmentAdjustment(CurPtr, Alignment); in Allocate() 227 size_t PaddedSize = Size + Alignment - 1; in Allocate() 232 uintptr_t AlignedAddr = alignAddr(NewSlab, Alignment); in Allocate() 241 uintptr_t AlignedAddr = alignAddr(CurPtr, Alignment); in Allocate()
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/ |
| H A D | MachineConstantPool.h | 57 unsigned Alignment) = 0; 86 unsigned Alignment; variable 89 : Alignment(A) { in MachineConstantPoolEntry() 93 : Alignment(A) { in MachineConstantPoolEntry() 95 Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1); in MachineConstantPoolEntry() 102 return (int)Alignment < 0; in isMachineConstantPoolEntry() 106 return Alignment & ~(1 << (sizeof(unsigned)*CHAR_BIT-1)); in getAlignment() 158 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment); 159 unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
|
| H A D | MachineFrameInfo.h | 93 unsigned Alignment; member 120 : SPOffset(SP), Size(Sz), Alignment(Al), isImmutable(IM), in StackObject() 405 return Objects[ObjectIdx+NumFixedObjects].Alignment; in getObjectAlignment() 412 Objects[ObjectIdx+NumFixedObjects].Alignment = Align; in setObjectAlignment() 564 int CreateStackObject(uint64_t Size, unsigned Alignment, bool isSS, 571 int CreateSpillStackObject(uint64_t Size, unsigned Alignment); 585 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
|
| /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/Generic/ |
| H A D | 2009-03-17-LSR-APInt.ll | 5 %struct.Alignment = type { i32 } 11 …type { %"struct.QHashData::Node"*, %"struct.QHashData::Node"**, %struct.Alignment, i32, i32, i16, … 16 %"struct.QListData::Data" = type { %struct.Alignment, i32, i32, i32, i8, [1 x i8*] } 25 …%struct.QWidgetData = type { i64, i32, %struct.Alignment, i8, i8, i16, %struct.QRect, %struct.QPal… 41 …%struct.pthread_mutex_t*, %struct.Alignment*)* @pthread_mutex_init ; <i32 (%struct.pthread_mutex_… 44 …thread_mutexattr_t = weak alias i32 (%struct.Alignment*)* @pthread_mutexattr_init ; <i32 (%struct… 45 …d_mutexattr_ti = weak alias i32 (%struct.Alignment*, i32)* @pthread_mutexattr_settype ; <i32 (%st… 46 …read_mutexattr_t = weak alias i32 (%struct.Alignment*)* @pthread_mutexattr_destroy ; <i32 (%struc… 98 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*) { 110 define i32 @pthread_mutexattr_init(%struct.Alignment*) { [all …]
|
| /minix3/external/bsd/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGValue.h | 137 int64_t Alignment; variable 171 CharUnits Alignment, 175 this->Alignment = Alignment.getQuantity(); 176 assert(this->Alignment == Alignment.getQuantity() && 260 CharUnits getAlignment() const { return CharUnits::fromQuantity(Alignment); } in getAlignment() 261 void setAlignment(CharUnits A) { Alignment = A.getQuantity(); } in setAlignment() 308 QualType type, CharUnits Alignment) { in MakeVectorElt() argument 313 R.Initialize(type, type.getQualifiers(), Alignment); in MakeVectorElt() 318 QualType type, CharUnits Alignment) { in MakeExtVectorElt() argument 323 R.Initialize(type, type.getQualifiers(), Alignment); in MakeExtVectorElt() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/lib/Sema/ |
| H A D | SemaAttr.cpp | 34 unsigned Alignment; member 44 unsigned Alignment; member in __anonf348ea230111::PragmaPackStack 51 PragmaPackStack() : Alignment(0) {} in PragmaPackStack() 53 void setAlignment(unsigned A) { Alignment = A; } in setAlignment() 54 unsigned getAlignment() { return Alignment; } in getAlignment() 59 PackStackEntry PSE = { Alignment, Name }; in push() 81 if (!Alignment) in pop() 85 Alignment = 0; in pop() 87 Alignment = Stack.back().Alignment; in pop() 99 Alignment = Stack[i].Alignment; in pop() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/ |
| H A D | MachineFunction.cpp | 76 Alignment = STI->getTargetLowering()->getMinFunctionAlignment(); in MachineFunction() 81 Alignment = std::max(Alignment, in MachineFunction() 512 int MachineFrameInfo::CreateStackObject(uint64_t Size, unsigned Alignment, in CreateStackObject() argument 515 Alignment = clampStackAlignment(!StackRealignable || !RealignOption, in CreateStackObject() 516 Alignment, StackAlignment); in CreateStackObject() 517 Objects.push_back(StackObject(Size, Alignment, 0, false, isSS, Alloca, in CreateStackObject() 521 ensureMaxAlignment(Alignment); in CreateStackObject() 530 unsigned Alignment) { in CreateSpillStackObject() argument 531 Alignment = clampStackAlignment(!StackRealignable || !RealignOption, in CreateSpillStackObject() 532 Alignment, StackAlignment); in CreateSpillStackObject() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/tools/lli/ |
| H A D | RemoteMemoryManager.cpp | 32 allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, in allocateCodeSection() argument 40 AllocatedSections.push_back( Allocation(Block, Alignment, true) ); in allocateCodeSection() 42 UnmappedSections.push_back( Allocation(Block, Alignment, true) ); in allocateCodeSection() 47 allocateDataSection(uintptr_t Size, unsigned Alignment, in allocateDataSection() argument 56 AllocatedSections.push_back( Allocation(Block, Alignment, false) ); in allocateDataSection() 58 UnmappedSections.push_back( Allocation(Block, Alignment, false) ); in allocateDataSection() 101 unsigned Align = Section.Alignment; in notifyObjectLoaded() 118 unsigned Align = Section.Alignment; in notifyObjectLoaded()
|
| H A D | RemoteMemoryManager.h | 34 : MB(mb), Alignment(a), IsCode(code) {} in Allocation() 37 unsigned Alignment; member 69 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, 73 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
|
| H A D | RemoteTargetExternal.cpp | 31 bool RemoteTargetExternal::allocateSpace(size_t Size, unsigned Alignment, in allocateSpace() argument 34 ", align: " << Alignment << "\n"); in allocateSpace() 35 if (!SendAllocateSpace(Alignment, Size)) { in allocateSpace() 119 bool RemoteTargetExternal::SendAllocateSpace(uint32_t Alignment, uint32_t Size) { in SendAllocateSpace() argument 125 AppendWrite((const void *)&Alignment, 4); in SendAllocateSpace()
|
| /minix3/external/bsd/llvm/dist/clang/lib/Frontend/ |
| H A D | LayoutOverrideSource.cpp | 95 unsigned long long Alignment = 0; in LayoutOverrideSource() local 96 (void)LineStr.getAsInteger(10, Alignment); in LayoutOverrideSource() 97 CurrentLayout.Align = Alignment; in LayoutOverrideSource() 118 unsigned long long Alignment = 0; in LayoutOverrideSource() local 119 (void)LineStr.getAsInteger(10, Alignment); in LayoutOverrideSource() 120 CurrentLayout.Align = Alignment; in LayoutOverrideSource() 157 uint64_t &Size, uint64_t &Alignment, in layoutRecordType() argument 187 Alignment = Known->second.Align; in layoutRecordType()
|
| /minix3/external/bsd/llvm/dist/llvm/unittests/ExecutionEngine/MCJIT/ |
| H A D | MCJITCAPITest.cpp | 100 void useSpace(uintptr_t* UsedSize, uintptr_t Size, unsigned Alignment) { in useSpace() argument 101 uintptr_t AlignedSize = (Size + Alignment - 1) / Alignment * Alignment; in useSpace() 102 uintptr_t AlignedBegin = (*UsedSize + Alignment - 1) / Alignment * Alignment; in useSpace() 106 virtual uint8_t* allocateDataSection(uintptr_t Size, unsigned Alignment, in allocateDataSection() argument 108 useSpace(IsReadOnly ? &UsedDataSizeRO : &UsedDataSizeRW, Size, Alignment); in allocateDataSection() 109 return SectionMemoryManager::allocateDataSection(Size, Alignment, in allocateDataSection() 113 uint8_t* allocateCodeSection(uintptr_t Size, unsigned Alignment, in allocateCodeSection() argument 115 useSpace(&UsedCodeSize, Size, Alignment); in allocateCodeSection() 116 return SectionMemoryManager::allocateCodeSection(Size, Alignment, in allocateCodeSection()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/Mips/ |
| H A D | MipsFrameLowering.h | 28 explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment) in MipsFrameLowering() argument 29 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {} in MipsFrameLowering()
|
| /minix3/external/bsd/llvm/dist/clang/lib/AST/ |
| H A D | RecordLayoutBuilder.cpp | 535 CharUnits Alignment; member in __anoncc229ba80111::RecordLayoutBuilder 628 Alignment(CharUnits::One()), UnpackedAlignment(CharUnits::One()), in RecordLayoutBuilder() 740 CharUnits getAligment() const { return Alignment; } in getAligment() 1188 Alignment = CharUnits::One(); in LayoutBase() 1227 Alignment = CharUnits::fromQuantity(2); in InitializeLayout() 1249 Alignment = Context.toCharUnitsFromBits(ExternalAlign); in InitializeLayout() 1278 NonVirtualAlignment = Alignment; in Layout() 1803 = llvm::RoundUpToAlignment(getSizeInBits(), Context.toBits(Alignment)); in FinishLayout() 1810 Alignment = CharUnits::One(); in FinishLayout() 1852 if (NewAlignment > Alignment) { in UpdateAlignment() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/ExecutionEngine/ |
| H A D | SectionMemoryManager.h | 50 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, 59 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, 93 unsigned Alignment);
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVarargsCallingConvention.h | 77 unsigned Alignment = State.getTarget() in CC_Hexagon32_VarArgs() local 92 Alignment = 8; in CC_Hexagon32_VarArgs() 95 unsigned Offset3 = State.AllocateStack(Size, Alignment); in CC_Hexagon32_VarArgs() 136 unsigned Alignment = State.getTarget() in RetCC_Hexagon32_VarArgs() local 145 unsigned Offset3 = State.AllocateStack(Size, Alignment); in RetCC_Hexagon32_VarArgs()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/ARM/ |
| H A D | ARMConstantPoolValue.cpp | 64 unsigned Alignment) { in getExistingMachineCPValue() argument 165 unsigned Alignment) { in getExistingMachineCPValue() argument 166 return getExistingMachineCPValueImpl<ARMConstantPoolConstant>(CP, Alignment); in getExistingMachineCPValue() 204 unsigned Alignment) { in getExistingMachineCPValue() argument 205 return getExistingMachineCPValueImpl<ARMConstantPoolSymbol>(CP, Alignment); in getExistingMachineCPValue() 244 unsigned Alignment) { in getExistingMachineCPValue() argument 245 return getExistingMachineCPValueImpl<ARMConstantPoolMBB>(CP, Alignment); in getExistingMachineCPValue()
|
| H A D | ARMConstantPoolValue.h | 71 unsigned Alignment) { in getExistingMachineCPValueImpl() argument 72 unsigned AlignMask = Alignment - 1; in getExistingMachineCPValueImpl() 109 unsigned Alignment) override; 168 unsigned Alignment) override; 202 unsigned Alignment) override; 238 unsigned Alignment) override;
|
| /minix3/external/bsd/llvm/dist/llvm/test/tools/llvm-readobj/ |
| H A D | program-headers.test | 22 ELF-I386-NEXT: Alignment: 4096 35 ELF-I386-NEXT: Alignment: 4 51 ELF-X86-64-NEXT: Alignment: 2097152 63 ELF-X86-64-NEXT: Alignment: 4 76 ELF-X86-64-NEXT: Alignment: 8 95 ELF-MIPS-NEXT: Alignment: 4 108 ELF-MIPS-NEXT: Alignment: 65536 128 ELF-MIPS64-NEXT: Alignment: 65536
|
| /minix3/external/bsd/llvm/dist/llvm/lib/IR/ |
| H A D | Attributes.cpp | 81 return get(Context, Alignment, Align); in getWithAlignment() 152 assert(hasAttribute(Attribute::Alignment) && in getAlignment() 258 if (hasAttribute(Attribute::Alignment)) { in getAsString() 405 case Attribute::Alignment: return 31 << 16; in getAttrMask() 503 if (I->hasAttribute(Attribute::Alignment)) in getAlignment() 551 if (Kind == Attribute::Alignment) in Raw() 656 if (Kind == Attribute::Alignment) in get() 801 assert(!Attrs.hasAttribute(Index, Attribute::Alignment) && in removeAttributes() 1007 : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0) { in AttrBuilder() 1024 Alignment = StackAlignment = DerefBytes = 0; in clear() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/include/clang/AST/ |
| H A D | Attr.h | 68 size_t Alignment = 16) throw() { in throw() 69 return ::operator new(Bytes, C, Alignment); in throw() 72 size_t Alignment) throw() { in delete() argument 73 return ::operator delete(Ptr, C, Alignment); in delete()
|