| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGBuilder.h | 70 Addr.getAlignment().getAsAlign(), Name); 76 Addr.getAlignment().getAsAlign(), Name); in CreateLoad() 81 Addr.getAlignment().getAsAlign(), IsVolatile, 98 Addr.getAlignment().getAsAlign(), IsVolatile); 154 Addr.getAlignment()); 161 Addr.getAlignment()); 177 return Address(Ptr, Addr.getAlignment()); 197 Addr.getAlignment().alignmentAtOffset(Offset)); 218 Addr.getAlignment().alignmentAtOffset(Index * EltSize)); 234 Addr.getAlignment().alignmentAtOffset(Index * EltSize)); [all …]
|
| H A D | CGValue.h | 112 auto align = static_cast<uintptr_t>(addr.getAlignment().getQuantity()); 318 CharUnits getAlignment() const { return CharUnits::fromQuantity(Alignment); } in getAlignment() function 330 return Address(getPointer(CGF), getAlignment()); in getAddress() 335 Alignment = address.getAlignment().getQuantity(); in setAddress() 340 return Address(getVectorPointer(), getAlignment()); in getVectorAddress() 352 return Address(getMatrixPointer(), getAlignment()); in getMatrixAddress() 365 return Address(getExtVectorPointer(), getAlignment()); in getExtVectorAddress() 378 return Address(getBitFieldPointer(), getAlignment()); in getBitFieldAddress() 398 R.Initialize(type, qs, address.getAlignment(), BaseInfo, TBAAInfo); in MakeAddr() 409 R.Initialize(type, type.getQualifiers(), vecAddress.getAlignment(), in MakeVectorElt() [all …]
|
| H A D | Address.h | 66 CharUnits getAlignment() const { in getAlignment() function 89 getAlignment()); in getBitCast() 101 addr.getAlignment()); in castImpl()
|
| 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 PHIs[I], StartAddrs[I].getAlignment().alignmentAtOffset(EltSize)); in visitArray() 497 Alignments[I] = Addrs[I].getAlignment(); in callFunc() 858 GenDefaultInitializeFuncName GenName(DstPtr.getAlignment(), getContext()); in callCStructDefaultConstructor() 882 GenDestructorFuncName GenName("__destructor_", DstPtr.getAlignment(), in callCStructDestructor() 893 GenBinaryFuncName<false> GenName("__copy_constructor_", DstPtr.getAlignment(), in callCStructCopyConstructor() 894 SrcPtr.getAlignment(), getContext()); in callCStructCopyConstructor() 907 GenBinaryFuncName<false> GenName("__copy_assignment_", DstPtr.getAlignment(), in callCStructCopyAssignmentOperator() 908 SrcPtr.getAlignment(), getContext()); in callCStructCopyAssignmentOperator() 918 GenBinaryFuncName<true> GenName("__move_constructor_", DstPtr.getAlignment(), in callCStructMoveConstructor() 919 SrcPtr.getAlignment(), getContext()); in callCStructMoveConstructor() [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() 85 (C.toCharUnitsFromBits(OrigBFI.Offset) / lvalue.getAlignment()) * in AtomicInfo() 86 lvalue.getAlignment(); in AtomicInfo() 97 LVal = LValue::MakeBitfield(Address(Addr, lvalue.getAlignment()), in AtomicInfo() 109 AtomicAlign = ValueAlign = lvalue.getAlignment(); in AtomicInfo() 115 AtomicAlign = ValueAlign = lvalue.getAlignment(); in AtomicInfo() 126 AtomicAlign = ValueAlign = lvalue.getAlignment(); in AtomicInfo() 130 AtomicSizeInBits, C.toBits(lvalue.getAlignment())); in AtomicInfo() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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() 219 MaxAlign = std::max(MaxAlign, Src->getAlignment()); in computeBranchSize() 225 MaxAlign = std::max(MaxAlign, Fn.getBlockNumbered(i)->getAlignment()); in computeBranchSize() 236 MaxAlign = std::max(MaxAlign, Dest->getAlignment()); in computeBranchSize() 239 MaxAlign = std::max(MaxAlign, Fn.getBlockNumbered(i)->getAlignment()); in computeBranchSize()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | JITLink.cpp | 98 << ", align = " << B.getAlignment() in operator <<() 169 B.getAlignment(), B.getAlignmentOffset()) in splitBlock() 172 B.getAddress(), B.getAlignment(), B.getAlignmentOffset()); in splitBlock() 178 B.getAlignment()); in splitBlock() 266 << ", align = " << B->getAlignment() in dump()
|
| H A D | JITLinkGeneric.h | 87 uint64_t Delta = (B.getAlignmentOffset() - Addr) % B.getAlignment(); in alignToBlock() 94 uint64_t Delta = (B.getAlignmentOffset() - PAddr) % B.getAlignment(); in alignToBlock()
|
| H A D | JITLinkGeneric.cpp | 253 SegAlign = std::max(SegAlign, B->getAlignment()); in allocateSegments() 262 SegAlign = std::max(SegAlign, B->getAlignment()); in allocateSegments() 383 << " to meet block alignment " << B->getAlignment() in copyBlockContentToWorkingMemory()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
| H A D | SystemZLongBranch.cpp | 278 BlockPosition Position(Log2(MF->getAlignment())); in initMBBInfo() 284 Block.Alignment = MBB->getAlignment(); in initMBBInfo() 342 BlockPosition Position(Log2(MF->getAlignment())); in setWorstCaseAddresses() 443 BlockPosition Position(Log2(MF->getAlignment())); in relaxBranches()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | MemDerefPrinter.cpp | 63 PO, LI->getType(), MaybeAlign(LI->getAlignment()), DL)) in runOnFunction() 98 PO, LI->getType(), MaybeAlign(LI->getAlignment()), DL)) in run()
|
| /netbsd-src/external/apache2/llvm/dist/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 | 108 if (B.getAlignment() != Align(1)) { in computeOffset() 112 InstOffset = alignTo(InstOffset, B.getAlignment()); in computeOffset()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
| H A D | Instruction.cpp | 412 (AI->getAlignment() == cast<AllocaInst>(I2)->getAlignment() || in haveSameSpecialState() 416 (LI->getAlignment() == cast<LoadInst>(I2)->getAlignment() || in haveSameSpecialState() 422 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() || in haveSameSpecialState()
|
| H A D | Attributes.cpp | 328 MaybeAlign Attribute::getAlignment() const { in getAlignment() function in Attribute 814 MaybeAlign AttributeSet::getAlignment() const { in getAlignment() function in AttributeSet 815 return SetNode ? SetNode->getAlignment() : None; in getAlignment() 968 assert(B.getAlignment() && "Alignment must be set"); in get() 969 Attr = Attribute::getWithAlignment(C, *B.getAlignment()); in get() 1037 MaybeAlign AttributeSetNode::getAlignment() const { in getAlignment() function in AttributeSetNode 1039 return A->getAlignment(); in getAlignment() 1427 const MaybeAlign OldAlign = getAttributes(Index).getAlignment(); in addAttributes() 1428 const MaybeAlign NewAlign = B.getAlignment(); in addAttributes() 1608 return getAttributes(ReturnIndex).getAlignment(); in getRetAlignment() [all …]
|
| H A D | DataLayout.cpp | 739 Align DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const { in getAlignment() function in DataLayout 751 return getAlignment(cast<ArrayType>(Ty)->getElementType(), abi_or_pref); in getAlignment() 765 return std::max(Align, Layout->getAlignment()); in getAlignment() 826 return getAlignment(Ty, true); in getABITypeAlign() 835 return getAlignment(Ty, false); in getPrefTypeAlign()
|
| H A D | Globals.cpp | 123 assert(MaybeAlign(getAlignment()) == Align && in setAlignment() 129 setAlignment(MaybeAlign(Src->getAlignment())); in copyAttributesFrom() 252 if (hasSection() && getAlignment() > 0) in canIncreaseAlignment()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Object/ |
| H A D | ObjectFile.h | 103 uint64_t getAlignment() const; 193 uint32_t getAlignment() const; 398 inline uint32_t SymbolRef::getAlignment() const { in getAlignment() function 467 inline uint64_t SectionRef::getAlignment() const { in getAlignment() function
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | FunctionComparator.cpp | 559 return cmpNumbers(AI->getAlignment(), cast<AllocaInst>(R)->getAlignment()); in cmpOperations() 565 cmpNumbers(LI->getAlignment(), cast<LoadInst>(R)->getAlignment())) in cmpOperations() 582 cmpNumbers(SI->getAlignment(), cast<StoreInst>(R)->getAlignment())) in cmpOperations()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 445 if (LD->getAlignment() == 2) { in LowerLOAD() 500 if (ST->getAlignment() == 2) { in LowerSTORE() 944 if (N->getAlignment() < 4) in LowerATOMIC_LOAD() 948 N->getAlignment(), N->getMemOperand()->getFlags(), in LowerATOMIC_LOAD() 952 if (N->getAlignment() < 2) in LowerATOMIC_LOAD() 956 N->getAlignment(), N->getMemOperand()->getFlags(), in LowerATOMIC_LOAD() 962 N->getAlignment(), N->getMemOperand()->getFlags(), in LowerATOMIC_LOAD() 975 if (N->getAlignment() < 4) in LowerATOMIC_STORE() 978 N->getPointerInfo(), N->getAlignment(), in LowerATOMIC_STORE() 982 if (N->getAlignment() < 2) in LowerATOMIC_STORE() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 92 assert(llvm::isPowerOf2_64(RL.getAlignment().getQuantity())); in visitRecord() 300 CharUnits NewSize = NewOffset.alignTo(RL.getAlignment()); in calculateOptimalPad()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.h | 46 uint64_t getAlignment() const { return Alignment; } in getAlignment() function
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/ |
| H A D | MCSectionXCOFF.cpp | 21 OS << "\t.csect " << QualName->getName() << "," << Log2_32(getAlignment()) in printCsectDirective()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 771 F->setAlignment(MaybeAlign(std::max(F->getAlignment(), G->getAlignment()))); in writeAlias() 818 MaybeAlign MaxAlignment(std::max(G->getAlignment(), NewF->getAlignment())); in mergeTwoFunctions()
|