Searched defs:Alignment (Results 1 - 25 of 74) sorted by relevance

123

/external/clang/test/CodeGenCXX/
H A Dalloca-align.cpp5 unsigned Alignment; member in struct:s0
/external/llvm/include/llvm/Support/
H A DAlignOf.h30 /// AlignOf<int>::Alignment represents the alignment of type "int". The
37 enum { Alignment = enumerator in enum:llvm::AlignOf::__anon6471
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 <
[all...]
H A DAllocator.h36 void *Allocate(size_t Size, size_t /*Alignment*/) { return malloc(Size); }
123 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
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) { argument
171 size_t EltSize = (sizeof(T)+Alignment-1)&(-Alignment);
[all...]
/external/llvm/unittests/Support/
H A DAllocatorTest.cpp107 size_t Alignment = 4096; local
108 void *MemBase = malloc(Size + Alignment - 1 + sizeof(void*));
111 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) &
112 ~(uintptr_t)(Alignment - 1));
/external/clang/include/clang/AST/
H A DRecordLayout.h45 // Alignment - Alignment of record in characters.
46 CharUnits Alignment; member in class:clang::ASTRecordLayout
114 CharUnits getAlignment() const { return Alignment; }
H A DAttr.h42 size_t Alignment = 16) throw ();
46 size_t Alignment) throw ();
79 size_t Alignment = 16) throw() {
80 return ::operator new(Bytes, C, Alignment);
83 size_t Alignment) throw() {
84 return ::operator delete(Ptr, C, Alignment);
82 operator delete(void *Ptr, ASTContext &C, size_t Alignment) argument
/external/llvm/include/llvm/CodeGen/
H A DJITCodeEmitter.h74 unsigned Alignment) = 0;
150 void emitAlignment(unsigned Alignment) { argument
151 if (Alignment == 0) Alignment = 1;
153 Alignment);
159 void emitAlignmentWithFill(unsigned Alignment, uint8_t Fill) { argument
160 if (Alignment == 0) Alignment = 1;
162 Alignment);
255 /// failure. Alignment i
256 allocateSpace(uintptr_t Size, unsigned Alignment) argument
[all...]
H A DMachineConstantPool.h55 unsigned Alignment) = 0;
84 unsigned Alignment; member in class:llvm::MachineConstantPoolEntry
87 : Alignment(A) {
91 : Alignment(A) {
93 Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1);
100 return (int)Alignment < 0;
104 return Alignment & ~(1 << (sizeof(unsigned)*CHAR_BIT-1));
152 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment);
153 unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
H A DBinaryObject.h293 void emitAlignment(unsigned Alignment, uint8_t fill = 0) { argument
294 if (Alignment <= 1) return;
295 unsigned PadSize = -Data.size() & (Alignment-1);
H A DMachineCodeEmitter.h161 void emitAlignment(unsigned Alignment) { argument
162 if (Alignment == 0) Alignment = 1;
164 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) {
167 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) &
168 ~(uintptr_t)(Alignment-1));
255 /// failure. Alignment is the alignment in bytes of the buffer desired.
256 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { argument
257 emitAlignment(Alignment);
H A DMachineFunction.h120 /// Alignment - The alignment of the function.
121 unsigned Alignment; member in class:llvm::MachineFunction
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/include/llvm/Target/
H A DTargetJITInfo.h55 size_t Alignment; member in struct:llvm::TargetJITInfo::StubLayout
H A DTargetData.h56 AlignTypeEnum AlignType : 8; //< Alignment type (AlignTypeEnum)
300 /// boundary specified by Alignment. For example, 7 rounded up to an
304 static UIntTy RoundUpAlignment(UIntTy Val, unsigned Alignment) { argument
305 assert((Alignment & (Alignment-1)) == 0 && "Alignment must be power of 2!");
306 return (Val + (Alignment-1)) & ~UIntTy(Alignment-1);
/external/llvm/lib/Support/
H A DAllocator.cpp32 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
35 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { argument
36 assert(Alignment && (Alignment & (Alignment - 1)) == 0 &&
37 "Alignment is not a power of two!");
40 return (char*)(((uintptr_t)Ptr + Alignment - 1) &
41 ~(uintptr_t)(Alignment - 1));
89 void *BumpPtrAllocator::Allocate(size_t Size, size_t Alignment) { argument
[all...]
/external/clang/lib/CodeGen/
H A DABIInfo.h92 static ABIArgInfo getIndirect(unsigned Alignment, bool ByVal = true argument
94 return ABIArgInfo(Indirect, 0, Alignment, ByVal, Realign);
H A DCGDeclCXX.cpp116 unsigned Alignment = getContext().getDeclAlign(&D).getQuantity(); local
118 EmitStoreOfScalar(RV.getScalarVal(), DeclPtr, false, Alignment, T);
/external/clang/lib/Parse/
H A DParsePragma.cpp104 ExprResult Alignment; local
108 Alignment = Actions.ActOnNumericConstant(Tok);
109 if (Alignment.isInvalid())
133 Alignment = Actions.ActOnNumericConstant(Tok);
134 if (Alignment.isInvalid())
150 Alignment = Actions.ActOnNumericConstant(Tok);
151 if (Alignment.isInvalid())
176 Actions.ActOnPragmaPack(Kind, Name, Alignment.release(), PackLoc,
/external/clang/lib/Sema/
H A DSemaAttr.cpp33 unsigned Alignment; member in struct:__anon2927::PackStackEntry
42 /// Alignment - The current user specified alignment.
43 unsigned Alignment; member in class:__anon2927::PragmaPackStack
50 PragmaPackStack() : Alignment(0) {}
52 void setAlignment(unsigned A) { Alignment = A; }
53 unsigned getAlignment() { return Alignment; }
58 PackStackEntry PSE = { Alignment, Name };
80 if (!Alignment)
84 Alignment = 0;
86 Alignment
194 Expr *Alignment = static_cast<Expr *>(alignment); local
[all...]
/external/llvm/include/llvm/
H A DAttributes.h53 const Attributes Alignment = 31<<16; ///< Alignment of parameter (5 bits) member in namespace:llvm::Attribute
63 const Attributes StackAlignment = 7<<26; ///< Alignment of stack for
118 assert(isPowerOf2_32(i) && "Alignment must be a power of two.");
119 assert(i <= 0x40000000 && "Alignment too large.");
125 Attributes Align = A & Attribute::Alignment;
139 assert(isPowerOf2_32(i) && "Alignment must be a power of two.");
140 assert(i <= 0x100 && "Alignment too large.");
/external/llvm/lib/Target/ARM/
H A DARMConstantPoolValue.cpp64 unsigned Alignment) {
166 unsigned Alignment) {
167 unsigned AlignMask = Alignment - 1;
231 unsigned Alignment) {
232 unsigned AlignMask = Alignment - 1;
287 unsigned Alignment) {
288 unsigned AlignMask = Alignment - 1;
63 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) argument
165 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) argument
230 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) argument
286 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) argument
/external/llvm/lib/Target/X86/
H A DX86JITInfo.cpp446 const unsigned Alignment = 8; local
452 const unsigned Alignment = 4;
457 return JCE.allocIndirectGV(GV, Buffer, sizeof(Buffer), Alignment);
/external/llvm/lib/Transforms/Scalar/
H A DGlobalMerge.cpp185 unsigned Alignment = I->getAlignment(); local
187 if (Alignment > TD->getABITypeAlignment(Ty))
/external/llvm/include/llvm/MC/
H A DMCRegisterInfo.h32 const unsigned RegSize, Alignment; // Size & Alignment of register in bytes member in class:llvm::MCRegisterClass
43 : ID(id), Name(name), RegSize(RS), Alignment(Al), CopyCost(CC),
95 unsigned getAlignment() const { return Alignment; }
/external/llvm/lib/AsmParser/
H A DLLParser.cpp731 unsigned Alignment; local
732 if (ParseOptionalAlignment(Alignment)) return true;
733 GV->setAlignment(Alignment);
895 (Attrs & ~(Attribute::FunctionOnly | Attribute::Alignment)))
929 unsigned Alignment;
930 if (ParseOptionalStackAlignment(Alignment))
932 Attrs |= Attribute::constructStackAlignmentFromInt(Alignment);
937 unsigned Alignment;
938 if (ParseOptionalAlignment(Alignment))
940 Attrs |= Attribute::constructAlignmentFromInt(Alignment);
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypesGeneric.cpp121 unsigned Alignment = local
124 SDValue StackPtr = DAG.CreateStackTemporary(InVT, Alignment);
143 false, MinAlign(Alignment, IncrementSize));
212 unsigned Alignment = LD->getAlignment(); local
219 isVolatile, isNonTemporal, Alignment);
228 MinAlign(Alignment, IncrementSize));
397 unsigned Alignment = St->getAlignment(); local
411 isVolatile, isNonTemporal, Alignment);
419 MinAlign(Alignment, IncrementSize));

Completed in 386 milliseconds

123