/external/llvm/include/llvm/Support/ |
D | AlignOf.h | 37 enum { Alignment = enumerator 40 enum { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 }; 41 enum { Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 : 0 }; 42 enum { Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 : 0 }; 43 enum { Alignment_GreaterEqual_16Bytes = Alignment >= 16 ? 1 : 0 }; 45 enum { Alignment_LessEqual_2Bytes = Alignment <= 2 ? 1 : 0 }; 46 enum { Alignment_LessEqual_4Bytes = Alignment <= 4 ? 1 : 0 }; 47 enum { Alignment_LessEqual_8Bytes = Alignment <= 8 ? 1 : 0 }; 48 enum { Alignment_LessEqual_16Bytes = Alignment <= 16 ? 1 : 0 }; 57 static inline unsigned alignOf() { return AlignOf<T>::Alignment; } in alignOf()
|
D | Allocator.h | 126 static char *AlignPtr(char *Ptr, size_t Alignment); 150 void *Allocate(size_t Size, size_t Alignment); 156 return static_cast<T*>(Allocate(sizeof(T),AlignOf<T>::Alignment)); 163 return static_cast<T*>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment)); 169 T *Allocate(size_t Num, size_t Alignment) { 171 size_t EltSize = (sizeof(T)+Alignment-1)&(-Alignment); 172 return static_cast<T*>(Allocate(Num * EltSize, Alignment));
|
/external/clang/lib/Sema/ |
D | SemaAttr.cpp | 33 unsigned Alignment; member 43 unsigned Alignment; member in __anona0e600160111::PragmaPackStack 50 PragmaPackStack() : Alignment(0) {} in PragmaPackStack() 52 void setAlignment(unsigned A) { Alignment = A; } in setAlignment() 53 unsigned getAlignment() { return Alignment; } in getAlignment() 58 PackStackEntry PSE = { Alignment, Name }; in push() 80 if (!Alignment) in pop() 84 Alignment = 0; in pop() 86 Alignment = Stack.back().Alignment; in pop() 98 Alignment = Stack[i].Alignment; in pop() [all …]
|
/external/llvm/lib/Support/ |
D | Allocator.cpp | 35 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { in AlignPtr() argument 36 assert(Alignment && (Alignment & (Alignment - 1)) == 0 && in AlignPtr() 40 return (char*)(((uintptr_t)Ptr + Alignment - 1) & in AlignPtr() 41 ~(uintptr_t)(Alignment - 1)); in AlignPtr() 89 void *BumpPtrAllocator::Allocate(size_t Size, size_t Alignment) { in Allocate() argument 97 if (Alignment == 0) Alignment = 1; in Allocate() 100 char *Ptr = AlignPtr(CurPtr, Alignment); in Allocate() 109 size_t PaddedSize = Size + sizeof(MemSlab) + Alignment - 1; in Allocate() 118 Ptr = AlignPtr((char*)(NewSlab + 1), Alignment); in Allocate() 125 Ptr = AlignPtr(CurPtr, Alignment); in Allocate()
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineConstantPool.h | 56 unsigned Alignment) = 0; 85 unsigned Alignment; variable 88 : Alignment(A) { in MachineConstantPoolEntry() 92 : Alignment(A) { in MachineConstantPoolEntry() 94 Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1); in MachineConstantPoolEntry() 101 return (int)Alignment < 0; in isMachineConstantPoolEntry() 105 return Alignment & ~(1 << (sizeof(unsigned)*CHAR_BIT-1)); in getAlignment() 153 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment); 154 unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
|
D | JITCodeEmitter.h | 75 unsigned Alignment) = 0; 151 void emitAlignment(unsigned Alignment) { in emitAlignment() argument 152 if (Alignment == 0) Alignment = 1; in emitAlignment() 154 Alignment); in emitAlignment() 160 void emitAlignmentWithFill(unsigned Alignment, uint8_t Fill) { in emitAlignmentWithFill() argument 161 if (Alignment == 0) Alignment = 1; in emitAlignmentWithFill() 163 Alignment); in emitAlignmentWithFill() 257 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() argument 258 emitAlignment(Alignment); in allocateSpace() 277 virtual void *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0;
|
D | MachineFrameInfo.h | 90 unsigned Alignment; member 112 : SPOffset(SP), Size(Sz), Alignment(Al), isImmutable(IM), in StackObject() 354 return Objects[ObjectIdx+NumFixedObjects].Alignment; in getObjectAlignment() 361 Objects[ObjectIdx+NumFixedObjects].Alignment = Align; in setObjectAlignment() 482 int CreateStackObject(uint64_t Size, unsigned Alignment, bool isSS, 485 Objects.push_back(StackObject(Size, Alignment, 0, false, isSS, MayNeedSP)); 488 MaxAlignment = std::max(MaxAlignment, Alignment); 496 int CreateSpillStackObject(uint64_t Size, unsigned Alignment) { in CreateSpillStackObject() argument 497 CreateStackObject(Size, Alignment, true, false); in CreateSpillStackObject() 499 MaxAlignment = std::max(MaxAlignment, Alignment); in CreateSpillStackObject() [all …]
|
D | MachineCodeEmitter.h | 164 void emitAlignment(unsigned Alignment) { in emitAlignment() argument 165 if (Alignment == 0) Alignment = 1; in emitAlignment() 167 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) { in emitAlignment() 170 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) & in emitAlignment() 171 ~(uintptr_t)(Alignment-1)); in emitAlignment() 259 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() argument 260 emitAlignment(Alignment); in allocateSpace()
|
D | MachineFunction.h | 121 unsigned Alignment; 186 unsigned getAlignment() const { return Alignment; } 190 void setAlignment(unsigned A) { Alignment = A; } 194 if (Alignment < A) Alignment = A; 219 AlignOf<Ty>::Alignment));
|
/external/llvm/test/CodeGen/Generic/ |
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 = alias weak i32 (%struct.Alignment*)* @pthread_mutexattr_init ; <i32 (%struct… 45 …d_mutexattr_ti = alias weak i32 (%struct.Alignment*, i32)* @pthread_mutexattr_settype ; <i32 (%st… 46 …read_mutexattr_t = alias weak i32 (%struct.Alignment*)* @pthread_mutexattr_destroy ; <i32 (%struc… 82 declare i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*) 88 declare i32 @pthread_mutexattr_init(%struct.Alignment*) [all …]
|
/external/clang/lib/CodeGen/ |
D | CGValue.h | 131 unsigned short Alignment; variable 156 CharUnits Alignment = CharUnits(), 160 this->Alignment = Alignment.getQuantity(); 161 assert(this->Alignment == Alignment.getQuantity() && 226 CharUnits getAlignment() const { return CharUnits::fromQuantity(Alignment); } in getAlignment() 227 void setAlignment(CharUnits A) { Alignment = A.getQuantity(); } in setAlignment() 271 QualType type, CharUnits Alignment) { in MakeVectorElt() argument 276 R.Initialize(type, type.getQualifiers(), Alignment); in MakeVectorElt() 281 QualType type, CharUnits Alignment) { in MakeExtVectorElt() argument 286 R.Initialize(type, type.getQualifiers(), Alignment); in MakeExtVectorElt() [all …]
|
/external/llvm/include/llvm/ExecutionEngine/ |
D | JITMemoryManager.h | 104 unsigned Alignment) = 0; 120 virtual uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, 128 virtual uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, 133 virtual uint8_t *allocateSpace(intptr_t Size, unsigned Alignment) = 0; 136 virtual uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0;
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJITMemoryManager.h | 35 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, in allocateDataSection() argument 37 return JMM->allocateSpace(Size, Alignment); in allocateDataSection() 40 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, in allocateCodeSection() argument 42 return JMM->allocateSpace(Size, Alignment); in allocateCodeSection()
|
/external/clang/lib/Frontend/ |
D | LayoutOverrideSource.cpp | 93 unsigned long long Alignment = 0; in LayoutOverrideSource() local 94 (void)LineStr.getAsInteger(10, Alignment); in LayoutOverrideSource() 95 CurrentLayout.Align = Alignment; in LayoutOverrideSource() 116 unsigned long long Alignment = 0; in LayoutOverrideSource() local 117 (void)LineStr.getAsInteger(10, Alignment); in LayoutOverrideSource() 118 CurrentLayout.Align = Alignment; in LayoutOverrideSource() 155 uint64_t &Size, uint64_t &Alignment, in layoutRecordType() argument 185 Alignment = Known->second.Align; in layoutRecordType()
|
/external/llvm/lib/CodeGen/ |
D | MachineFunction.cpp | 66 Alignment = TM.getTargetLowering()->getMinFunctionAlignment(); in MachineFunction() 69 Alignment = std::max(Alignment, in MachineFunction() 508 OS << ", align=" << SO.Alignment; in print() 703 unsigned Alignment) { in getConstantPoolIndex() argument 704 assert(Alignment && "Alignment must be specified!"); in getConstantPoolIndex() 705 if (Alignment > PoolAlignment) PoolAlignment = Alignment; in getConstantPoolIndex() 713 if ((unsigned)Constants[i].getAlignment() < Alignment) in getConstantPoolIndex() 714 Constants[i].Alignment = Alignment; in getConstantPoolIndex() 718 Constants.push_back(MachineConstantPoolEntry(C, Alignment)); in getConstantPoolIndex() 723 unsigned Alignment) { in getConstantPoolIndex() argument [all …]
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
D | BillboardControl.java | 55 private Alignment alignment; 60 public enum Alignment { enum in BillboardControl 87 alignment = Alignment.Screen; in BillboardControl() 275 public Alignment getAlignment() { in getAlignment() 284 public void setAlignment(Alignment alignment) { in setAlignment() 295 capsule.write(alignment, "alignment", Alignment.Screen); in write() 305 alignment = capsule.readEnum("alignment", Alignment.class, Alignment.Screen); in read()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonVarargsCallingConvention.h | 77 unsigned Alignment = in CC_Hexagon32_VarArgs() local 88 Alignment = 8; in CC_Hexagon32_VarArgs() 91 unsigned Offset3 = State.AllocateStack(Size, Alignment); in CC_Hexagon32_VarArgs() 132 unsigned Alignment = in RetCC_Hexagon32_VarArgs() local 137 unsigned Offset3 = State.AllocateStack(Size, Alignment); in RetCC_Hexagon32_VarArgs()
|
/external/clang/include/clang/AST/ |
D | Attr.h | 43 size_t Alignment = 16); 47 size_t Alignment); 78 size_t Alignment = 16) throw() { in throw() 79 return ::operator new(Bytes, C, Alignment); in throw() 82 size_t Alignment) throw() { in delete() argument 83 return ::operator delete(Ptr, C, Alignment); in delete()
|
/external/llvm/tools/llvm-rtdyld/ |
D | llvm-rtdyld.cpp | 56 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, 58 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, 69 unsigned Alignment, in allocateCodeSection() argument 75 unsigned Alignment, in allocateDataSection() argument
|
/external/llvm/lib/ExecutionEngine/JIT/ |
D | JITMemoryManager.cpp | 434 uint8_t *allocateSpace(intptr_t Size, unsigned Alignment) { in allocateSpace() argument 440 if (Alignment == 0) Alignment = 1; in allocateSpace() 441 result = (uint8_t*)(((intptr_t)result+Alignment-1) & in allocateSpace() 442 ~(intptr_t)(Alignment-1)); in allocateSpace() 452 unsigned Alignment) { in allocateStub() argument 453 return (uint8_t*)StubAllocator.Allocate(StubSize, Alignment); in allocateStub() 457 uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment) { in allocateGlobal() argument 458 return (uint8_t*)DataAllocator.Allocate(Size, Alignment); in allocateGlobal() 462 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, in allocateCodeSection() argument 500 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, in allocateDataSection() argument [all …]
|
/external/llvm/include/llvm/Target/ |
D | TargetData.h | 312 static UIntTy RoundUpAlignment(UIntTy Val, unsigned Alignment) { in RoundUpAlignment() argument 313 assert((Alignment & (Alignment-1)) == 0 && "Alignment must be power of 2!"); in RoundUpAlignment() 314 return (Val + (Alignment-1)) & ~UIntTy(Alignment-1); in RoundUpAlignment()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantPoolValue.cpp | 64 unsigned Alignment) { in getExistingMachineCPValue() argument 165 unsigned Alignment) { in getExistingMachineCPValue() argument 166 unsigned AlignMask = Alignment - 1; in getExistingMachineCPValue() 230 unsigned Alignment) { in getExistingMachineCPValue() argument 231 unsigned AlignMask = Alignment - 1; in getExistingMachineCPValue() 286 unsigned Alignment) { in getExistingMachineCPValue() argument 287 unsigned AlignMask = Alignment - 1; in getExistingMachineCPValue()
|
/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 115 size_t Alignment = 4096; in Allocate() local 116 void *MemBase = malloc(Size + Alignment - 1 + sizeof(void*)); in Allocate() 119 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & in Allocate() 120 ~(uintptr_t)(Alignment - 1)); in Allocate()
|
/external/clang/lib/Parse/ |
D | ParsePragma.cpp | 43 Expr *Alignment; member 53 Actions.ActOnPragmaPack(Info->Kind, Info->Name, Info->Alignment, PragmaLoc, in HandlePragmaPack() 133 ExprResult Alignment; in HandlePragma() local 137 Alignment = Actions.ActOnNumericConstant(Tok); in HandlePragma() 138 if (Alignment.isInvalid()) in HandlePragma() 168 Alignment = Actions.ActOnNumericConstant(Tok); in HandlePragma() 169 if (Alignment.isInvalid()) in HandlePragma() 185 Alignment = Actions.ActOnNumericConstant(Tok); in HandlePragma() 186 if (Alignment.isInvalid()) in HandlePragma() 222 Info->Alignment = Alignment.release(); in HandlePragma()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LICM.cpp | 631 int Alignment; member in __anon679acffe0211::LoopPromoter 640 Alignment(alignment) {} in LoopPromoter() 662 NewSI->setAlignment(Alignment); in doExtraRewritesBeforeFinalDeletion() 714 unsigned Alignment = 1; in PromoteAliasSet() local 760 if ((InstAlignment > Alignment || InstAlignment == 0) in PromoteAliasSet() 761 && (Alignment != 0)) in PromoteAliasSet() 764 Alignment = InstAlignment; in PromoteAliasSet() 799 *CurAST, DL, Alignment); in PromoteAliasSet() 806 PreheaderLoad->setAlignment(Alignment); in PromoteAliasSet()
|