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

1234

/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::__anon7183
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/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp88 Pos = LineStr.find("Alignment:");
90 // Skip past the "Alignment:" prefix.
91 LineStr = LineStr.substr(Pos + strlen("Alignment:"));
93 unsigned long long Alignment = 0; local
94 (void)LineStr.getAsInteger(10, Alignment);
95 CurrentLayout.Align = Alignment;
116 unsigned long long Alignment = 0; local
117 (void)LineStr.getAsInteger(10, Alignment);
118 CurrentLayout.Align = Alignment;
155 uint64_t &Size, uint64_t &Alignment,
154 layoutRecordType(const RecordDecl *Record, uint64_t &Size, uint64_t &Alignment, llvm::DenseMap<const FieldDecl *, uint64_t> &FieldOffsets, llvm::DenseMap<const CXXRecordDecl *, CharUnits> &BaseOffsets, llvm::DenseMap<const CXXRecordDecl *, CharUnits> &VirtualBaseOffsets) argument
[all...]
/external/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJITMemoryManager.h35 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, argument
37 return JMM->allocateSpace(Size, Alignment);
40 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, argument
42 return JMM->allocateSpace(Size, Alignment);
/external/llvm/lib/Target/Hexagon/
H A DHexagonVarargsCallingConvention.h77 unsigned Alignment = local
88 Alignment = 8;
91 unsigned Offset3 = State.AllocateStack(Size, Alignment);
132 unsigned Alignment = local
137 unsigned Offset3 = State.AllocateStack(Size, Alignment);
/external/llvm/unittests/Support/
H A DAllocatorTest.cpp115 size_t Alignment = 4096; local
116 void *MemBase = malloc(Size + Alignment - 1 + sizeof(void*));
119 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) &
120 ~(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
118 CharUnits getAlignment() const { return Alignment; }
H A DAttr.h43 size_t Alignment = 16);
47 size_t Alignment);
78 size_t Alignment = 16) throw() {
79 return ::operator new(Bytes, C, Alignment);
82 size_t Alignment) throw() {
83 return ::operator delete(Ptr, C, Alignment);
81 operator delete(void *Ptr, ASTContext &C, size_t Alignment) argument
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
H A DBillboardControl.java55 private Alignment alignment;
60 public enum Alignment { enum in class:BillboardControl
87 alignment = Alignment.Screen;
275 public Alignment getAlignment() {
284 public void setAlignment(Alignment alignment) {
295 capsule.write(alignment, "alignment", Alignment.Screen);
305 alignment = capsule.readEnum("alignment", Alignment.class, Alignment.Screen);
/external/llvm/include/llvm/CodeGen/
H A DJITCodeEmitter.h75 unsigned Alignment) = 0;
151 void emitAlignment(unsigned Alignment) { argument
152 if (Alignment == 0) Alignment = 1;
154 Alignment);
160 void emitAlignmentWithFill(unsigned Alignment, uint8_t Fill) { argument
161 if (Alignment == 0) Alignment = 1;
163 Alignment);
256 /// failure. Alignment i
257 allocateSpace(uintptr_t Size, unsigned Alignment) argument
[all...]
H A DMachineConstantPool.h56 unsigned Alignment) = 0;
85 unsigned Alignment; member in class:llvm::MachineConstantPoolEntry
88 : Alignment(A) {
92 : Alignment(A) {
94 Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1);
101 return (int)Alignment < 0;
105 return Alignment & ~(1 << (sizeof(unsigned)*CHAR_BIT-1));
153 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment);
154 unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
H A DMachineCodeEmitter.h164 void emitAlignment(unsigned Alignment) { argument
165 if (Alignment == 0) Alignment = 1;
167 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) {
170 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) &
171 ~(uintptr_t)(Alignment-1));
258 /// failure. Alignment is the alignment in bytes of the buffer desired.
259 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { argument
260 emitAlignment(Alignment);
H A DMachineFunction.h120 /// Alignment - The alignment of the function.
121 unsigned Alignment; member in class:llvm::MachineFunction
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/include/llvm/Target/
H A DTargetJITInfo.h56 size_t Alignment; member in struct:llvm::TargetJITInfo::StubLayout
H A DTargetData.h56 AlignTypeEnum AlignType : 8; //< Alignment type (AlignTypeEnum)
308 /// boundary specified by Alignment. For example, 7 rounded up to an
312 static UIntTy RoundUpAlignment(UIntTy Val, unsigned Alignment) { argument
313 assert((Alignment & (Alignment-1)) == 0 && "Alignment must be power of 2!");
314 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/llvm/lib/Transforms/Scalar/
H A DGlobalMerge.cpp185 unsigned Alignment = TD->getPreferredAlignment(I); local
187 if (Alignment > TD->getABITypeAlignment(Ty))
/external/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp56 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment,
58 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
69 unsigned Alignment,
75 unsigned Alignment,
68 allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID) argument
74 allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID) argument
/external/clang/lib/CodeGen/
H A DABIInfo.h96 static ABIArgInfo getIndirect(unsigned Alignment, bool ByVal = true argument
98 return ABIArgInfo(Indirect, 0, Alignment, ByVal, Realign);
H A DCGDeclCXX.cpp143 unsigned Alignment = getContext().getDeclAlign(&D).getQuantity(); local
145 EmitStoreOfScalar(RV.getScalarVal(), DeclPtr, false, Alignment, T);
/external/clang/lib/Parse/
H A DParsePragma.cpp43 Expr *Alignment; member in struct:PragmaPackInfo
53 Actions.ActOnPragmaPack(Info->Kind, Info->Name, Info->Alignment, PragmaLoc,
133 ExprResult Alignment; local
137 Alignment = Actions.ActOnNumericConstant(Tok);
138 if (Alignment.isInvalid())
168 Alignment = Actions.ActOnNumericConstant(Tok);
169 if (Alignment.isInvalid())
185 Alignment = Actions.ActOnNumericConstant(Tok);
186 if (Alignment.isInvalid())
222 Info->Alignment
[all...]
/external/clang/lib/Sema/
H A DSemaAttr.cpp33 unsigned Alignment; member in struct:__anon3267::PackStackEntry
42 /// Alignment - The current user specified alignment.
43 unsigned Alignment; member in class:__anon3267::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/lib/Target/ARM/
H A DARMConstantPoolValue.cpp64 unsigned Alignment) {
165 unsigned Alignment) {
166 unsigned AlignMask = Alignment - 1;
230 unsigned Alignment) {
231 unsigned AlignMask = Alignment - 1;
286 unsigned Alignment) {
287 unsigned AlignMask = Alignment - 1;
63 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) argument
164 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) argument
229 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) argument
285 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) argument
/external/llvm/lib/Target/X86/
H A DX86JITInfo.cpp451 const unsigned Alignment = 8; local
457 const unsigned Alignment = 4;
462 return JCE.allocIndirectGV(GV, Buffer, sizeof(Buffer), Alignment);

Completed in 296 milliseconds

1234