Home
last modified time | relevance | path

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

12345678

/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DConstantMerge.cpp87 static Align getAlign(GlobalVariable *GV) { in getAlign() function
88 return GV->getAlign().value_or( in getAlign()
123 if (Old->getAlign() || New->getAlign()) in replace()
124 New->setAlignment(std::max(getAlign(Old), getAlign(New))); in replace()
H A DArgumentPromotion.cpp509 Off, ArgPart{Ty, I->getAlign(), GuaranteedToExecute ? I : nullptr}); in findArgParts()
537 (OffsetNotSeenBefore || Part.Alignment < I->getAlign())) { in findArgParts()
543 if (!isAligned(I->getAlign(), Off)) in findArgParts()
547 NeededAlign = std::max(NeededAlign, I->getAlign()); in findArgParts()
550 Part.Alignment = std::max(Part.Alignment, I->getAlign()); in findArgParts()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp271 Align Alignment = AMDGPU::getAlign(DL, &GV); in superAlignLDSGlobals()
288 if (Alignment != AMDGPU::getAlign(DL, &GV)) { in superAlignLDSGlobals()
313 AMDGPU::getAlign(DL, GV)); in createLDSVariableReplacement()
362 AMDGPU::getAlign(DL, LocalVars[0]); in createLDSVariableReplacement()
427 Align A = commonAlignment(SGV->getAlign().valueOrOne(), Offset); in replaceLDSVariablesWithStruct()
461 LI->setAlignment(std::max(A, LI->getAlign())); in refineUsesAlignmentAndAA()
466 SI->setAlignment(std::max(A, SI->getAlign())); in refineUsesAlignmentAndAA()
473 AI->setAlignment(std::max(A, AI->getAlign())); in refineUsesAlignmentAndAA()
478 AI->setAlignment(std::max(A, AI->getAlign())); in refineUsesAlignmentAndAA()
H A DAMDGPUMachineFunction.cpp58 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in allocateLDSGlobal()
125 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in setDynLDSAlign()
H A DAMDGPULateCodeGenPrepare.cpp122 if (LI.getAlign() < DL->getABITypeAlign(Ty)) in canWidenScalarExtLoad()
134 if (LI.getAlign() >= 4) in visitLoadInst()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.h59 bool getAlign(const Function &, unsigned index, unsigned &);
60 bool getAlign(const CallInst &, unsigned index, unsigned &);
H A DNVPTXLowerAggrCopies.cpp115 /* SrcAlign */ LI->getAlign(), in runOnFunction()
116 /* DestAlign */ SI->getAlign(), in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp185 New->setAlignment(AI.getAlign()); in simplifyAllocaArraySize()
388 const Align MaxAlign = std::max(EntryAI->getAlign(), AI.getAlign()); in visitAllocaInst()
406 Align AllocaAlign = AI.getAlign(); in visitAllocaInst()
495 SI.getAlign(), SI.isVolatile()); in combineStoreToNewValue()
652 const auto Align = LI.getAlign(); in unpackLoadToAggregate()
696 const auto Align = LI.getAlign(); in unpackLoadToAggregate()
939 if (KnownAlign > LI.getAlign()) in visitLoadInst()
995 Align Alignment = LI.getAlign(); in visitLoadInst()
1171 const auto Align = SI.getAlign(); in unpackStoreToAggregate()
1215 const auto Align = SI.getAlign(); in unpackStoreToAggregate()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemDerefPrinter.cpp59 if (isDereferenceableAndAlignedPointer(PO, LI->getType(), LI->getAlign(), in runOnFunction()
94 if (isDereferenceableAndAlignedPointer(PO, LI->getType(), LI->getAlign(), in run()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp166 Align Alignment = I->getAlign(); in atomicSizeSupported()
367 NewLI->setAlignment(LI->getAlign()); in convertAtomicLoadToIntegerType()
396 RMWI->getAlign(), RMWI->getOrdering()); in convertAtomicXchgToIntegerType()
414 LI, LI->getType(), LI->getPointerOperand(), LI->getAlign(), in tryExpandAtomicLoad()
472 Addr, DummyVal, DummyVal, LI->getAlign(), Order, in expandAtomicLoadToCmpXchg()
502 NewSI->setAlignment(SI->getAlign()); in convertAtomicStoreToIntegerType()
525 SI->getAlign(), RMWOrdering); in expandAtomicStore()
577 AI->getAlign(), AI->getOrdering(), PerformOp); in tryExpandAtomicRMW()
1054 CI->getAlign(), TLI->getMinCmpXchgSizeInBits() / 8); in expandAtomicCmpXchgToMaskedIntrinsic()
1529 Builder, AI->getType(), AI->getPointerOperand(), AI->getAlign(), in expandAtomicRMWToCmpXchg()
[all …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGlobalObject.h71 MaybeAlign Align = getAlign(); in getAlignment()
79 MaybeAlign getAlign() const { in getAlign() function
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineMemOperand.h250 Align getAlign() const;
346 LHS.getAlign() == RHS.getAlign() &&
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceGlobalObjects.cpp17 return GO.getAlign().has_value(); in shouldReduceAlign()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.h30 Align getAlign(DataLayout const &DL, const GlobalVariable *GV);
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp442 (AI->getAlign() == cast<AllocaInst>(I2)->getAlign() || in haveSameSpecialState()
446 (LI->getAlign() == cast<LoadInst>(I2)->getAlign() || in haveSameSpecialState()
452 (SI->getAlign() == cast<StoreInst>(I2)->getAlign() || in haveSameSpecialState()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp161 const Align NewAlignment = std::max(Info.AI->getAlign(), Alignment); in alignAndPadAlloca()
183 NewAI->setAlignment(Info.AI->getAlign()); in alignAndPadAlloca()
H A DFunctionComparator.cpp567 return cmpAligns(AI->getAlign(), cast<AllocaInst>(R)->getAlign()); in cmpOperations()
572 if (int Res = cmpAligns(LI->getAlign(), cast<LoadInst>(R)->getAlign())) in cmpOperations()
588 if (int Res = cmpAligns(SI->getAlign(), cast<StoreInst>(R)->getAlign())) in cmpOperations()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1238 MaxAlign = std::max(MaxAlign, LI->getAlign()); in isSafePHIToSpeculate()
1288 Align Alignment = SomeLoad->getAlign(); in speculatePHINodeLoads()
1363 LI->getAlign(), DL, LI)) in isSafeSelectToSpeculate()
1366 LI->getAlign(), DL, LI)) in isSafeSelectToSpeculate()
1406 TL->setAlignment(LI->getAlign()); in speculateSelectInstLoads()
1407 FL->setAlignment(LI->getAlign()); in speculateSelectInstLoads()
2426 return commonAlignment(NewAI.getAlign(), in getSliceAlign()
2514 NewLI->setAlignment(LI.getAlign()); in visitLoadInst()
2712 NewSI->setAlignment(SI.getAlign()); in visitStoreInst()
3038 NewAI.getAlign(), "load"); in visitMemTransferInst()
[all …]
H A DMemCpyOptimizer.cpp180 SI->getAlign(), SI); in addStore()
735 SI->getPointerOperand(), SI->getAlign(), in processStore()
736 LI->getPointerOperand(), LI->getAlign(), Size); in processStore()
739 SI->getPointerOperand(), SI->getAlign(), in processStore()
740 LI->getPointerOperand(), LI->getAlign(), Size); in processStore()
776 std::min(SI->getAlign(), LI->getAlign()), GetCall); in processStore()
815 SI->getAlign()); in processStore()
949 Align srcAlign = srcAlloca->getAlign(); in performCallSlotOptzn()
H A DGVNHoist.cpp994 std::min(ReplacementLoad->getAlign(), cast<LoadInst>(I)->getAlign())); in updateAlignment()
998 std::min(ReplacementStore->getAlign(), cast<StoreInst>(I)->getAlign())); in updateAlignment()
1001 ReplacementAlloca->setAlignment(std::max(ReplacementAlloca->getAlign(), in updateAlignment()
1002 cast<AllocaInst>(I)->getAlign())); in updateAlignment()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZConstantPoolValue.cpp33 Constants[I].getAlign() >= Alignment) { in getExistingMachineCPValue()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp329 CP->getAlign(), CP->getOffset()); in LowerConstantPool()
443 if (LD->getAlign() == Align(2)) { in LowerLOAD()
498 if (ST->getAlign() == Align(2)) { in LowerSTORE()
942 if (N->getAlign() < Align(4)) in LowerATOMIC_LOAD()
946 N->getAlign(), N->getMemOperand()->getFlags(), in LowerATOMIC_LOAD()
950 if (N->getAlign() < Align(2)) in LowerATOMIC_LOAD()
973 if (N->getAlign() < Align(4)) in LowerATOMIC_STORE()
976 N->getPointerInfo(), N->getAlign(), in LowerATOMIC_STORE()
980 if (N->getAlign() < Align(2)) in LowerATOMIC_STORE()
1792 Align Alignment = ST->getAlign(); in PerformDAGCombine()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblySetP2AlignOperands.cpp68 uint64_t P2Align = Log2((*MI.memoperands_begin())->getAlign()); in rewriteP2Align()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsPreLegalizerCombiner.cpp57 bool isUnaligned = MMO->getAlign() < MMO->getSize(); in combine()

12345678