Home
last modified time | relevance | path

Searched refs:SI (Results 51 – 75 of 477) sorted by relevance

12345678910>>...20

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMergedLoadStoreMotion.cpp114 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
305 succ_iterator SI = succ_begin(HeadBB); in mergeStores() local
306 assert(SI != succ_end(HeadBB) && "Diamond head cannot have zero successors"); in mergeStores()
307 BasicBlock *Pred0 = *SI; in mergeStores()
308 ++SI; in mergeStores()
309 assert(SI != succ_end(HeadBB) && "Diamond head cannot have single successor"); in mergeStores()
310 BasicBlock *Pred1 = *SI; in mergeStores()
H A DJumpThreading.cpp993 Condition = SI->getCondition(); in processBlock()
1110 if (tryToUnfoldSelect(SI, BB)) in processBlock()
2811 SI->eraseFromParent(); in unfoldSelectInstr()
2875 if (!SI || SI->getParent() != Pred || !SI->hasOneUse()) in tryToUnfoldSelect()
2943 if (SI->getParent() != BB) in tryToUnfoldSelectInCurrBB()
2950 SelectInst *SI = nullptr; in tryToUnfoldSelectInCurrBB() local
2959 SI = SelectI; in tryToUnfoldSelectInCurrBB()
2965 SI = SelectI; in tryToUnfoldSelectInCurrBB()
2971 if (!SI) in tryToUnfoldSelectInCurrBB()
2982 PHINode *NewPN = PHINode::Create(SI->getType(), 2, "", SI); in tryToUnfoldSelectInCurrBB()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DWasmDump.cpp48 symbol_iterator SI = RelRef.getSymbol(); in getWasmRelocationValueString() local
51 if (SI == Obj->symbol_end()) { in getWasmRelocationValueString()
56 Expected<StringRef> SymNameOrErr = SI->getName(); in getWasmRelocationValueString()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryOpRemark.cpp85 if (auto *SI = dyn_cast<StoreInst>(I)) { in visit() local
86 visitStore(*SI); in visit()
169 void MemoryOpRemark::visitStore(const StoreInst &SI) { in visitStore() argument
170 bool Volatile = SI.isVolatile(); in visitStore()
171 bool Atomic = SI.isAtomic(); in visitStore()
172 int64_t Size = DL.getTypeStoreSize(SI.getOperand(0)->getType()); in visitStore()
174 auto R = makeRemark(RemarkPass.data(), remarkName(RK_Store), &SI); in visitStore()
177 visitPtr(SI.getOperand(1), /*IsRead=*/false, *R); in visitStore()
H A DSSAUpdater.cpp413 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in run() local
414 updateDebugInfo(SI); in run()
415 SSA.AddAvailableValue(BB, SI->getOperand(0)); in run()
465 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) { in run() local
467 if (!isInstInList(SI, Insts)) continue; in run()
468 updateDebugInfo(SI); in run()
471 StoredValue = SI->getOperand(0); in run()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp1312 SI.Dest->printPretty(OS); in showBRDiagnostics()
1318 switch (SI.StoreKind) { in showBRDiagnostics()
1335 } else if (SI.Origin && SI.Origin->canPrintPretty()) { in showBRDiagnostics()
1337 SI.Origin->printPretty(OS); in showBRDiagnostics()
1346 if (SI.Value.isUndef()) { in showBRDiagnostics()
1381 } else if (SI.Origin && SI.Origin->canPrintPretty()) { in showBRParamDiagnostics()
1382 SI.Origin->printPretty(OS); in showBRParamDiagnostics()
1423 } else if (SI.Origin && SI.Origin->canPrintPretty()) { in showBRDefaultDiagnostics()
1439 SI.Dest->printPretty(OS); in showBRDefaultDiagnostics()
2248 switch (SI.StoreKind) { in handle()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp214 SI->eraseFromParent(); in CleanupPointerRootUsers()
315 EraseFromParent(SI); in CleanupConstantGlobalUsers()
397 if (!SI) in collectSRATypes()
619 SI->setOperand(1, NGV); in SRAGlobal()
620 SI->setAlignment(NewAlign); in SRAGlobal()
654 if (SI->getOperand(0) == V) { in AllUsesOfValueWillTrapIfNull()
758 SI->setOperand(1, NewV); in OptimizeAwayTrappingUsesOfValue()
954 SI->getSyncScopeID(), SI); in OptimizeGlobalAddressOfAllocation()
955 SI->eraseFromParent(); in OptimizeGlobalAddressOfAllocation()
1273 SI->getSyncScopeID(), SI); in TryToShrinkGlobalToBoolean()
[all …]
H A DArgumentPromotion.cpp384 if (auto *SI = dyn_cast<StoreInst>(V)) { in doPromotion() local
385 assert(!SI->isVolatile() && "Volatile operations can't be promoted."); in doPromotion()
386 Value *Ptr = SI->getPointerOperand(); in doPromotion()
387 SI->setOperand(StoreInst::getPointerOperandIndex(), GetAlloca(Ptr)); in doPromotion()
557 else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) in findArgParts() local
558 Res = HandleEndUser(SI, SI->getValueOperand()->getType(), in findArgParts()
601 auto *SI = dyn_cast<StoreInst>(V); in findArgParts() local
602 if (AreStoresAllowed && SI && in findArgParts()
604 if (!*HandleEndUser(SI, SI->getValueOperand()->getType(), in findArgParts()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryDependenceAnalysis.cpp124 if (SI->isUnordered()) { in GetLocation()
125 Loc = MemoryLocation::get(SI); in GetLocation()
129 Loc = MemoryLocation::get(SI); in GetLocation()
374 if (MemoryLocation::get(SI).Size != MemLoc.Size) in canSkipClobberingStore()
383 if (!LI || LI->getParent() != SI->getParent()) in canSkipClobberingStore()
455 if (auto *SI = dyn_cast<StoreInst>(I)) in getSimplePointerDependencyFrom() local
574 if (!SI->isUnordered() && SI->isAtomic()) { in getSimplePointerDependencyFrom()
577 return MemDepResult::getClobber(SI); in getSimplePointerDependencyFrom()
592 if (SI->isVolatile()) in getSimplePointerDependencyFrom()
594 return MemDepResult::getClobber(SI); in getSimplePointerDependencyFrom()
[all …]
H A DGlobalsModRef.cpp332 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in AnalyzeUsesOfPointer() local
333 if (V == SI->getOperand(1)) { in AnalyzeUsesOfPointer()
335 Writers->insert(SI->getParent()->getParent()); in AnalyzeUsesOfPointer()
336 } else if (SI->getOperand(1) != OkayStoreDest) { in AnalyzeUsesOfPointer()
425 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in AnalyzeIndirectGlobalMemory() local
427 if (SI->getOperand(0) == GV) in AnalyzeIndirectGlobalMemory()
431 if (isa<ConstantPointerNull>(SI->getOperand(0))) in AnalyzeIndirectGlobalMemory()
435 Value *Ptr = getUnderlyingObject(SI->getOperand(0)); in AnalyzeIndirectGlobalMemory()
657 if (auto *SI = dyn_cast<SelectInst>(Input)) { in isNonEscapingGlobalNoAliasWithLoad() local
658 const Value *LHS = getUnderlyingObject(SI->getTrueValue()); in isNonEscapingGlobalNoAliasWithLoad()
[all …]
H A DDependenceAnalysis.cpp3739 for (unsigned SI = 0; SI < Pairs; ++SI) { in depends() local
3752 Separable.set(SI); in depends()
3774 Coupled.set(SI); in depends()
3795 if (testZIV(Pair[SI].Src, Pair[SI].Dst, Result)) in depends()
3802 if (testSIV(Pair[SI].Src, Pair[SI].Dst, Level, Result, NewConstraint, in depends()
3809 if (testRDIV(Pair[SI].Src, Pair[SI].Dst, Result)) in depends()
3814 if (testMIV(Pair[SI].Src, Pair[SI].Dst, Pair[SI].Loops, Result)) in depends()
3943 for (unsigned SI = 0; SI < Pairs; ++SI) in depends() local
4076 for (unsigned SI = 0; SI < Pairs; ++SI) { in getSplitIteration() local
4088 Separable.set(SI); in getSplitIteration()
[all …]
H A DIVDescriptors.cpp317 if (auto *SI = dyn_cast<StoreInst>(Cur)) { in AddReductionVar() local
348 IntermediateStore = SI; in AddReductionVar()
477 if (SI && SI->getPointerOperand() == Cur) { in AddReductionVar()
643 SelectInst *SI = cast<SelectInst>(I); in isAnyOfPattern() local
647 NonPhi = SI->getFalseValue(); in isAnyOfPattern()
649 NonPhi = SI->getTrueValue(); in isAnyOfPattern()
725 SelectInst *SI = dyn_cast<SelectInst>(I); in isConditionalRdxPattern() local
726 if (!SI) in isConditionalRdxPattern()
734 Value *TrueVal = SI->getTrueValue(); in isConditionalRdxPattern()
735 Value *FalseVal = SI->getFalseValue(); in isConditionalRdxPattern()
[all …]
H A DLazyValueInfo.cpp632 return solveBlockValueSelect(SI, BB); in solveBlockValueImpl()
847 getBlockValue(SI->getTrueValue(), BB, SI); in solveBlockValueSelect()
853 getBlockValue(SI->getFalseValue(), BB, SI); in solveBlockValueSelect()
867 ((LHS == SI->getTrueValue() && RHS == SI->getFalseValue()) || in solveBlockValueSelect()
868 (RHS == SI->getTrueValue() && LHS == SI->getFalseValue()))) { in solveBlockValueSelect()
889 if (LHS == SI->getTrueValue()) in solveBlockValueSelect()
892 if (LHS == SI->getFalseValue()) in solveBlockValueSelect()
899 if (LHS == SI->getTrueValue()) in solveBlockValueSelect()
902 if (LHS == SI->getFalseValue()) in solveBlockValueSelect()
911 Value *Cond = SI->getCondition(); in solveBlockValueSelect()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNRegPressure.cpp206 LaneBitmask llvm::getLiveLaneMask(unsigned Reg, SlotIndex SI, in getLiveLaneMask() argument
209 return getLiveLaneMask(LIS.getInterval(Reg), SI, MRI); in getLiveLaneMask()
217 if (S.liveAt(SI)) { in getLiveLaneMask()
221 } else if (LI.liveAt(SI)) { in getLiveLaneMask()
227 GCNRPTracker::LiveRegSet llvm::getLiveRegs(SlotIndex SI, in getLiveRegs() argument
235 auto LiveMask = getLiveLaneMask(Reg, SI, LIS, MRI); in getLiveRegs()
352 SlotIndex SI = NextMI == MBBEnd in advanceBeforeNext() local
355 assert(SI.isValid()); in advanceBeforeNext()
370 if (!S.liveAt(SI)) { in advanceBeforeNext()
383 } else if (!LI.liveAt(SI)) { in advanceBeforeNext()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h149 Instruction *visitSelectInst(SelectInst &SI);
162 Instruction *visitStoreInst(StoreInst &SI);
163 Instruction *visitAtomicRMWInst(AtomicRMWInst &SI);
167 Instruction *visitSwitchInst(SwitchInst &SI);
195 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp,
451 auto *SI = new StoreInst(ConstantInt::getTrue(Ctx), in CreateNonTerminatorUnreachable() local
454 InsertNewInstBefore(SI, InsertAt->getIterator()); in CreateNonTerminatorUnreachable()
592 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI,
711 Instruction *foldSelectOfBools(SelectInst &SI);
714 Instruction *foldSelectIntoOp(SelectInst &SI, Value *, Value *);
[all …]
H A DInstructionCombining.cpp1332 SI->takeName(&I); in SimplifySelectsFeedingBinaryOp()
1333 return SI; in SimplifySelectsFeedingBinaryOp()
1346 SI->swapValues(); in freelyInvertAllUsersOf()
1347 SI->swapProfMetadata(); in freelyInvertAllUsersOf()
1434 if (Op == SI) { in constantFoldOperationIntoSelectOperand()
1469 Value *TV = SI->getTrueValue(); in FoldOpIntoSelect()
1470 Value *FV = SI->getFalseValue(); in FoldOpIntoSelect()
1519 return SelectInst::Create(SI->getCondition(), NewTV, NewFV, "", nullptr, SI); in FoldOpIntoSelect()
2819 if (SI->isVolatile() || SI->getPointerOperand() != PI) in isAllocSiteRemovable()
3285 Value *Cond = SI.getCondition(); in visitSwitchInst()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DSequenceToOffsetTable.h163 for (typename SeqT::const_iterator SI = I->first.begin(), variable
164 SE = I->first.end(); SI != SE; ++SI) {
165 Print(OS, *SI);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegisterScavenging.cpp64 for (ScavengedInfo &SI : Scavenged) { in init()
65 SI.Reg = 0; in init()
66 SI.Restore = nullptr; in init()
233 unsigned SI = Scavenged.size(), Diff = std::numeric_limits<unsigned>::max(); in spill() local
254 SI = I; in spill()
259 if (SI == Scavenged.size()) { in spill()
266 Scavenged[SI].Reg = Reg; in spill()
272 int FI = Scavenged[SI].FrameIndex; in spill()
293 return Scavenged[SI]; in spill()
H A DBasicBlockPathCloning.cpp72 for (auto SI = OrigBB.succ_begin(), SE = OrigBB.succ_end(); SI != SE; ++SI) in CloneMachineBasicBlock() local
73 CloneBB->copySuccessor(&OrigBB, SI); in CloneMachineBasicBlock()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransAutoreleasePool.cpp302 Stmt::child_iterator SI = scope.End, SE = compoundS->body_end(); in handlePoolScope() local
303 ++SI; in handlePoolScope()
306 if (SI != SE) in handlePoolScope()
307 if (ReturnStmt *retS = dyn_cast<ReturnStmt>(*SI)) in handlePoolScope()
312 ++SI; // the return will be included in scope, don't check it. in handlePoolScope()
315 for (; SI != SE; ++SI) { in handlePoolScope()
318 declarationLoc).TraverseStmt(*SI); in handlePoolScope()
/freebsd/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A DObjcopyOptions.cpp434 NewSymbolInfo SI; in parseNewSymbolInfo() local
436 std::tie(SI.SymbolName, Value) = FlagValue.split('='); in parseNewSymbolInfo()
441 SI.SymbolName.str().c_str()); in parseNewSymbolInfo()
444 std::tie(SI.SectionName, Value) = Value.split(':'); in parseNewSymbolInfo()
445 if (SI.SectionName.empty() || Value.empty()) in parseNewSymbolInfo()
453 if (Flags[0].getAsInteger(0, SI.Value)) in parseNewSymbolInfo()
463 [&] { SI.Flags.push_back(SymbolFlag::Global); }) in parseNewSymbolInfo()
469 [&] { SI.Flags.push_back(SymbolFlag::Hidden); }) in parseNewSymbolInfo()
476 [&] { SI.Flags.push_back(SymbolFlag::Object); }) in parseNewSymbolInfo()
499 SI.BeforeSyms.push_back(SymNamePart); in parseNewSymbolInfo()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DState.cpp34 OptionalDiagnostic State::FFDiag(const SourceInfo &SI, diag::kind DiagId, in FFDiag() argument
37 return diag(SI.getLoc(), DiagId, ExtraNotes, false); in FFDiag()
58 OptionalDiagnostic State::CCEDiag(const SourceInfo &SI, diag::kind DiagId, in CCEDiag() argument
60 return CCEDiag(SI.getLoc(), DiagId, ExtraNotes); in CCEDiag()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DIdentifierTable.cpp540 MultiKeywordSelector *SI = getMultiKeywordSelector(); in getNumArgs() local
541 return SI->getNumArgs(); in getNumArgs()
551 MultiKeywordSelector *SI = getMultiKeywordSelector(); in getIdentifierInfoForSlot() local
552 return SI->getIdentifierInfoForSlot(argIndex); in getIdentifierInfoForSlot()
764 if (MultiKeywordSelector *SI = in getSelector() local
766 return Selector(SI); in getSelector()
771 MultiKeywordSelector *SI = in getSelector() local
774 new (SI) MultiKeywordSelector(nKeys, IIV); in getSelector()
775 SelTabImpl.Table.InsertNode(SI, InsertPos); in getSelector()
776 return Selector(SI); in getSelector()
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_type_hash_itanium.cpp136 if (const abi::__si_class_type_info *SI = in isDerivedFromAtOffset() local
138 return isDerivedFromAtOffset(SI->__base_type, Base, Offset); in isDerivedFromAtOffset()
173 if (const abi::__si_class_type_info *SI = in findBaseAtOffset() local
175 return findBaseAtOffset(SI->__base_type, Offset); in findBaseAtOffset()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCIndirectionUtils.cpp151 for (auto &SI : StubInits) { in createStubs() local
153 StubInfos[SI.first()] = std::make_pair(A, SI.second.second); in createStubs()
162 for (auto &SI : StubInits) in createStubs() local
164 static_cast<uint32_t>(SI.second.first.getValue())}); in createStubs()
170 for (auto &SI : StubInits) in createStubs() local
172 static_cast<uint64_t>(SI.second.first.getValue())}); in createStubs()

12345678910>>...20