HomeSort by: relevance | last modified time | path
    Searched refs:Alignment (Results 1 - 25 of 405) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/apache2/llvm/dist/llvm/lib/Support/
MemAlloc.cpp 14 llvm::allocate_buffer(size_t Size, size_t Alignment) {
18 std::align_val_t(Alignment)
23 void llvm::deallocate_buffer(void *Ptr, size_t Size, size_t Alignment) {
31 std::align_val_t(Alignment)
OptimizedStructLayout.cpp 27 assert(isAligned(Field.Alignment, Field.Offset) &&
32 assert(Field.Alignment <= MaxAlign &&
34 ComputedMaxAlign = std::max(Field.Alignment, MaxAlign);
71 MaxAlign = std::max(MaxAlign, FirstFlexible->Alignment);
96 MaxAlign = std::max(MaxAlign, I->Alignment);
100 // Sort the flexible elements in order of decreasing alignment,
107 // Decreasing alignment.
108 if (lhs->Alignment != rhs->Alignment)
109 return (lhs->Alignment < rhs->Alignment ? 1 : -1)
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Support/
OptimizedStructLayout.h 38 #include "llvm/Support/Alignment.h"
50 OptimizedStructLayoutField(const void *Id, uint64_t Size, Align Alignment,
52 : Offset(FixedOffset), Size(Size), Id(Id), Alignment(Alignment) {
62 /// a multiple of Alignment. Must be non-zero.
72 /// The required alignment of this field.
73 Align Alignment;
93 /// than the well-known "sort by decreasing alignment" solution:
103 /// greater than, the field's required alignment. The only constraint
113 /// - every field's size is a multiple of its required alignment an
    [all...]
AllocatorBase.h 12 /// and alignment, and a Deallocate accepting a pointer and size. Further, the
14 /// setting size and alignment based on the final type. These overloads are
35 /// Allocate \a Size bytes of \a Alignment aligned memory. This method
37 void *Allocate(size_t Size, size_t Alignment) {
46 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment);
51 void Deallocate(const void *Ptr, size_t Size, size_t Alignment) {
61 return static_cast<DerivedT *>(this)->Deallocate(Ptr, Size, Alignment);
84 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, size_t Alignment) {
85 return allocate_buffer(Size, Alignment);
91 void Deallocate(const void *Ptr, size_t Size, size_t Alignment) {
    [all...]
MemAlloc.h 65 /// Allocate a buffer of memory with the given size and alignment.
73 /// reduced default alignment.
75 allocate_buffer(size_t Size, size_t Alignment);
77 /// Deallocate a buffer of memory with the given size and alignment.
80 /// this will pass the alignment to the delete operator.
84 void deallocate_buffer(void *Ptr, size_t Size, size_t Alignment);
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/
MachineFrameInfo.cpp 31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) {
33 assert(Alignment <= StackAlignment &&
34 "For targets without stack realignment, Alignment is out of limit!");
35 if (MaxAlignment < Alignment)
36 MaxAlignment = Alignment;
39 /// Clamp the alignment if requested and emit a warning.
40 static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment,
42 if (!ShouldClamp || Alignment <= StackAlignment)
43 return Alignment;
44 LLVM_DEBUG(dbgs() << "Warning: requested alignment " << DebugStr(Alignment
    [all...]
SafeStackLayout.cpp 40 void StackLayout::addObject(const Value *V, unsigned Size, unsigned Alignment,
42 StackObjects.push_back({V, Size, Alignment, Range});
43 ObjectAlignments[V] = Alignment;
44 MaxAlignment = std::max(MaxAlignment, Alignment);
48 unsigned Alignment) {
49 return alignTo(Offset + Size, Alignment) - Size;
57 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment);
65 << Obj.Alignment << ", range " << Obj.Range << "\n");
66 assert(Obj.Alignment <= MaxAlignment);
67 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment);
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Instrumentation/
AddressSanitizerCommon.h 28 MaybeAlign Alignment;
33 class Type *OpType, MaybeAlign Alignment,
35 : IsWrite(IsWrite), OpType(OpType), Alignment(Alignment),
  /src/external/apache2/llvm/dist/llvm/lib/Target/BPF/
BPFSelectionDAGInfo.cpp 22 SDValue Size, Align Alignment, bool isVolatile, bool AlwaysInline,
30 unsigned StoresNumEstimate = alignTo(CopyLen, Alignment) >> Log2(Alignment);
39 DAG.getConstant(Alignment.value(), dl, MVT::i64));
BPFSelectionDAGInfo.h 24 SDValue Size, Align Alignment,
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
ASanStackFrameLayout.cpp 22 // We sort the stack variables by alignment (largest first) to minimize
23 // unnecessary large gaps due to alignment.
31 return a.Alignment > b.Alignment;
34 // We also force minimal alignment for all vars to kMinAlignment so that vars
35 // with e.g. alignment 1 and alignment 16 do not get reordered by CompareVars.
40 // The resulting frame size is a multiple of Alignment.
42 size_t Alignment) {
50 return alignTo(std::max(Res, 2 * Granularity), Alignment);
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/AST/
ASTContextAllocate.h 27 size_t Alignment = 8);
29 size_t Alignment = 8);
  /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
MachineConstantPool.h 20 #include "llvm/Support/Alignment.h"
49 Align Alignment) = 0;
75 /// The required alignment for this entry.
76 Align Alignment;
81 : Alignment(A), IsMachineConstantPoolEntry(false) {
86 : Alignment(A), IsMachineConstantPoolEntry(true) {
95 Align getAlign() const { return Alignment; }
118 Align PoolAlignment; ///< The alignment for the pool.
132 /// Return the alignment required by the whole constant pool, of which the
137 /// an existing one. User must specify the minimum required alignment fo
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
MipsFrameLowering.h 27 explicit MipsFrameLowering(const MipsSubtarget &sti, Align Alignment)
28 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {
  /src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
WebAssemblySelectionDAGInfo.h 27 SDValue Op3, Align Alignment, bool isVolatile,
34 Align Alignment, bool isVolatile,
39 SDValue Op3, Align Alignment, bool IsVolatile,
  /src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/JITLink/
JITLinkMemoryManager.h 40 SegmentRequest(uint64_t Alignment, size_t ContentSize,
42 : Alignment(Alignment), ContentSize(ContentSize),
44 assert(isPowerOf2_32(Alignment) && "Alignment must be power of 2");
46 uint64_t getAlignment() const { return Alignment; }
50 uint64_t Alignment = 0;
  /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
AMDGPUMachineFunction.cpp 47 Align Alignment =
50 /// TODO: We should sort these to minimize wasted space due to alignment
53 unsigned Offset = StaticLDSSize = alignTo(StaticLDSSize, Alignment);
81 Align Alignment =
83 if (Alignment <= DynLDSAlign)
86 LDSSize = alignTo(StaticLDSSize, Alignment);
87 DynLDSAlign = Alignment;
  /src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
RISCVTargetTransformInfo.h 77 Align Alignment,
99 bool isLegalMaskedLoadStore(Type *DataType, Align Alignment) {
110 bool isLegalMaskedLoad(Type *DataType, Align Alignment) {
111 return isLegalMaskedLoadStore(DataType, Alignment);
113 bool isLegalMaskedStore(Type *DataType, Align Alignment) {
114 return isLegalMaskedLoadStore(DataType, Alignment);
117 bool isLegalMaskedGatherScatter(Type *DataType, Align Alignment) {
128 bool isLegalMaskedGather(Type *DataType, Align Alignment) {
129 return isLegalMaskedGatherScatter(DataType, Alignment);
131 bool isLegalMaskedScatter(Type *DataType, Align Alignment) {
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
SectionMemoryManager.cpp 22 unsigned Alignment,
28 Size, Alignment);
30 Alignment);
34 unsigned Alignment,
38 Alignment);
43 unsigned Alignment) {
44 if (!Alignment)
45 Alignment = 16;
47 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two.")
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/XCore/
XCoreSelectionDAGInfo.h 24 SDValue Op3, Align Alignment, bool isVolatile,
  /src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
ARMBasicBlockInfo.h 28 /// unknown offset bits. This does not include alignment padding caused by
31 /// @param Alignment alignment
33 inline unsigned UnknownPadding(Align Alignment, unsigned KnownBits) {
34 if (KnownBits < Log2(Alignment))
35 return Alignment.value() - (1ull << KnownBits);
56 /// The size does not include any alignment padding whether from the
89 /// this alignment.
90 unsigned postOffset(Align Alignment = Align(1)) const {
92 const Align PA = std::max(PostAlign, Alignment);
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/
X86SelectionDAGInfo.h 31 SDValue Size, Align Alignment,
37 SDValue Size, Align Alignment,
  /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
HexagonSelectionDAGInfo.h 26 SDValue Size, Align Alignment,
  /src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/
LanaiSelectionDAGInfo.h 27 SDValue Size, Align Alignment,
  /src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
NVPTXTargetTransformInfo.h 54 // Loads and stores can be vectorized if the alignment is at least as big as
56 bool isLegalToVectorizeLoadChain(unsigned ChainSizeInBytes, Align Alignment,
58 return Alignment >= ChainSizeInBytes;
60 bool isLegalToVectorizeStoreChain(unsigned ChainSizeInBytes, Align Alignment,
62 return isLegalToVectorizeLoadChain(ChainSizeInBytes, Alignment, AddrSpace);

Completed in 60 milliseconds

1 2 3 4 5 6 7 8 91011>>