Home
last modified time | relevance | path

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

123456

/external/llvm/include/llvm/Support/
DAlignOf.h37 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()
DAllocator.h126 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/
DSemaAttr.cpp33 unsigned Alignment; member
43 unsigned Alignment; member in __anondecc86d50111::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/
DAllocator.cpp35 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/
DMachineConstantPool.h55 unsigned Alignment) = 0;
84 unsigned Alignment; variable
87 : Alignment(A) { in MachineConstantPoolEntry()
91 : Alignment(A) { in MachineConstantPoolEntry()
93 Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1); in MachineConstantPoolEntry()
100 return (int)Alignment < 0; in isMachineConstantPoolEntry()
104 return Alignment & ~(1 << (sizeof(unsigned)*CHAR_BIT-1)); in getAlignment()
152 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment);
153 unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
DJITCodeEmitter.h74 unsigned Alignment) = 0;
150 void emitAlignment(unsigned Alignment) { in emitAlignment() argument
151 if (Alignment == 0) Alignment = 1; in emitAlignment()
153 Alignment); in emitAlignment()
159 void emitAlignmentWithFill(unsigned Alignment, uint8_t Fill) { in emitAlignmentWithFill() argument
160 if (Alignment == 0) Alignment = 1; in emitAlignmentWithFill()
162 Alignment); in emitAlignmentWithFill()
256 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() argument
257 emitAlignment(Alignment); in allocateSpace()
276 virtual void *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0;
DMachineFrameInfo.h90 unsigned Alignment; member
112 : SPOffset(SP), Size(Sz), Alignment(Al), isImmutable(IM), in StackObject()
344 return Objects[ObjectIdx+NumFixedObjects].Alignment; in getObjectAlignment()
351 Objects[ObjectIdx+NumFixedObjects].Alignment = Align; in setObjectAlignment()
472 int CreateStackObject(uint64_t Size, unsigned Alignment, bool isSS,
475 Objects.push_back(StackObject(Size, Alignment, 0, false, isSS, MayNeedSP));
478 MaxAlignment = std::max(MaxAlignment, Alignment);
486 int CreateSpillStackObject(uint64_t Size, unsigned Alignment) { in CreateSpillStackObject() argument
487 CreateStackObject(Size, Alignment, true, false); in CreateSpillStackObject()
489 MaxAlignment = std::max(MaxAlignment, Alignment); in CreateSpillStackObject()
[all …]
DMachineCodeEmitter.h161 void emitAlignment(unsigned Alignment) { in emitAlignment() argument
162 if (Alignment == 0) Alignment = 1; in emitAlignment()
164 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) { in emitAlignment()
167 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) & in emitAlignment()
168 ~(uintptr_t)(Alignment-1)); in emitAlignment()
256 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() argument
257 emitAlignment(Alignment); in allocateSpace()
DMachineFunction.h121 unsigned Alignment;
184 unsigned getAlignment() const { return Alignment; }
188 void setAlignment(unsigned A) { Alignment = A; }
192 if (Alignment < A) Alignment = A;
215 AlignOf<Ty>::Alignment));
/external/llvm/test/CodeGen/Generic/
D2009-03-17-LSR-APInt.ll5 %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/llvm/lib/CodeGen/
DMachineFunction.cpp68 Alignment = TM.getTargetLowering()->getMinFunctionAlignment(); in MachineFunction()
71 Alignment = std::max(Alignment, in MachineFunction()
503 OS << ", align=" << SO.Alignment; in print()
692 unsigned Alignment) { in getConstantPoolIndex() argument
693 assert(Alignment && "Alignment must be specified!"); in getConstantPoolIndex()
694 if (Alignment > PoolAlignment) PoolAlignment = Alignment; in getConstantPoolIndex()
702 if ((unsigned)Constants[i].getAlignment() < Alignment) in getConstantPoolIndex()
703 Constants[i].Alignment = Alignment; in getConstantPoolIndex()
707 Constants.push_back(MachineConstantPoolEntry(C, Alignment)); in getConstantPoolIndex()
712 unsigned Alignment) { in getConstantPoolIndex() argument
[all …]
/external/clang/include/clang/AST/
DAttr.h41 size_t Alignment = 16) throw ();
45 size_t Alignment) throw ();
79 size_t Alignment = 16) throw() { in throw()
80 return ::operator new(Bytes, C, Alignment); in throw()
83 size_t Alignment) throw() { in delete() argument
84 return ::operator delete(Ptr, C, Alignment); in delete()
/external/llvm/include/llvm/Target/
DTargetData.h291 static UIntTy RoundUpAlignment(UIntTy Val, unsigned Alignment) { in RoundUpAlignment() argument
292 assert((Alignment & (Alignment-1)) == 0 && "Alignment must be power of 2!"); in RoundUpAlignment()
293 return (Val + (Alignment-1)) & ~UIntTy(Alignment-1); in RoundUpAlignment()
/external/llvm/unittests/Support/
DAllocatorTest.cpp107 size_t Alignment = 4096; in Allocate() local
108 void *MemBase = malloc(Size + Alignment - 1 + sizeof(void*)); in Allocate()
111 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & in Allocate()
112 ~(uintptr_t)(Alignment - 1)); in Allocate()
/external/llvm/include/llvm/ExecutionEngine/
DJITMemoryManager.h93 unsigned Alignment) = 0;
106 virtual uint8_t *allocateSpace(intptr_t Size, unsigned Alignment) = 0;
109 virtual uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0;
/external/clang/lib/CodeGen/
DCGValue.h135 unsigned short Alignment; variable
159 void Initialize(QualType Type, Qualifiers Quals, unsigned Alignment = 0,
163 this->Alignment = Alignment;
164 assert(this->Alignment == Alignment && "Alignment exceeds allowed max!");
229 unsigned getAlignment() const { return Alignment; } in getAlignment()
/external/clang/lib/Parse/
DParsePragma.cpp104 ExprResult Alignment; in HandlePragma() local
108 Alignment = Actions.ActOnNumericConstant(Tok); in HandlePragma()
109 if (Alignment.isInvalid()) in HandlePragma()
133 Alignment = Actions.ActOnNumericConstant(Tok); in HandlePragma()
134 if (Alignment.isInvalid()) in HandlePragma()
150 Alignment = Actions.ActOnNumericConstant(Tok); in HandlePragma()
151 if (Alignment.isInvalid()) in HandlePragma()
176 Actions.ActOnPragmaPack(Kind, Name, Alignment.release(), PackLoc, in HandlePragma()
/external/llvm/lib/ExecutionEngine/JIT/
DJITMemoryManager.cpp417 uint8_t *allocateSpace(intptr_t Size, unsigned Alignment) { in allocateSpace() argument
423 if (Alignment == 0) Alignment = 1; in allocateSpace()
424 result = (uint8_t*)(((intptr_t)result+Alignment-1) & in allocateSpace()
425 ~(intptr_t)(Alignment-1)); in allocateSpace()
435 unsigned Alignment) { in allocateStub() argument
436 return (uint8_t*)StubAllocator.Allocate(StubSize, Alignment); in allocateStub()
440 uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment) { in allocateGlobal() argument
441 return (uint8_t*)DataAllocator.Allocate(Size, Alignment); in allocateGlobal()
DJITEmitter.cpp401 unsigned StubSize, unsigned Alignment = 1);
406 unsigned Alignment);
410 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment);
415 virtual void *allocateGlobal(uintptr_t Size, unsigned Alignment);
548 JE.startGVStub(F, SL.Size, SL.Alignment); in getLazyFunctionStub()
611 JE.startGVStub(0, SL.Size, SL.Alignment); in getExternalFunctionStub()
1049 void* JITEmitter::allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() argument
1051 return JITCodeEmitter::allocateSpace(Size, Alignment); in allocateSpace()
1056 BufferBegin = CurBufferPtr = MemMgr->allocateSpace(Size, Alignment); in allocateSpace()
1061 void* JITEmitter::allocateGlobal(uintptr_t Size, unsigned Alignment) { in allocateGlobal() argument
[all …]
/external/llvm/lib/Transforms/Scalar/
DLICM.cpp609 int Alignment; member in __anon377fa5bd0211::LoopPromoter
618 Alignment(alignment) {} in LoopPromoter()
640 NewSI->setAlignment(Alignment); in doExtraRewritesBeforeFinalDeletion()
692 unsigned Alignment = 1; in PromoteAliasSet() local
734 if ((InstAlignment > Alignment || InstAlignment == 0) in PromoteAliasSet()
735 && (Alignment != 0)) in PromoteAliasSet()
738 Alignment = InstAlignment; in PromoteAliasSet()
770 *CurAST, DL, Alignment); in PromoteAliasSet()
777 PreheaderLoad->setAlignment(Alignment); in PromoteAliasSet()
DMemCpyOptimizer.cpp139 unsigned Alignment; member
224 unsigned Alignment, Instruction *Inst);
240 unsigned Alignment, Instruction *Inst) { in addRange() argument
255 R.Alignment = Alignment; in addRange()
277 I->Alignment = Alignment; in addRange()
449 unsigned Alignment = Range.Alignment; in INITIALIZE_PASS_DEPENDENCY() local
450 if (Alignment == 0) { in INITIALIZE_PASS_DEPENDENCY()
453 Alignment = TD->getABITypeAlignment(EltType); in INITIALIZE_PASS_DEPENDENCY()
457 Builder.CreateMemSet(StartPtr, ByteVal, Range.End-Range.Start, Alignment); in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/include/llvm/MC/
DMCContext.h305 size_t Alignment = 16) throw () { in throw()
306 return C.Allocate(Bytes, Alignment); in throw()
339 size_t Alignment = 16) throw () { in throw()
340 return C.Allocate(Bytes, Alignment); in throw()
/external/chromium/chrome/browser/chromeos/login/
Dlanguage_switch_menu.h34 void set_menu_alignment(views::Menu2::Alignment alignment) { in set_menu_alignment()
75 views::Menu2::Alignment menu_alignment_;
/external/llvm/lib/Target/
DTargetData.cpp566 unsigned Alignment = getPrefTypeAlignment(ElemType); in getPreferredAlignment() local
568 if (GVAlignment >= Alignment) { in getPreferredAlignment()
569 Alignment = GVAlignment; in getPreferredAlignment()
571 Alignment = std::max(GVAlignment, getABITypeAlignment(ElemType)); in getPreferredAlignment()
575 if (Alignment < 16) { in getPreferredAlignment()
579 Alignment = 16; // 16-byte alignment. in getPreferredAlignment()
582 return Alignment; in getPreferredAlignment()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp116 unsigned Alignment = in ExpandRes_BITCAST() local
119 SDValue StackPtr = DAG.CreateStackTemporary(InVT, Alignment); in ExpandRes_BITCAST()
138 false, MinAlign(Alignment, IncrementSize)); in ExpandRes_BITCAST()
207 unsigned Alignment = LD->getAlignment(); in ExpandRes_NormalLoad() local
214 isVolatile, isNonTemporal, Alignment); in ExpandRes_NormalLoad()
223 MinAlign(Alignment, IncrementSize)); in ExpandRes_NormalLoad()
392 unsigned Alignment = St->getAlignment(); in ExpandOp_NormalStore() local
406 isVolatile, isNonTemporal, Alignment); in ExpandOp_NormalStore()
414 MinAlign(Alignment, IncrementSize)); in ExpandOp_NormalStore()

123456