| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBuilder.h | 73 Addr.getAlignment().getAsAlign(), Name); 79 Addr.getAlignment().getAsAlign(), Name); in CreateLoad() 172 Addr.getAlignment()); 181 return Address(Ptr, ElementTy, Addr.getAlignment()); 202 Addr.getAlignment().alignmentAtOffset(Offset)); 224 Addr.getAlignment().alignmentAtOffset(Index * EltSize)); 273 Addr.getAlignment().alignmentOfArrayElement(EltSize)); 283 Addr.getAlignment().alignmentAtOffset(Offset)); 291 Addr.getAlignment().alignmentAtOffset(Offset)); 307 Addr.getAlignment().alignmentAtOffset( [all …]
|
| H A D | Address.h | 41 CharUnits getAlignment() const { return Alignment; } in getAlignment() function 67 CharUnits getAlignment() const { in getAlignment() function 120 CharUnits getAlignment() const { in getAlignment() function 122 return A.getAlignment(); in getAlignment() 128 return Address(NewPointer, getElementType(), getAlignment()); in withPointer() 159 return ConstantAddress(BitCast, ElemTy, getAlignment()); in getElementBitCast() 167 addr.getElementType(), addr.getAlignment()); in castImpl()
|
| H A D | CGValue.h | 342 return Address(getPointer(CGF), ElementType, getAlignment()); in getAddress() 348 Alignment = address.getAlignment().getQuantity(); in setAddress() 353 return Address(getVectorPointer(), ElementType, getAlignment()); in getVectorAddress() 365 return Address(getMatrixPointer(), ElementType, getAlignment()); in getMatrixAddress() 378 return Address(getExtVectorPointer(), ElementType, getAlignment()); in getExtVectorAddress() 391 return Address(getBitFieldPointer(), ElementType, getAlignment()); in getBitFieldAddress() 412 R.Initialize(type, qs, address.getAlignment(), BaseInfo, TBAAInfo); in MakeAddr() 424 R.Initialize(type, type.getQualifiers(), vecAddress.getAlignment(), in MakeVectorElt() 437 R.Initialize(type, type.getQualifiers(), vecAddress.getAlignment(), in MakeExtVectorElt() 635 CharUnits getAlignment() const { in getAlignment() function [all …]
|
| H A D | CGRecordLayoutBuilder.cpp | 164 CharUnits getAlignment(llvm::Type *Type) { in getAlignment() function 353 getAlignment(FieldType) > getAlignment(StorageType) || in lowerUnion() 354 (getAlignment(FieldType) == getAlignment(StorageType) && in lowerUnion() 368 if (LayoutSize % getAlignment(StorageType)) in lowerUnion() 449 Context.toBits(getAlignment(getIntNType(OffsetInRecord))) != in accumulateBitFields() 554 if ((uint64_t)(Context.toBits(Layout.getAlignment())) < in computeVolatileBitfields() 773 if (Member->Offset % getAlignment(Member->Data)) in determinePacked() 776 NVAlignment = std::max(NVAlignment, getAlignment(Member->Data)); in determinePacked() 777 Alignment = std::max(Alignment, getAlignment(Member->Data)); in determinePacked() 805 Size.alignTo(Packed ? CharUnits::One() : getAlignment(Member->Data))) in insertPadding()
|
| H A D | CGNonTrivialStruct.cpp | 404 StartAddrs[I].getAlignment().alignmentAtOffset(EltSize)); in visitArray() 493 Alignments[I] = Addrs[I].getAlignment(); in callFunc() 855 GenDefaultInitializeFuncName GenName(DstPtr.getAlignment(), getContext()); in callCStructDefaultConstructor() 879 GenDestructorFuncName GenName("__destructor_", DstPtr.getAlignment(), in callCStructDestructor() 891 SrcPtr.getAlignment(), getContext()); in callCStructCopyConstructor() 904 GenBinaryFuncName<false> GenName("__copy_assignment_", DstPtr.getAlignment(), in callCStructCopyAssignmentOperator() 905 SrcPtr.getAlignment(), getContext()); in callCStructCopyAssignmentOperator() 915 GenBinaryFuncName<true> GenName("__move_constructor_", DstPtr.getAlignment(), in callCStructMoveConstructor() 916 SrcPtr.getAlignment(), getContext()); in callCStructMoveConstructor() 929 GenBinaryFuncName<true> GenName("__move_assignment_", DstPtr.getAlignment(), in callCStructMoveAssignmentOperator() [all …]
|
| H A D | CGAtomic.cpp | 71 if (lvalue.getAlignment().isZero()) in AtomicInfo() 79 auto Offset = OrigBFI.Offset % C.toBits(lvalue.getAlignment()); in AtomicInfo() 82 .alignTo(lvalue.getAlignment())); in AtomicInfo() 86 lvalue.getAlignment(); in AtomicInfo() 108 AtomicAlign = ValueAlign = lvalue.getAlignment(); in AtomicInfo() 114 AtomicAlign = ValueAlign = lvalue.getAlignment(); in AtomicInfo() 125 AtomicAlign = ValueAlign = lvalue.getAlignment(); in AtomicInfo() 129 AtomicSizeInBits, C.toBits(lvalue.getAlignment())); in AtomicInfo() 370 LVal.getAlignment().getAsAlign()); in emitMemSetZeroIfNecessary() 830 bool Misaligned = (Ptr.getAlignment() % TInfo.Width) != 0; in EmitAtomicExpr() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCBranchSelector.cpp | 87 const Align Alignment = MBB.getAlignment(); in GetAlignmentAdjustment() 91 const Align ParentAlign = MBB.getParent()->getAlignment(); in GetAlignmentAdjustment() 213 MaxAlign = std::max(MaxAlign, Src->getAlignment()); in computeBranchSize() 219 MaxAlign = std::max(MaxAlign, Fn.getBlockNumbered(i)->getAlignment()); in computeBranchSize() 230 MaxAlign = std::max(MaxAlign, Dest->getAlignment()); in computeBranchSize() 233 MaxAlign = std::max(MaxAlign, Fn.getBlockNumbered(i)->getAlignment()); in computeBranchSize()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | OffloadBinary.cpp | 31 if (!isAddrAligned(Align(getAlignment()), Buf.getBufferStart())) in create() 71 getAlignment()); in write() 78 BinaryDataSize + OffloadingData.Image->getBufferSize(), getAlignment()); in write()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | JITLink.cpp | 96 << ", align = " << B.getAlignment() in operator <<() 165 B.getAlignment(), B.getAlignmentOffset()) in splitBlock() 168 B.getAddress(), B.getAlignment(), B.getAlignmentOffset()); in splitBlock() 174 B.getAlignment()); in splitBlock() 267 << ", align = " << B->getAlignment() in dump()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZLongBranch.cpp | 294 BlockPosition Position(Log2(MF->getAlignment())); in initMBBInfo() 300 Block.Alignment = MBB->getAlignment(); in initMBBInfo() 358 BlockPosition Position(Log2(MF->getAlignment())); in setWorstCaseAddresses() 459 BlockPosition Position(Log2(MF->getAlignment())); in relaxBranches()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonFixupHwLoops.cpp | 117 if (MBB.getAlignment() != Align(1)) { in fixupLoopInstrs() 121 InstOffset = alignTo(InstOffset, MBB.getAlignment()); in fixupLoopInstrs()
|
| H A D | HexagonBranchRelaxation.cpp | 109 if (B.getAlignment() != Align(1)) { in computeOffset() 113 InstOffset = alignTo(InstOffset, B.getAlignment()); in computeOffset()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | DebuggerSupportPlugin.cpp | 172 FB.getAlignment(), 0); in startSynthesis() 212 if (FirstBlock.getAlignment() > std::numeric_limits<uint32_t>::max()) in startSynthesis() 217 SI.Alignment = FirstBlock.getAlignment(); in startSynthesis() 344 SecCmd.align = R.getFirstBlock()->getAlignment(); in completeSynthesisAndRegister()
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | ObjectFile.h | 103 uint64_t getAlignment() const; 196 uint32_t getAlignment() const; 411 inline uint32_t SymbolRef::getAlignment() const { in getAlignment() function 480 inline uint64_t SectionRef::getAlignment() const { in getAlignment() function
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 747 Align DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const { in getAlignment() function in DataLayout 759 return getAlignment(cast<ArrayType>(Ty)->getElementType(), abi_or_pref); in getAlignment() 773 return std::max(Align, Layout->getAlignment()); in getAlignment() 830 return getAlignment(Ty, true); in getABITypeAlign() 839 return getAlignment(Ty, false); in getPrefTypeAlign()
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | BinarySection.h | 147 Size(Section.getSize()), Alignment(Section.getAlignment()), in BinarySection() 155 Size(Section.getSize()), Alignment(Section.getAlignment()), in BinarySection() 227 uint64_t getAlignment() const { return Alignment; } in getAlignment() function
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCSectionXCOFF.cpp | 23 OS << "\t.csect " << QualName->getName() << "," << Log2_32(getAlignment()) in printCsectDirective()
|
| H A D | MCWinCOFFStreamer.cpp | 193 if (SXData->getAlignment() < 4) in emitCOFFSafeSEH() 210 if (Sec->getAlignment() < 4) in emitCOFFSymbolIndex()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | Target.h | 36 unsigned getAlignment() const { return alignment; } in getAlignment() function
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 92 assert(llvm::isPowerOf2_64(RL.getAlignment().getQuantity())); in visitRecord() 305 CharUnits NewSize = NewOffset.alignTo(RL.getAlignment()); in calculateOptimalPad()
|
| /llvm-project-15.0.7/llvm/tools/llvm-objdump/ |
| H A D | OffloadDump.cpp | 85 if (!isAddrAligned(Align(OffloadBinary::getAlignment()), in dumpOffloadBinary()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 778 F->setAlignment(MaybeAlign(std::max(F->getAlignment(), G->getAlignment()))); in writeAlias() 825 MaybeAlign MaxAlignment(std::max(G->getAlignment(), NewF->getAlignment())); in mergeTwoFunctions()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | GlobalObject.h | 70 uint64_t getAlignment() const { in getAlignment() function
|
| /llvm-project-15.0.7/llvm/unittests/Object/ |
| H A D | OffloadingTest.cpp | 65 EXPECT_TRUE(Binary.getSize() % OffloadBinary::getAlignment() == 0); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyld.cpp | 290 uint32_t Align = I->getAlignment(); in loadObjectImpl() 557 uint64_t Alignment64 = Section.getAlignment(); in computeTotalAllocSize() 622 uint32_t Align = I->getAlignment(); in computeTotalAllocSize() 698 uint64_t Alignment64 = Section.getAlignment(); in computeSectionStubBufSize() 768 uint32_t Alignment = Sym.getAlignment(); in emitCommonSymbols() 804 uint64_t Alignment64 = Section.getAlignment(); in emitSection()
|