Home
last modified time | relevance | path

Searched refs:getAlign (Results 1 – 25 of 204) sorted by relevance

123456789

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DConstantMerge.cpp85 static Align getAlign(GlobalVariable *GV) { in getAlign() function
86 return GV->getAlign().value_or( in getAlign()
121 if (Old->getAlign() || New->getAlign()) in replace()
122 New->setAlignment(std::max(getAlign(Old), getAlign(New))); in replace()
H A DArgumentPromotion.cpp507 Off, ArgPart{Ty, I->getAlign(), GuaranteedToExecute ? I : nullptr}); in findArgParts()
535 (OffsetNotSeenBefore || Part.Alignment < I->getAlign())) { in findArgParts()
541 if (!isAligned(I->getAlign(), Off)) in findArgParts()
545 NeededAlign = std::max(NeededAlign, I->getAlign()); in findArgParts()
548 Part.Alignment = std::max(Part.Alignment, I->getAlign()); in findArgParts()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.h63 bool getAlign(const Function &, unsigned index, unsigned &);
64 bool getAlign(const CallInst &, unsigned index, unsigned &);
H A DNVPTXLowerAggrCopies.cpp115 /* SrcAlign */ LI->getAlign(), in runOnFunction()
116 /* DestAlign */ SI->getAlign(), in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp193 return isDereferenceableAndAlignedPointer(V, AI->getAlign(), in isDereferenceableForAllocaSize()
215 New->setAlignment(AI.getAlign()); in simplifyAllocaArraySize()
496 const Align MaxAlign = std::max(EntryAI->getAlign(), AI.getAlign()); in visitAllocaInst()
512 Align AllocaAlign = AI.getAlign(); in visitAllocaInst()
729 const auto Align = LI.getAlign(); in unpackLoadToAggregate()
773 const auto Align = LI.getAlign(); in unpackLoadToAggregate()
1020 if (KnownAlign > LI.getAlign()) in visitLoadInst()
1070 Align Alignment = LI.getAlign(); in visitLoadInst()
1251 const auto Align = SI.getAlign(); in unpackStoreToAggregate()
1295 const auto Align = SI.getAlign(); in unpackStoreToAggregate()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAlignment.cpp30 Align OldAlign = LI->getAlign(); in tryToImproveAlign()
39 Align OldAlign = SI->getAlign(); in tryToImproveAlign()
H A DMemCpyOptimizer.cpp181 SI->getPointerOperand(), SI->getAlign(), SI); in addStore()
686 SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad()
687 LI->getPointerOperand(), LI->getAlign(), Size); in processStoreOfLoad()
690 SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad()
691 LI->getPointerOperand(), LI->getAlign(), Size); in processStoreOfLoad()
729 std::min(SI->getAlign(), LI->getAlign()), BAA, GetCall); in processStoreOfLoad()
811 SI->getAlign()); in processStore()
962 Align srcAlign = srcAlloca->getAlign(); in performCallSlotOptzn()
1612 std::max(SrcAlloca->getAlign(), DestAlloca->getAlign())); in performStackMoveOptzn()
1945 Align AllocaAlign = AI->getAlign(); in processImmutArgument()
H A DSROA.cpp1611 MaxAlign = std::max(MaxAlign, LI->getAlign()); in isSafePHIToSpeculate()
1662 Align Alignment = SomeLoad->getAlign(); in speculatePHINodeLoads()
1806 IRB.CreateAlignedLoad(LI.getType(), TV, LI.getAlign(), in speculateSelectInstLoads()
1809 IRB.CreateAlignedLoad(LI.getType(), FV, LI.getAlign(), in speculateSelectInstLoads()
1814 TL->setAlignment(LI.getAlign()); in speculateSelectInstLoads()
1815 FL->setAlignment(LI.getAlign()); in speculateSelectInstLoads()
2846 return commonAlignment(NewAI.getAlign(), in getSliceAlign()
2934 NewLI->setAlignment(LI.getAlign()); in visitLoadInst()
3126 NewSI->setAlignment(SI.getAlign()); in visitStoreInst()
3496 NewAI.getAlign(), "load"); in visitMemTransferInst()
[all …]
H A DGVNHoist.cpp963 std::min(ReplacementLoad->getAlign(), cast<LoadInst>(I)->getAlign())); in updateAlignment()
967 std::min(ReplacementStore->getAlign(), cast<StoreInst>(I)->getAlign())); in updateAlignment()
970 ReplacementAlloca->setAlignment(std::max(ReplacementAlloca->getAlign(), in updateAlignment()
971 cast<AllocaInst>(I)->getAlign())); in updateAlignment()
H A DAlignmentFromAssumptions.cpp221 if (NewAlignment > LI->getAlign()) { in processAssumption()
230 if (NewAlignment > SI->getAlign()) { in processAssumption()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMergeStringPool.cpp53 Align LHSAlign = LHS->getAlign().valueOrOne(); in operator ()()
54 Align RHSAlign = RHS->getAlign().valueOrOne(); in operator ()()
203 Align AlignOfGlobal = Global.getAlign().valueOrOne(); in collectCandidateConstants()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp177 Align Alignment = I->getAlign(); in atomicSizeSupported()
378 NewLI->setAlignment(LI->getAlign()); in convertAtomicLoadToIntegerType()
405 RMWI->getAlign(), RMWI->getOrdering()); in convertAtomicXchgToIntegerType()
423 LI, LI->getType(), LI->getPointerOperand(), LI->getAlign(), in tryExpandAtomicLoad()
481 Addr, DummyVal, DummyVal, LI->getAlign(), Order, in expandAtomicLoadToCmpXchg()
509 NewSI->setAlignment(SI->getAlign()); in convertAtomicStoreToIntegerType()
532 SI->getAlign(), RMWOrdering); in expandAtomicStore()
582 AI->getAlign(), AI->getOrdering(), PerformOp); in tryExpandAtomicRMW()
1093 CI->getAlign(), TLI->getMinCmpXchgSizeInBits() / 8); in expandAtomicCmpXchgToMaskedIntrinsic()
1571 Builder, AI->getType(), AI->getPointerOperand(), AI->getAlign(), in expandAtomicRMWToCmpXchg()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Object/
H A DMachOUniversal.cpp179 if (A.getAlign() > MaxSectionAlignment) { in MachOUniversalBinary()
180 Err = malformedError("align (2^" + Twine(A.getAlign()) + in MachOUniversalBinary()
187 if(A.getOffset() % (1ull << A.getAlign()) != 0){ in MachOUniversalBinary()
191 ") not aligned on it's alignment (2^" + Twine(A.getAlign()) + ")"); in MachOUniversalBinary()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalObject.h72 MaybeAlign Align = getAlign(); in getAlignment()
80 MaybeAlign getAlign() const { in getAlign() function
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp1005 std::max(MaxDynamicAlignment, AMDGPU::getAlign(DL, GV)); in buildRepresentativeDynamicLDSInstance()
1278 Offset = alignTo(Offset, AMDGPU::getAlign(DL, KernelStruct)); in runOnModule()
1289 Offset = alignTo(Offset, AMDGPU::getAlign(DL, DynamicVariable)); in runOnModule()
1344 Align Alignment = AMDGPU::getAlign(DL, &GV); in superAlignLDSGlobals()
1361 if (Alignment != AMDGPU::getAlign(DL, &GV)) { in superAlignLDSGlobals()
1393 AMDGPU::getAlign(DL, GV)); in createLDSVariableReplacement()
1442 Align StructAlign = AMDGPU::getAlign(DL, LocalVars[0]); in createLDSVariableReplacement()
1543 LI->setAlignment(std::max(A, LI->getAlign())); in refineUsesAlignmentAndAA()
1548 SI->setAlignment(std::max(A, SI->getAlign())); in refineUsesAlignmentAndAA()
1555 AI->setAlignment(std::max(A, AI->getAlign())); in refineUsesAlignmentAndAA()
[all …]
H A DAMDGPULateCodeGenPrepare.cpp131 if (LI.getAlign() < DL->getABITypeAlign(Ty)) in canWidenScalarExtLoad()
143 if (LI.getAlign() >= 4) in visitLoadInst()
H A DAMDGPUMachineFunction.cpp102 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in allocateLDSGlobal()
208 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in setDynLDSAlign()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DGlobals.cpp125 assert(getAlign() == Align && "Alignment representation error!"); in setAlignment()
134 assert(getAlign() && *getAlign() == Align && in setAlignment()
140 setAlignment(Src->getAlign()); in copyAttributesFrom()
298 if (hasSection() && getAlign()) in canIncreaseAlignment()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineMemOperand.h253 Align getAlign() const;
345 LHS.getAlign() == RHS.getAlign() &&
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.h25 Align getAlign(DataLayout const &DL, const GlobalVariable *GV);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DMemDerefPrinter.cpp35 if (isDereferenceableAndAlignedPointer(PO, LI->getType(), LI->getAlign(), in run()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZConstantPoolValue.cpp33 Constants[I].getAlign() >= Alignment) { in getExistingMachineCPValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp181 const Align NewAlignment = std::max(Info.AI->getAlign(), Alignment); in alignAndPadAlloca()
202 NewAI->setAlignment(Info.AI->getAlign()); in alignAndPadAlloca()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblySetP2AlignOperands.cpp68 uint64_t P2Align = Log2((*MI.memoperands_begin())->getAlign()); in rewriteP2Align()
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCSectionXCOFF.cpp23 OS << "\t.csect " << QualName->getName() << "," << Log2(getAlign()) << '\n'; in printCsectDirective()

123456789