Searched refs:Alignment (Results 1 - 25 of 171) sorted by relevance

1234567

/freebsd-10.1-release/contrib/llvm/include/llvm/CodeGen/
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));
155 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment);
156 unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
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);
255 /// failure. Alignment i
256 allocateSpace(uintptr_t Size, unsigned Alignment) argument
[all...]
H A DMachineCodeEmitter.h163 void emitAlignment(unsigned Alignment) { argument
164 if (Alignment == 0) Alignment = 1;
166 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) {
169 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) &
170 ~(uintptr_t)(Alignment-1));
257 /// failure. Alignment is the alignment in bytes of the buffer desired.
258 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { argument
259 emitAlignment(Alignment);
/freebsd-10.1-release/contrib/llvm/lib/Target/Mips/
H A DMipsFrameLowering.h29 explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment) argument
30 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {}
/freebsd-10.1-release/contrib/llvm/lib/ExecutionEngine/MCJIT/
H A DSectionMemoryManager.cpp22 unsigned Alignment,
27 return allocateSection(RODataMem, Size, Alignment);
28 return allocateSection(RWDataMem, Size, Alignment);
32 unsigned Alignment,
35 return allocateSection(CodeMem, Size, Alignment);
40 unsigned Alignment) {
41 if (!Alignment)
42 Alignment = 16;
44 assert(!(Alignment & (Alignment
21 allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName, bool IsReadOnly) argument
31 allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName) argument
38 allocateSection(MemoryGroup &MemGroup, uintptr_t Size, unsigned Alignment) argument
[all...]
/freebsd-10.1-release/contrib/llvm/include/llvm/Support/
H A DAlignOf.h32 /// AlignOf<int>::Alignment represents the alignment of type "int". The
39 enum { Alignment = enumerator in enum:llvm::AlignOf::__anon2052
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 <
[all...]
H A DAllocator.h36 void *Allocate(size_t Size, size_t /*Alignment*/) { return malloc(Size); }
126 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
129 static char *AlignPtr(char *Ptr, size_t Alignment);
151 void *Allocate(size_t Size, size_t Alignment);
157 return static_cast<T*>(Allocate(sizeof(T),AlignOf<T>::Alignment));
164 return static_cast<T*>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment));
170 T *Allocate(size_t Num, size_t Alignment) { argument
172 size_t EltSize = (sizeof(T)+Alignment-1)&(-Alignment);
[all...]
/freebsd-10.1-release/contrib/llvm/tools/lli/
H A DRemoteMemoryManager.h35 : MB(mb), Alignment(a), IsCode(code) {}
38 unsigned Alignment; member in struct:llvm::RemoteMemoryManager::Allocation
70 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment,
73 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
104 unsigned Alignment);
107 uint8_t *allocateSpace(intptr_t Size, unsigned Alignment);
108 uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment);
H A DRemoteMemoryManager.cpp32 allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, argument
40 AllocatedSections.push_back( Allocation(Block, Alignment, true) );
42 UnmappedSections.push_back( Allocation(Block, Alignment, true) );
47 allocateDataSection(uintptr_t Size, unsigned Alignment, argument
56 AllocatedSections.push_back( Allocation(Block, Alignment, false) );
58 UnmappedSections.push_back( Allocation(Block, Alignment, false) );
101 unsigned Align = Section.Alignment;
118 unsigned Align = Section.Alignment;
188 unsigned Alignment) {
196 uint8_t *RemoteMemoryManager::allocateSpace(intptr_t Size, unsigned Alignment) { argument
187 allocateStub(const GlobalValue* F, unsigned StubSize, unsigned Alignment) argument
200 allocateGlobal(uintptr_t Size, unsigned Alignment) argument
[all...]
H A DRemoteTarget.cpp54 bool RemoteTarget::allocateSpace(size_t Size, unsigned Alignment, argument
60 if ((uintptr_t)Mem.base() % Alignment) {
H A DRemoteTargetExternal.h37 /// @param Alignment Required minimum alignment for allocated space.
43 unsigned Alignment,
99 void SendAllocateSpace(uint32_t Alignment, uint32_t Size);
/freebsd-10.1-release/contrib/llvm/lib/Support/
H A DAllocator.cpp37 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
40 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { argument
41 assert(Alignment && (Alignment & (Alignment - 1)) == 0 &&
42 "Alignment is not a power of two!");
45 return (char*)(((uintptr_t)Ptr + Alignment - 1) &
46 ~(uintptr_t)(Alignment - 1));
95 void *BumpPtrAllocator::Allocate(size_t Size, size_t Alignment) { argument
[all...]
/freebsd-10.1-release/contrib/llvm/include/llvm/ExecutionEngine/
H A DSectionMemoryManager.h49 /// The value of \p Alignment must be a power of two. If \p Alignment is zero
51 virtual uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment,
58 /// The value of \p Alignment must be a power of two. If \p Alignment is zero
60 virtual uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
95 unsigned Alignment);
H A DRTDyldMemoryManager.h45 uintptr_t Size, unsigned Alignment, unsigned SectionID,
52 uintptr_t Size, unsigned Alignment, unsigned SectionID,
H A DJITMemoryManager.h94 unsigned Alignment) = 0;
107 virtual uint8_t *allocateSpace(intptr_t Size, unsigned Alignment) = 0;
110 virtual uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0;
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaAttr.cpp34 unsigned Alignment; member in struct:__anon3350::PackStackEntry
43 /// Alignment - The current user specified alignment.
44 unsigned Alignment; member in class:__anon3350::PragmaPackStack
51 PragmaPackStack() : Alignment(0) {}
53 void setAlignment(unsigned A) { Alignment = A; }
54 unsigned getAlignment() { return Alignment; }
59 PackStackEntry PSE = { Alignment, Name };
81 if (!Alignment)
85 Alignment = 0;
87 Alignment
188 Expr *Alignment = static_cast<Expr *>(alignment); local
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGValue.h136 int64_t Alignment; member in class:clang::CodeGen::LValue
170 CharUnits Alignment,
174 this->Alignment = Alignment.getQuantity();
175 assert(this->Alignment == Alignment.getQuantity() &&
176 "Alignment exceeds allowed max!");
258 CharUnits getAlignment() const { return CharUnits::fromQuantity(Alignment); }
259 void setAlignment(CharUnits A) { Alignment = A.getQuantity(); }
303 QualType type, CharUnits Alignment) {
169 Initialize(QualType Type, Qualifiers Quals, CharUnits Alignment, llvm::MDNode *TBAAInfo = 0) argument
302 MakeVectorElt(llvm::Value *Vec, llvm::Value *Idx, QualType type, CharUnits Alignment) argument
312 MakeExtVectorElt(llvm::Value *Vec, llvm::Constant *Elts, QualType type, CharUnits Alignment) argument
328 MakeBitfield(llvm::Value *Addr, const CGBitFieldInfo &Info, QualType type, CharUnits Alignment) argument
353 unsigned short Alignment; member in class:clang::CodeGen::AggValueSlot
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/AST/
H A DAttr.h68 size_t Alignment = 16) throw() {
69 return ::operator new(Bytes, C, Alignment);
72 size_t Alignment) throw() {
73 return ::operator delete(Ptr, C, Alignment);
71 operator delete(void *Ptr, ASTContext &C, size_t Alignment) argument
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/Frontend/
H A DLayoutOverrideSource.h52 uint64_t &Size, uint64_t &Alignment,
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/AST/
H A DDeclGroup.cpp23 void* Mem = C.Allocate(Size, llvm::AlignOf<DeclGroup>::Alignment);
/freebsd-10.1-release/contrib/llvm/lib/CodeGen/
H A DMachineFunction.cpp72 Alignment = TM.getTargetLowering()->getMinFunctionAlignment();
77 Alignment = std::max(Alignment,
492 int MachineFrameInfo::CreateStackObject(uint64_t Size, unsigned Alignment, argument
495 Alignment =
498 Alignment, getFrameLowering()->getStackAlignment());
499 Objects.push_back(StackObject(Size, Alignment, 0, false, isSS, MayNeedSP,
503 ensureMaxAlignment(Alignment);
512 unsigned Alignment) {
513 Alignment
511 CreateSpillStackObject(uint64_t Size, unsigned Alignment) argument
528 CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca) argument
866 getConstantPoolIndex(const Constant *C, unsigned Alignment) argument
887 getConstantPoolIndex(MachineConstantPoolValue *V, unsigned Alignment) argument
[all...]
/freebsd-10.1-release/contrib/llvm/lib/Target/SystemZ/
H A DSystemZConstantPoolValue.cpp40 getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) { argument
41 unsigned AlignMask = Alignment - 1;
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp90 Pos = LineStr.find("Alignment:");
92 // Skip past the "Alignment:" prefix.
93 LineStr = LineStr.substr(Pos + strlen("Alignment:"));
95 unsigned long long Alignment = 0; local
96 (void)LineStr.getAsInteger(10, Alignment);
97 CurrentLayout.Align = Alignment;
118 unsigned long long Alignment = 0; local
119 (void)LineStr.getAsInteger(10, Alignment);
120 CurrentLayout.Align = Alignment;
157 uint64_t &Size, uint64_t &Alignment,
156 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...]
/freebsd-10.1-release/contrib/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);
/freebsd-10.1-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp102 unsigned Alignment,
231 unsigned PPCTTI::getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, argument
244 if (SrcBytes && Alignment && Alignment < SrcBytes)
245 Cost *= (SrcBytes/Alignment);

Completed in 500 milliseconds

1234567