Home
last modified time | relevance | path

Searched refs:StoreInst (Results 1 – 25 of 247) sorted by relevance

12345678910

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMergedLoadStoreMotion.cpp114 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
115 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
118 bool canSinkStoresAndGEPs(StoreInst *S0, StoreInst *S1) const;
119 void sinkStoresAndGEPs(BasicBlock *BB, StoreInst *SinkCand,
120 StoreInst *ElseInst);
188 auto *Store1 = dyn_cast<StoreInst>(&Inst); in canSinkFromBlock()
212 StoreInst *S1) { in getPHIOperand()
247 StoreInst *S1) { in sinkStoresAndGEPs()
270 StoreInst *SNew = cast<StoreInst>(S0->clone()); in sinkStoresAndGEPs()
329 auto *S0 = dyn_cast<StoreInst>(I); in mergeStores()
[all …]
H A DLowerAtomicPass.cpp35 static bool LowerStoreInst(StoreInst *SI) { in LowerStoreInst()
52 } else if (StoreInst *SI = dyn_cast<StoreInst>(&Inst)) { in runOnBasicBlock()
H A DAlignmentFromAssumptions.cpp225 } else if (StoreInst *SI = dyn_cast<StoreInst>(J)) { in processAssumption()
270 StoreInst *SI = dyn_cast<StoreInst>(K); in processAssumption()
H A DLoopDataPrefetch.cpp258 Writes = isa<StoreInst>(I); in addInstruction()
268 if (isa<StoreInst>(I) && PtrDiff == 0) in addInstruction()
334 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(&I)) { in runOnLoop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86AvoidStoreForwardingBlocks.cpp386 MachineOperand &StoreBase = getBaseOperand(StoreInst); in buildCopy()
408 MachineInstr *StInst = StoreInst; in buildCopy()
441 StoreInst, getYMMtoXMMStoreOpcode(StoreInst->getOpcode()), in buildCopies()
495 MachineOperand &StoreBase = getBaseOperand(StoreInst); in updateKillStatus()
511 MachineInstr *StInst = StoreInst; in updateKillStatus()
563 MachineInstr *LoadInst, MachineInstr *StoreInst, in breakBlockedCopies() argument
566 int64_t StDispImm = getDispOperand(StoreInst).getImm(); in breakBlockedCopies()
709 MachineInstr *StoreInst = LoadStoreInstPair.second; in runOnMachineFunction() local
712 LLVM_DEBUG(StoreInst->dump()); in runOnMachineFunction()
716 updateKillStatus(LoadInst, StoreInst); in runOnMachineFunction()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DPromoteMemoryToRegister.cpp72 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in isAllocaPromotable()
145 updateForDeletedStore(StoreInst *ToDelete, DIBuilder &DIB, in updateForDeletedStore()
215 StoreInst *OnlyStore;
247 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in AnalyzeAlloca()
311 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
471 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeIntrinsicUsers()
513 StoreInst *OnlyStore = Info.OnlyStore; in rewriteSingleStoreAlloca()
633 if (StoreInst *SI = dyn_cast<StoreInst>(U)) in promoteSingleBlockAlloca()
684 StoreInst *SI = cast<StoreInst>(AI->user_back()); in promoteSingleBlockAlloca()
998 if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in ComputeLiveInBlocks()
[all …]
H A DSSAUpdater.cpp380 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter()
413 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in run()
426 if (isa<StoreInst>(I)) { in run()
465 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) { in run()
H A DDemoteRegToStack.cpp102 new StoreInst(&I, Slot, &*Handler->getFirstInsertionPt()); in DemoteRegToStack()
110 new StoreInst(&I, Slot, &*InsertPt); in DemoteRegToStack()
143 new StoreInst(P->getIncomingValue(i), Slot, in DemotePHIToStack()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DMemCpyOptimizer.h38 class StoreInst; variable
63 bool processStore(StoreInst *SI, BasicBlock::iterator &BBI);
64 bool processStoreOfLoad(StoreInst *SI, LoadInst *LI, const DataLayout &DL,
83 bool moveUp(StoreInst *SI, Instruction *P, const LoadInst *LI);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURewriteOutArguments.cpp131 if (auto *SI = dyn_cast<StoreInst>(U->getUser())) { in getStoredType()
136 U->getOperandNo() != StoreInst::getPointerOperandIndex()) in getStoredType()
238 SmallVector<std::pair<ReturnInst *, StoreInst *>, 4> ReplaceableStores; in runOnFunction()
259 StoreInst *SI = nullptr; in runOnFunction()
261 SI = dyn_cast<StoreInst>(Q.getInst()); in runOnFunction()
275 for (std::pair<ReturnInst *, StoreInst *> Store : ReplaceableStores) { in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp78 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) { in runOnFunction()
105 auto *SI = cast<StoreInst>(*LI->user_begin()); in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DGCRootLowering.cpp146 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
169 if (StoreInst *SI = dyn_cast<StoreInst>(IP)) in InsertRootInitializers()
179 new StoreInst( in InsertRootInitializers()
216 Value *St = new StoreInst(CI->getArgOperand(0), in DoLowering()
H A DInterleavedAccessPass.cpp107 bool lowerInterleavedStore(StoreInst *SI,
478 StoreInst *SI, SmallVector<Instruction *, 32> &DeadInsts) { in lowerInterleavedStore()
527 StoreInst *SI = dyn_cast<StoreInst>(*(II->users().begin())); in lowerInterleaveIntrinsic()
553 if (auto *SI = dyn_cast<StoreInst>(&I)) in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp419 const bool IsWrite = isa<StoreInst>(*I); in chooseInstructionsToInstrument()
420 Value *Addr = IsWrite ? cast<StoreInst>(I)->getPointerOperand() in chooseInstructionsToInstrument()
434 cast<StoreInst>(WI.Inst)->isVolatile()); in chooseInstructionsToInstrument()
475 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in isTsanAtomic()
525 else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst)) in sanitizeFunction()
590 const bool IsWrite = isa<StoreInst>(*II.Inst); in instrumentLoadOrStore()
591 Value *Addr = IsWrite ? cast<StoreInst>(II.Inst)->getPointerOperand() in instrumentLoadOrStore()
606 Value *StoredValue = cast<StoreInst>(II.Inst)->getValueOperand(); in instrumentLoadOrStore()
626 const Align Alignment = IsWrite ? cast<StoreInst>(II.Inst)->getAlign() in instrumentLoadOrStore()
631 (IsWrite ? cast<StoreInst>(II.Inst)->isVolatile() in instrumentLoadOrStore()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp210 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupPointerRootUsers()
313 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
396 auto *SI = dyn_cast<StoreInst>(V); in collectSRATypes()
618 auto *SI = cast<StoreInst>(V); in SRAGlobal()
653 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
756 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
947 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in OptimizeGlobalAddressOfAllocation()
950 new StoreInst(ConstantInt::getBool( in OptimizeGlobalAddressOfAllocation()
1241 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in TryToShrinkGlobalToBoolean()
1271 StoreInst *NSI = in TryToShrinkGlobalToBoolean()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/
H A DSLPVectorizer.h43 class StoreInst; variable
58 using StoreList = SmallVector<StoreInst *, 8>;
159 bool vectorizeStores(ArrayRef<StoreInst *> Stores, slpvectorizer::BoUpSLP &R);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DVNCoercion.h26 class StoreInst; variable
55 StoreInst *DepSI, const DataLayout &DL);
H A DMemoryOpRemark.h31 class StoreInst; variable
65 void visitStore(const StoreInst &SI);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp579 static StoreInst *combineStoreToNewValue(InstCombinerImpl &IC, StoreInst &SI, in combineStoreToNewValue()
588 StoreInst *NewStore = in combineStoreToNewValue()
982 static bool canSimplifyNullStoreOrGEP(StoreInst &SI) { in canSimplifyNullStoreOrGEP()
1356 Instruction *InstCombinerImpl::visitStoreInst(StoreInst &SI) { in visitStoreInst()
1417 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst()
1489 bool InstCombinerImpl::mergeStoreIntoSuccessor(StoreInst &SI) { in mergeStoreIntoSuccessor()
1516 auto OtherStoreIsMergeable = [&](StoreInst *OtherStore) -> bool { in mergeStoreIntoSuccessor()
1529 StoreInst *OtherStore = nullptr; in mergeStoreIntoSuccessor()
1540 OtherStore = dyn_cast<StoreInst>(BBI); in mergeStoreIntoSuccessor()
1555 OtherStore = dyn_cast<StoreInst>(BBI); in mergeStoreIntoSuccessor()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFPreserveStaticOffset.cpp207 template <class T = std::disjunction<LoadInst, StoreInst>>
244 StoreInst *Store) { in makeGEPAndStore()
289 template <class T = std::disjunction<LoadInst, StoreInst>>
313 std::pair<GetElementPtrInst *, StoreInst *>
316 auto *Store = new StoreInst(Call->getOperand(0), GEP, in reconstructStore()
427 if (auto *Store = dyn_cast<StoreInst>(LoadOrStoreTemplate)) { in tryToReplaceWithGEPBuiltin()
438 if (auto *S = dyn_cast<StoreInst>(U)) in isPointerOperand()
523 if (isa<LoadInst>(Insn) || isa<StoreInst>(Insn)) { in rewriteAccessChain()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp194 static StoreInst *findSafeStoreForStoreStrongContraction(LoadInst *Load, in findSafeStoreForStoreStrongContraction()
198 StoreInst *Store = nullptr; in findSafeStoreForStoreStrongContraction()
256 Store = dyn_cast<StoreInst>(Inst); in findSafeStoreForStoreStrongContraction()
284 findRetainForStoreStrongContraction(Value *New, StoreInst *Store, in findRetainForStoreStrongContraction()
350 StoreInst *Store = in tryToContractReleaseIntoStoreStrong()
487 new StoreInst(Null, CI->getArgOperand(0), CI); in tryToPeepholeInstruction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp711 if (const StoreInst *SI = dyn_cast<StoreInst>(I1)) in hasSameSpecialState()
712 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() && in hasSameSpecialState()
713 (SI->getAlign() == cast<StoreInst>(I2)->getAlign() || in hasSameSpecialState()
715 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() && in hasSameSpecialState()
716 SI->getSyncScopeID() == cast<StoreInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
853 return !cast<StoreInst>(this)->isUnordered(); in mayReadFromMemory()
888 return cast<StoreInst>(this)->getOrdering() != AtomicOrdering::NotAtomic; in isAtomic()
923 return cast<StoreInst>(this)->isVolatile(); in isVolatile()
949 return cast<StoreInst>(this)->getValueOperand()->getType(); in getAccessType()
1042 if (auto *SI = dyn_cast<StoreInst>(this)) in willReturn()
H A DInstructions.cpp1459 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore) in StoreInst() function in StoreInst
1462 StoreInst::StoreInst(Value *val, Value *addr, BasicBlock *InsertAtEnd) in StoreInst() function in StoreInst
1468 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, in StoreInst() function in StoreInst
1474 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, in StoreInst() function in StoreInst
1480 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, in StoreInst() function in StoreInst
1486 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, Align Align, in StoreInst() function in StoreInst
1491 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, Align Align, in StoreInst() function in StoreInst
1496 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, Align Align, in StoreInst() function in StoreInst
1501 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, Align Align, in StoreInst() function in StoreInst
1515 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, Align Align, in StoreInst() function in StoreInst
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp97 Instruction *visitStoreInst(StoreInst &I);
116 return isa<StoreInst>(I) || isa<LoadInst>(I) || isa<InsertValueInst>(I) || in isMemInstrToReplace()
285 if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in insertPtrCastInstr()
458 Instruction *SPIRVEmitIntrinsics::visitStoreInst(StoreInst &I) { in visitStoreInst()
624 StoreInst *SI = dyn_cast<StoreInst>(&I); in runOnFunction()
650 if (!I->getType()->isVoidTy() || isa<StoreInst>(I)) in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DAliasAnalysisEvaluator.cpp115 } else if (auto *SI = dyn_cast<StoreInst>(&Inst)) { in runInternal()
161 MemoryLocation::get(cast<StoreInst>(Store))); in runInternal()
187 AliasResult AR = AA.alias(MemoryLocation::get(cast<StoreInst>(*I1)), in runInternal()
188 MemoryLocation::get(cast<StoreInst>(*I2))); in runInternal()

12345678910