Home
last modified time | relevance | path

Searched refs:SI (Results 26 – 50 of 477) sorted by relevance

12345678910>>...20

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp76 static bool handleSwitchExpect(SwitchInst &SI) { in handleSwitchExpect() argument
77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
91 SwitchInst::CaseHandle Case = *SI.findCaseValue(ExpectedValue); in handleSwitchExpect()
92 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
102 misexpect::checkExpectAnnotations(SI, Weights, /*IsFrontend=*/true); in handleSwitchExpect()
104 SI.setCondition(ArgValue); in handleSwitchExpect()
105 setBranchWeights(SI, Weights); in handleSwitchExpect()
370 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) { in lowerExpectIntrinsic() local
371 if (handleSwitchExpect(*SI)) in lowerExpectIntrinsic()
381 if (SelectInst *SI = dyn_cast<SelectInst>(&Inst)) { in lowerExpectIntrinsic() local
[all …]
H A DLowerAtomicPass.cpp35 static bool LowerStoreInst(StoreInst *SI) { in LowerStoreInst() argument
36 SI->setAtomic(AtomicOrdering::NotAtomic); in LowerStoreInst()
52 } else if (StoreInst *SI = dyn_cast<StoreInst>(&Inst)) { in runOnBasicBlock() local
53 if (SI->isAtomic()) in runOnBasicBlock()
54 LowerStoreInst(SI); in runOnBasicBlock()
H A DInferAlignment.cpp36 } else if (auto *SI = dyn_cast<StoreInst>(I)) { in tryToImproveAlign() local
37 Value *PtrOp = SI->getPointerOperand(); in tryToImproveAlign()
38 Value *ValOp = SI->getValueOperand(); in tryToImproveAlign()
39 Align OldAlign = SI->getAlign(); in tryToImproveAlign()
42 SI->setAlignment(NewAlign); in tryToImproveAlign()
H A DSimpleLoopUnswitch.cpp773 for (auto Case : SI.cases()) in unswitchTrivialSwitch()
817 SI.setDefaultDest(nullptr); in unswitchTrivialSwitch()
841 if (SI.getNumCases() > 0 && in unswitchTrivialSwitch()
842 all_of(drop_begin(SI.cases()), [&SI](const SwitchInst::CaseHandle &Case) { in unswitchTrivialSwitch()
850 if (SI.getNumCases() == 0) in unswitchTrivialSwitch()
2369 SI->getCondition(), SI->getCondition()->getName() + ".fr", SI)); in unswitchNontrivialInvariants()
2699 SplitBlockAndInsertIfThen(SI->getCondition(), SI, false, in turnSelectIntoBranch()
2707 PHINode *Phi = PHINode::Create(SI->getType(), 2, "unswitched.select", SI); in turnSelectIntoBranch()
2710 SI->replaceAllUsesWith(Phi); in turnSelectIntoBranch()
2711 SI->eraseFromParent(); in turnSelectIntoBranch()
[all …]
H A DScalarizer.cpp310 bool visitStoreInst(StoreInst &SI);
764 IRBuilder<> Builder(&SI); in visitSelectInst()
765 Scatterer VOp1 = scatter(&SI, SI.getOperand(1), *VS); in visitSelectInst()
766 Scatterer VOp2 = scatter(&SI, SI.getOperand(2), *VS); in visitSelectInst()
773 Scatterer VOp0 = scatter(&SI, SI.getOperand(0), *CondVS); in visitSelectInst()
783 Value *Op0 = SI.getOperand(0); in visitSelectInst()
791 gather(&SI, Res, *VS); in visitSelectInst()
1131 if (!SI.isSimple()) in visitStoreInst()
1136 FullValue->getType(), SI.getAlign(), SI.getModule()->getDataLayout()); in visitStoreInst()
1140 IRBuilder<> Builder(&SI); in visitStoreInst()
[all …]
H A DAlignmentFromAssumptions.cpp225 } else if (StoreInst *SI = dyn_cast<StoreInst>(J)) { in processAssumption() local
229 SI->getPointerOperand(), SE); in processAssumption()
230 if (NewAlignment > SI->getAlign()) { in processAssumption()
231 SI->setAlignment(NewAlignment); in processAssumption()
270 StoreInst *SI = dyn_cast<StoreInst>(K); in processAssumption() local
271 if (SI && SI->getPointerOperandIndex() != U.getOperandNo()) in processAssumption()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMacroFusion.cpp127 const MachineOperand &SI = FirstMI.getOperand(2); in checkOpConstraints() local
128 if (!SI.isImm()) in checkOpConstraints()
130 int64_t Imm = SI.getImm(); in checkOpConstraints()
206 const MachineOperand &SI = SecondMI.getOperand(2); in checkOpConstraints() local
207 if (!SI.isImm() || !RA.isReg()) in checkOpConstraints()
211 return SignExtend64(SI.getImm(), 16) >= 0; in checkOpConstraints()
217 const MachineOperand &SI = FirstMI.getOperand(2); in checkOpConstraints() local
218 if (!SI.isImm() || !RA.isReg()) in checkOpConstraints()
222 int64_t ExtendedSI = SignExtend64(SI.getImm(), 16); in checkOpConstraints()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h186 for (CFGBlock::const_pred_iterator SI = CurrBlock->pred_begin(), in walk() local
188 SI != SE; ++SI) { in walk()
189 if (*SI == nullptr) in walk()
192 if (!VisitedBlocks.alreadySet(*SI)) { in walk()
193 BackEdges.push_back(*SI); in walk()
196 V.handlePredecessor(*SI); in walk()
234 SI != SE; ++SI) { in walk()
235 if (*SI == nullptr) in walk()
238 if (!VisitedBlocks.alreadySet(*SI)) { in walk()
239 ForwardEdges.push_back(*SI); in walk()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DGlobalStatus.cpp98 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) { in analyzeGlobalAux() local
100 if (SI->getOperand(0) == V) in analyzeGlobalAux()
104 if (SI->isVolatile()) in analyzeGlobalAux()
109 GS.Ordering = strongerOrdering(GS.Ordering, SI->getOrdering()); in analyzeGlobalAux()
115 const Value *Ptr = SI->getPointerOperand()->stripPointerCasts(); in analyzeGlobalAux()
117 Value *StoredVal = SI->getOperand(0); in analyzeGlobalAux()
135 GS.StoredOnceStore = SI; in analyzeGlobalAux()
H A DPromoteMemoryToRegister.cpp73 if (SI->getValueOperand() == AI || in isAllocaPromotable()
78 if (SI->isVolatile()) in isAllocaPromotable()
249 DefiningBlocks.push_back(SI->getParent()); in AnalyzeAlloca()
250 OnlyStore = SI; in AnalyzeAlloca()
633 if (StoreInst *SI = dyn_cast<StoreInst>(U)) in promoteSingleBlockAlloca() local
634 StoresByIndex.push_back(std::make_pair(LBI.getInstructionIndex(SI), SI)); in promoteSingleBlockAlloca()
699 SI->eraseFromParent(); in promoteSingleBlockAlloca()
700 LBI.deleteValue(SI); in promoteSingleBlockAlloca()
999 if (SI->getOperand(1) != AI) in ComputeLiveInBlocks()
1173 IncomingVals[AllocaNo] = SI->getOperand(0); in RenamePass()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyld.cpp322 section_iterator SI = Obj.section_end(); in loadObjectImpl() local
324 SI = *SIOrErr; in loadObjectImpl()
328 if (SI == Obj.section_end()) in loadObjectImpl()
336 bool IsCode = SI->isText(); in loadObjectImpl()
365 SI != SE; ++SI) { in loadObjectImpl()
434 SI != SE; ++SI) { in loadObjectImpl()
440 bool IsCode = SI->isText(); in loadObjectImpl()
547 SI != SE; ++SI) { in computeTotalAllocSize()
548 const SectionRef &Section = *SI; in computeTotalAllocSize()
657 SI != SE; ++SI) { in computeGOTSize()
[all …]
H A DRuntimeDyldMachO.cpp115 RTDyldSymbolTable::const_iterator SI = in getRelocationValueRef() local
117 if (SI != GlobalSymbolTable.end()) { in getRelocationValueRef()
118 const auto &SymInfo = SI->second; in getRelocationValueRef()
165 section_iterator SI = Obj.section_begin(); in getSectionByAddress() local
168 for (; SI != SE; ++SI) { in getSectionByAddress()
169 uint64_t SAddr = SI->getAddress(); in getSectionByAddress()
170 uint64_t SSize = SI->getSize(); in getSectionByAddress()
172 return SI; in getSectionByAddress()
206 symbol_iterator SI = Obj.getSymbolByIndex(SymbolIndex); in populateIndirectSymbolPointersSection() local
208 if (auto IndirectSymbolNameOrErr = SI->getName()) in populateIndirectSymbolPointersSection()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMapperJITLinkMemoryManager.cpp98 MemoryMapper::AllocInfo::SegInfo SI; in allocate() local
99 SI.Offset = Seg.Addr - Result->Start; in allocate()
100 SI.ContentSize = Seg.ContentSize; in allocate()
101 SI.ZeroFillSize = Seg.ZeroFillSize; in allocate()
102 SI.AG = AG; in allocate()
103 SI.WorkingMem = Seg.WorkingMem; in allocate()
105 SegInfos.push_back(SI); in allocate()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMarkLastScratchLoad.cpp32 SlotIndexes *SI = nullptr; member in __anon8376b5c00111::AMDGPUMarkLastScratchLoad
69 SI = &getAnalysis<SlotIndexes>(); in runOnMachineFunction()
94 MachineInstr *MISegmentEnd = SI->getInstructionFromIndex(Segment.end); in runOnMachineFunction()
100 MISegmentEnd = SI->getInstructionFromIndex(NextSlot); in runOnMachineFunction()
103 MachineInstr *MISegmentStart = SI->getInstructionFromIndex(Segment.start); in runOnMachineFunction()
H A DAMDGPURewriteOutArguments.cpp131 if (auto *SI = dyn_cast<StoreInst>(U->getUser())) { in getStoredType() local
135 if (!SI->isSimple() || in getStoredType()
139 if (StoredType && StoredType != SI->getValueOperand()->getType()) in getStoredType()
141 StoredType = SI->getValueOperand()->getType(); in getStoredType()
259 StoreInst *SI = nullptr; in runOnFunction() local
261 SI = dyn_cast<StoreInst>(Q.getInst()); in runOnFunction()
263 if (SI) { in runOnFunction()
264 LLVM_DEBUG(dbgs() << "Found out argument store: " << *SI << '\n'); in runOnFunction()
265 ReplaceableStores.emplace_back(RI, SI); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCA/
H A DRISCVCustomBehaviour.cpp248 RISCVSEWInstrument *SI = nullptr; in getSchedClassID() local
253 SI = static_cast<RISCVSEWInstrument *>(I); in getSchedClassID()
268 uint8_t SEW = SI ? SI->getSEW() : 0; in getSchedClassID()
289 << ", SEW=" << (SI ? SI->getData() : "Unspecified") in getSchedClassID()
298 << ", SEW=" << (SI ? SI->getData() : "Unspecified") in getSchedClassID()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp217 } else if (SI) { in runOnFunction()
241 } else if (SI && in runOnFunction()
244 I = SI = convertAtomicStoreToIntegerType(SI); in runOnFunction()
267 } else if (SI && isReleaseOrStronger(SI->getOrdering())) { in runOnFunction()
295 if (SI) in runOnFunction()
314 else if (SI) in runOnFunction()
444 expandAtomicStore(SI); in tryExpandAtomicStore()
511 NewSI->setAtomic(SI->getOrdering(), SI->getSyncScopeID()); in convertAtomicStoreToIntegerType()
513 SI->eraseFromParent(); in convertAtomicStoreToIntegerType()
531 AtomicRMWInst::Xchg, SI->getPointerOperand(), SI->getValueOperand(), in expandAtomicStore()
[all …]
H A DSwitchLoweringUtils.cpp47 const SwitchInst *SI, in findJumpTables() argument
62 if (!TLI->areJTsAllowed(SI->getParent()->getParent())) in findJumpTables()
89 if (TLI->isSuitableForJumpTable(SI, NumCases, Range, PSI, BFI)) { in findJumpTables()
91 if (buildJumpTable(Clusters, 0, N - 1, SI, SL, DefaultMBB, JTCluster)) { in findJumpTables()
147 if (TLI->isSuitableForJumpTable(SI, NumCases, Range, PSI, BFI)) { in findJumpTables()
193 const SwitchInst *SI, in buildJumpTable() argument
240 CurMF->CreateMachineBasicBlock(SI->getParent()); in buildJumpTable()
354 if (buildBitTests(Clusters, First, Last, SI, BitTestCluster)) { in findBitTestClusters()
368 const SwitchInst *SI, in buildBitTests() argument
453 FuncInfo.MF->CreateMachineBasicBlock(SI->getParent()); in buildBitTests()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp143 if (auto SI = dyn_cast<StoreInst>(&I)) { in runOnModule() local
145 Builder, PointerTypes, I, SI->getPointerOperand(), in runOnModule()
146 SI->getValueOperand()->getType())) { in runOnModule()
148 SI->replaceAllUsesWith( in runOnModule()
149 Builder.CreateStore(SI->getValueOperand(), NoOpBitcast)); in runOnModule()
150 SI->eraseFromParent(); in runOnModule()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSetVector.h306 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_union() local
307 ++SI) in set_union()
308 if (insert(*SI)) in set_union()
319 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_subtract() local
320 ++SI) in set_subtract()
321 remove(*SI); in set_subtract()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1829 if (!SI || !FeedsPHI(SI)) in recognize()
1838 if (SelI != SI) { in recognize()
1864 if (!SI || !FeedsPHI(SI)) in recognize()
1869 if (SelI != SI) { in recognize()
1930 if (!(SI->isVolatile() && HexagonVolatileMemcpy) && !SI->isSimple()) in isLegalStore()
2018 Stores.push_back(SI); in collectStores()
2023 assert((SI->isSimple() || (SI->isVolatile() && HexagonVolatileMemcpy)) && in processCopyingStore()
2084 Ignore1.insert(SI); in processCopyingStore()
2113 Insts.push_back(SI); in processCopyingStore()
2131 Ignore2.insert(SI); in processCopyingStore()
[all …]
H A DHexagonOptimizeSZextends.cpp80 SExtInst* SI = new SExtInst(&Arg, Use->getType()); in runOnFunction() local
81 assert (EVT::getEVT(SI->getType()) == in runOnFunction()
83 Use->replaceAllUsesWith(SI); in runOnFunction()
85 SI->insertBefore(First); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCRegisterInfo.h745 MCSuperRegIterator SI; variable
754 for (SI = MCSuperRegIterator(*RRI, MCRI, true); SI.isValid(); ++SI) { in MCRegAliasIterator()
755 if (!(!IncludeSelf && Reg == *SI)) in MCRegAliasIterator()
765 assert(SI.isValid() && "Cannot dereference an invalid iterator.");
766 return *SI;
771 ++SI; in advance()
772 if (SI.isValid()) return; in advance()
776 SI = MCSuperRegIterator(*RRI, MCRI, true); in advance()
783 SI = MCSuperRegIterator(*RRI, MCRI, true); in advance()
790 while (!IncludeSelf && isValid() && *SI == Reg);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoads.cpp402 } else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) { in isSafeToLoadUnconditionally() local
404 if (SI->isVolatile()) in isSafeToLoadUnconditionally()
406 AccessedPtr = SI->getPointerOperand(); in isSafeToLoadUnconditionally()
407 AccessedTy = SI->getValueOperand()->getType(); in isSafeToLoadUnconditionally()
408 AccessedAlign = SI->getAlign(); in isSafeToLoadUnconditionally()
518 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in getAvailableLoadStore() local
521 if (SI->isAtomic() < AtLeastAtomic) in getAvailableLoadStore()
531 Value *Val = SI->getValueOperand(); in getAvailableLoadStore()
616 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in findAvailablePtrLoadStore() local
634 SI->getValueOperand()->getType(), DL)) in findAvailablePtrLoadStore()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DMemCpyOptimizer.h63 bool processStore(StoreInst *SI, BasicBlock::iterator &BBI);
64 bool processStoreOfLoad(StoreInst *SI, LoadInst *LI, const DataLayout &DL,
66 bool processMemSet(MemSetInst *SI, BasicBlock::iterator &BBI);
83 bool moveUp(StoreInst *SI, Instruction *P, const LoadInst *LI);

12345678910>>...20