| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | ConstantMerge.cpp | 87 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 D | ArgumentPromotion.cpp | 509 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXUtilities.h | 61 bool getAlign(const Function &, unsigned index, unsigned &); 62 bool getAlign(const CallInst &, unsigned index, unsigned &);
|
| H A D | NVPTXLowerAggrCopies.cpp | 115 /* SrcAlign */ LI->getAlign(), in runOnFunction() 116 /* DestAlign */ SI->getAlign(), in runOnFunction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 186 return isDereferenceableAndAlignedPointer(V, AI->getAlign(), in isDereferenceableForAllocaSize() 208 New->setAlignment(AI.getAlign()); in simplifyAllocaArraySize() 365 LT->getAlign(), LT->getOrdering(), in replace() 480 const Align MaxAlign = std::max(EntryAI->getAlign(), AI.getAlign()); in visitAllocaInst() 498 Align AllocaAlign = AI.getAlign(); in visitAllocaInst() 566 NewTy, NewPtr, LI.getAlign(), LI.isVolatile(), LI.getName() + Suffix); in combineLoadToNewType() 587 SI.getAlign(), SI.isVolatile()); in combineStoreToNewValue() 745 const auto Align = LI.getAlign(); in unpackLoadToAggregate() 789 const auto Align = LI.getAlign(); in unpackLoadToAggregate() 1035 if (KnownAlign > LI.getAlign()) in visitLoadInst() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUMachineFunction.cpp | 62 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in allocateLDSGlobal() 148 Offset, DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType())); in calculateKnownAddressOfLDSGlobal() 222 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in setDynLDSAlign()
|
| H A D | AMDGPULowerModuleLDSPass.cpp | 977 Align Alignment = AMDGPU::getAlign(DL, &GV); in superAlignLDSGlobals() 994 if (Alignment != AMDGPU::getAlign(DL, &GV)) { in superAlignLDSGlobals() 1029 AMDGPU::getAlign(DL, GV)); in createLDSVariableReplacement() 1078 Align StructAlign = AMDGPU::getAlign(DL, LocalVars[0]); in createLDSVariableReplacement() 1149 commonAlignment(Replacement.SGV->getAlign().valueOrOne(), Offset); in replaceLDSVariablesWithStruct() 1183 LI->setAlignment(std::max(A, LI->getAlign())); in refineUsesAlignmentAndAA() 1188 SI->setAlignment(std::max(A, SI->getAlign())); in refineUsesAlignmentAndAA() 1195 AI->setAlignment(std::max(A, AI->getAlign())); in refineUsesAlignmentAndAA() 1200 AI->setAlignment(std::max(A, AI->getAlign())); in refineUsesAlignmentAndAA()
|
| H A D | AMDGPULateCodeGenPrepare.cpp | 122 if (LI.getAlign() < DL->getABITypeAlign(Ty)) in canWidenScalarExtLoad() 134 if (LI.getAlign() >= 4) in visitLoadInst()
|
| H A D | AMDGPUPromoteAlloca.cpp | 564 Builder.CreateAlignedLoad(VectorTy, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 579 Builder.CreateAlignedLoad(VectorTy, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 584 Builder.CreateAlignedStore(NewVecValue, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 607 Builder.CreateAlignedLoad(VectorTy, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 609 Builder.CreateAlignedStore(NewVecValue, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 852 DL.getValueOrABITypeAlignment(GV->getAlign(), GV->getValueType()); in hasSufficientLocalMem() 972 DL.getValueOrABITypeAlignment(I.getAlign(), I.getAllocatedType()); in handleAlloca() 1009 GV->setAlignment(I.getAlign()); in handleAlloca()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | MemDerefPrinter.cpp | 59 if (isDereferenceableAndAlignedPointer(PO, LI->getType(), LI->getAlign(), in runOnFunction() 94 if (isDereferenceableAndAlignedPointer(PO, LI->getType(), LI->getAlign(), in run()
|
| /openbsd-src/gnu/llvm/llvm/lib/Object/ |
| H A D | MachOUniversal.cpp | 179 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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | GlobalObject.h | 71 MaybeAlign Align = getAlign(); in getAlignment() 79 MaybeAlign getAlign() const { in getAlign() function
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | AtomicExpandPass.cpp | 177 Align Alignment = I->getAlign(); in atomicSizeSupported() 380 NewLI->setAlignment(LI->getAlign()); in convertAtomicLoadToIntegerType() 409 RMWI->getAlign(), RMWI->getOrdering()); in convertAtomicXchgToIntegerType() 427 LI, LI->getType(), LI->getPointerOperand(), LI->getAlign(), in tryExpandAtomicLoad() 485 Addr, DummyVal, DummyVal, LI->getAlign(), Order, in expandAtomicLoadToCmpXchg() 515 NewSI->setAlignment(SI->getAlign()); in convertAtomicStoreToIntegerType() 538 SI->getAlign(), RMWOrdering); in expandAtomicStore() 590 AI->getAlign(), AI->getOrdering(), PerformOp); in tryExpandAtomicRMW() 868 AI->getAlign(), TLI->getMinCmpXchgSizeInBits() / 8); in expandPartwordAtomicRMW() 913 AI->getAlign(), TLI->getMinCmpXchgSizeInBits() / 8); in widenPartwordAtomicRMW() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | MachineMemOperand.h | 250 Align getAlign() const; 346 LHS.getAlign() == RHS.getAlign() &&
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceGlobalObjects.cpp | 17 return GO.getAlign().has_value(); in shouldReduceAlign()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/Utils/ |
| H A D | AMDGPUMemoryUtils.h | 29 Align getAlign(DataLayout const &DL, const GlobalVariable *GV);
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Instruction.cpp | 492 (AI->getAlign() == cast<AllocaInst>(I2)->getAlign() || in haveSameSpecialState() 496 (LI->getAlign() == cast<LoadInst>(I2)->getAlign() || in haveSameSpecialState() 502 (SI->getAlign() == cast<StoreInst>(I2)->getAlign() || in haveSameSpecialState()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 180 SI->getPointerOperand(), SI->getAlign(), SI); in addStore() 733 SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad() 734 LI->getPointerOperand(), LI->getAlign(), Size); in processStoreOfLoad() 737 SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad() 738 LI->getPointerOperand(), LI->getAlign(), Size); in processStoreOfLoad() 776 std::min(SI->getAlign(), LI->getAlign()), BAA, GetCall); in processStoreOfLoad() 841 SI->getAlign()); in processStore() 987 Align srcAlign = srcAlloca->getAlign(); in performCallSlotOptzn()
|
| H A D | SROA.cpp | 1328 MaxAlign = std::max(MaxAlign, LI->getAlign()); in isSafePHIToSpeculate() 1379 Align Alignment = SomeLoad->getAlign(); in speculatePHINodeLoads() 1455 if (isSafeToLoadUnconditionally(Value, LI.getType(), LI.getAlign(), DL, in isSafeLoadOfSelectToSpeculate() 1530 IRB.CreateAlignedLoad(LI.getType(), TV, LI.getAlign(), in speculateSelectInstLoads() 1533 IRB.CreateAlignedLoad(LI.getType(), FV, LI.getAlign(), in speculateSelectInstLoads() 1538 TL->setAlignment(LI.getAlign()); in speculateSelectInstLoads() 1539 FL->setAlignment(LI.getAlign()); in speculateSelectInstLoads() 2710 return commonAlignment(NewAI.getAlign(), in getSliceAlign() 2735 NewAI.getAlign(), "load"); in rewriteVectorizedLoadInst() 2746 NewAI.getAlign(), "load"); in rewriteIntegerLoad() [all …]
|
| H A D | GVNHoist.cpp | 994 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
| H A D | SystemZConstantPoolValue.cpp | 33 Constants[I].getAlign() >= Alignment) { in getExistingMachineCPValue()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | MemoryTaggingSupport.cpp | 181 const Align NewAlignment = std::max(Info.AI->getAlign(), Alignment); in alignAndPadAlloca() 202 NewAI->setAlignment(Info.AI->getAlign()); in alignAndPadAlloca()
|
| H A D | FunctionComparator.cpp | 576 return cmpAligns(AI->getAlign(), cast<AllocaInst>(R)->getAlign()); in cmpOperations() 581 if (int Res = cmpAligns(LI->getAlign(), cast<LoadInst>(R)->getAlign())) in cmpOperations() 597 if (int Res = cmpAligns(SI->getAlign(), cast<StoreInst>(R)->getAlign())) in cmpOperations()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 328 CP->getAlign(), CP->getOffset()); in LowerConstantPool() 330 Res = DAG.getTargetConstantPool(CP->getConstVal(), PtrVT, CP->getAlign(), in LowerConstantPool() 442 if (LD->getAlign() == Align(2)) { in LowerLOAD() 497 if (ST->getAlign() == Align(2)) { in LowerSTORE() 941 if (N->getAlign() < Align(4)) in LowerATOMIC_LOAD() 945 N->getAlign(), N->getMemOperand()->getFlags(), in LowerATOMIC_LOAD() 949 if (N->getAlign() < Align(2)) in LowerATOMIC_LOAD() 953 N->getAlign(), N->getMemOperand()->getFlags(), in LowerATOMIC_LOAD() 959 N->getAlign(), N->getMemOperand()->getFlags(), in LowerATOMIC_LOAD() 972 if (N->getAlign() < Align(4)) in LowerATOMIC_STORE() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblySetP2AlignOperands.cpp | 68 uint64_t P2Align = Log2((*MI.memoperands_begin())->getAlign()); in rewriteP2Align()
|