Home
last modified time | relevance | path

Searched refs:SI (Results 1 – 25 of 477) sorted by relevance

12345678910>>...20

/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp38 wrap(const section_iterator *SI) { in wrap() argument
48 wrap(const symbol_iterator *SI) { in wrap() argument
50 (const_cast<symbol_iterator*>(SI)); in wrap()
58 wrap(const relocation_iterator *SI) { in wrap() argument
208 delete unwrap(SI); in LLVMDisposeSectionIterator()
218 ++(*unwrap(SI)); in LLVMMoveToNextSection()
241 delete unwrap(SI); in LLVMDisposeSymbolIterator()
251 ++(*unwrap(SI)); in LLVMMoveToNextSymbol()
263 return (*unwrap(SI))->getSize(); in LLVMGetSectionSize()
289 delete unwrap(SI); in LLVMDisposeRelocationIterator()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSetOperations.h27 SI != SE; ++SI) in set_union()
51 for (typename S1Ty::const_iterator SI = S1.begin(), SE = S1.end(); SI != SE; in set_intersection_impl() local
52 ++SI) in set_intersection_impl()
53 if (S2.count(*SI)) in set_intersection_impl()
54 Result.insert(*SI); in set_intersection_impl()
73 SI != SE; ++SI) in set_difference()
84 SI != SE; ++SI) in set_subtract()
85 S1.erase(*SI); in set_subtract()
93 for (typename S2Ty::const_iterator SI = S2.begin(), SE = S2.end(); SI != SE; in set_subtract() local
94 ++SI) in set_subtract()
[all …]
H A DSequence.h196 explicit SafeIntIterator(T Value) : SI(CheckedInt::from<T>(Value)) {} in SafeIntIterator()
198 SafeIntIterator(const SafeIntIterator<T, !IsReverse> &O) : SI(O.SI) {} in SafeIntIterator()
201 reference operator*() const { return SI.to<T>(); }
206 bool operator==(const SafeIntIterator &O) const { return SI == O.SI; }
207 bool operator!=(const SafeIntIterator &O) const { return SI != O.SI; }
240 return IsReverse ? O.SI - SI : SI - O.SI;
244 SafeIntIterator(const CheckedInt &SI) : SI(SI) {} in SafeIntIterator()
250 CheckedInt add(intmax_t Offset) const { return SI + getOffset(Offset); } in add()
252 void offset(intmax_t Offset) { SI = SI + getOffset(Offset); } in offset()
254 CheckedInt SI; member
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp403 SI->getCondition(), getReplacement(SI->getTrueValue()), in replace()
404 getReplacement(SI->getFalseValue()), SI->getName(), nullptr, SI); in replace()
406 NewSI->takeName(SI); in replace()
589 IC.Builder.CreateAlignedStore(V, Ptr, SI.getAlign(), SI.isVolatile()); in combineStoreToNewValue()
590 NewStore->setAtomic(SI.getOrdering(), SI.getSyncScopeID()); in combineStoreToNewValue()
983 if (NullPointerIsDefined(SI.getFunction(), SI.getPointerAddressSpace())) in canSimplifyNullStoreOrGEP()
1221 if (!SI.isSimple()) in unpackStoreToAggregate()
1465 return &SI; in visitStoreInst()
1583 PN->addIncoming(SI.getValueOperand(), SI.getParent()); in mergeStoreIntoSuccessor()
1594 new StoreInst(MergedVal, SI.getOperand(1), SI.isVolatile(), SI.getAlign(), in mergeStoreIntoSuccessor()
[all …]
H A DInstCombineSelect.cpp313 SI.getName() + ".v", &SI); in foldSelectOpOp()
368 Builder.CreateSelect(Cond, X, Y, SI.getName() + ".v", &SI); in foldSelectOpOp()
428 SI.getName() + ".v", &SI); in foldSelectOpOp()
476 SI.getName() + ".v", &SI); in foldSelectOpOp()
1734 return &SI; in foldSelectInstWithICmp()
1932 SI.getName() + ".p", &SI); in foldAddSubSelect()
2752 if (!SI.hasNoSignedZeros() || !SI.hasNoNaNs()) in foldSelectWithFCmpToFabs()
2847 R->takeName(&SI); in foldRoundUpIntegerWithPow2Alignment()
3637 return &SI; in visitSelectInst()
3708 return &SI; in visitSelectInst()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DObject.h164 void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI);
166 void LLVMMoveToNextSection(LLVMSectionIteratorRef SI);
171 void LLVMDisposeSymbolIterator(LLVMSymbolIteratorRef SI);
172 void LLVMMoveToNextSymbol(LLVMSymbolIteratorRef SI);
175 const char *LLVMGetSectionName(LLVMSectionIteratorRef SI);
176 uint64_t LLVMGetSectionSize(LLVMSectionIteratorRef SI);
178 uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef SI);
191 const char *LLVMGetSymbolName(LLVMSymbolIteratorRef SI);
192 uint64_t LLVMGetSymbolAddress(LLVMSymbolIteratorRef SI);
193 uint64_t LLVMGetSymbolSize(LLVMSymbolIteratorRef SI);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMacroFusion.cpp39 for (const SDep &SI : SU.Preds) in getPredClusterSU() local
40 if (SI.isCluster()) in getPredClusterSU()
41 return SI.getSUnit(); in getPredClusterSU()
57 for (SDep &SI : FirstSU.Succs) in fuseInstructionPair()
58 if (SI.isCluster()) in fuseInstructionPair()
62 if (SI.isCluster()) in fuseInstructionPair()
82 for (SDep &SI : FirstSU.Succs) in fuseInstructionPair()
84 SI.setLatency(0); in fuseInstructionPair()
88 SI.setLatency(0); in fuseInstructionPair()
101 if (SI.isWeak() || isHazard(SI) || in fuseInstructionPair()
[all …]
H A DSelectOptimize.cpp521 V = SI.getFalseValue(); in getTrueOrFalseValue()
715 for (auto SI : ASI) in convertProfitableSIGroups() local
716 INS.insert(SI.getI()); in convertProfitableSIGroups()
722 SelectLike SI = *It; in convertProfitableSIGroups() local
731 INS.erase(SI.getI()); in convertProfitableSIGroups()
737 for (auto SI : ASI) in convertProfitableSIGroups() local
752 SIGroup.push_back(SI); in collectSelectGroups()
925 for (SelectLike SI : ASI) { in hasExpensiveColdOperand() local
966 while (&*It != SI) { in isSafeToSinkLoad()
1194 for (SelectLike SI : ASI) in getSImap() local
[all …]
H A DLiveIntervalUnion.cpp88 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { in print() local
89 OS << " [" << SI.start() << ' ' << SI.stop() in print()
90 << "):" << printReg(SI.value()->reg(), TRI); in print()
98 for (SegmentIter SI = Segments.begin(); SI.valid(); ++SI) in verify() local
99 VisitedVRegs.set(SI.value()->reg()); in verify()
106 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { in getOneVReg() local
108 return SI.value(); in getOneVReg()
H A DInterleavedAccessPass.cpp107 bool lowerInterleavedStore(StoreInst *SI,
478 StoreInst *SI, SmallVector<Instruction *, 32> &DeadInsts) { in lowerInterleavedStore() argument
479 if (!SI->isSimple()) in lowerInterleavedStore()
494 if (!TLI->lowerInterleavedStore(SI, SVI, Factor)) in lowerInterleavedStore()
498 DeadInsts.push_back(SI); in lowerInterleavedStore()
527 StoreInst *SI = dyn_cast<StoreInst>(*(II->users().begin())); in lowerInterleaveIntrinsic() local
529 if (!SI || !SI->isSimple()) in lowerInterleaveIntrinsic()
535 if (!TLI->lowerInterleaveIntrinsicToStore(II, SI)) in lowerInterleaveIntrinsic()
539 DeadInsts.push_back(SI); in lowerInterleaveIntrinsic()
553 if (auto *SI = dyn_cast<StoreInst>(&I)) in runOnFunction() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DStatepointLowering.cpp324 Builder.lowerInvokable(SI.CLI, SI.EHPadBB); in lowerCallFromStatepointLoweringInfo()
714 assert(SI.Bases.size() == SI.Ptrs.size() && "Pointer without base!"); in LowerAsSTATEPOINT()
1081 SI.Bases.push_back(V); in LowerStatepoint()
1082 SI.Ptrs.push_back(V); in LowerStatepoint()
1087 SI.StatepointInstr = &I; in LowerStatepoint()
1088 SI.ID = I.getID(); in LowerStatepoint()
1096 SI.EHPadBB = EHPadBB; in LowerStatepoint()
1157 SI.DeoptState = in LowerCallSiteWithDeoptBundleImpl()
1160 SI.EHPadBB = EHPadBB; in LowerCallSiteWithDeoptBundleImpl()
1182 assert((isa<GCStatepointInst>(SI) || isa<UndefValue>(SI)) && in visitGCResult()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DSimpleRemoteEPCUtils.h209 static size_t size(const SimpleRemoteEPCExecutorInfo &SI) { in size() argument
211 SI.TargetTriple, SI.PageSize, SI.BootstrapMap, SI.BootstrapSymbols); in size()
215 const SimpleRemoteEPCExecutorInfo &SI) { in serialize() argument
217 OB, SI.TargetTriple, SI.PageSize, SI.BootstrapMap, SI.BootstrapSymbols); in serialize()
220 static bool deserialize(SPSInputBuffer &IB, SimpleRemoteEPCExecutorInfo &SI) { in deserialize() argument
222 IB, SI.TargetTriple, SI.PageSize, SI.BootstrapMap, SI.BootstrapSymbols); in deserialize()
/freebsd/contrib/llvm-project/llvm/lib/MCA/Stages/
H A DInOrderIssueStage.cpp61 if (SI.isValid() || CarriedOver) in isAvailable()
206 if (SI.isValid()) in execute()
351 assert(SI.getCyclesLeft() && "A zero cycles stall?"); in notifyStallEvent()
354 const InstRef &IR = SI.getInstruction(); in notifyStallEvent()
356 switch (SI.getStallKind()) { in notifyStallEvent()
398 if (SI.isValid()) { in cycleStart()
399 if (!SI.getCyclesLeft()) { in cycleStart()
403 InstRef IR = SI.getInstruction(); in cycleStart()
404 SI.clear(); in cycleStart()
410 if (SI.getCyclesLeft()) { in cycleStart()
[all …]
/freebsd/stand/uboot/
H A Duboot_disk.c157 if (size % SI(dev).bsize) { in stor_strategy()
160 size, SI(dev).bsize); in stor_strategy()
163 bcount = size / SI(dev).bsize; in stor_strategy()
195 if (SI(dev).opened == 0) { in stor_opendev()
196 err = ub_dev_open(SI(dev).handle); in stor_opendev()
202 SI(dev).opened++; in stor_opendev()
204 return (disk_open(dev, SI(dev).blocks * SI(dev).bsize, in stor_opendev()
205 SI(dev).bsize)); in stor_opendev()
259 ub_stor_type(SI(&dev).type)); in stor_print()
286 *(u_int *)data = SI(dev).bsize; in stor_ioctl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCExpandPseudos.cpp64 MachineInstr &SI = *SII; in expandStore() local
67 isUInt<6>(SI.getOperand(2).getImm()) ? ARC::ADD_rru6 : ARC::ADD_rrlimm; in expandStore()
68 BuildMI(*SI.getParent(), SI, SI.getDebugLoc(), TII->get(AddOpc), AddrReg) in expandStore()
69 .addReg(SI.getOperand(1).getReg()) in expandStore()
70 .addImm(SI.getOperand(2).getImm()); in expandStore()
71 BuildMI(*SI.getParent(), SI, SI.getDebugLoc(), in expandStore()
72 TII->get(getMappedOp(SI.getOpcode()))) in expandStore()
73 .addReg(SI.getOperand(0).getReg()) in expandStore()
76 SI.eraseFromParent(); in expandStore()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp660 SelectInst *SI, Region *R, in checkBiasedSelect() argument
688 HoistPoint = SI; in getBranchInsertPoint()
888 Unhoistables.insert(SI); in checkScopeHoistable()
892 SelectInst *SI = *it; in checkScopeHoistable() local
893 if (SI == InsertPoint) { in checkScopeHoistable()
955 for (auto *SI : Selects) { in checkScopeHoistable() local
967 for (auto *SI : Selects) { in checkScopeHoistable() local
1109 Output.insert(SI); in getSelectsInScope()
1377 Unhoistables.insert(SI); in setCHRRegions()
1533 SI->swapValues(); in negateICmpIfUsedByBranchOrSelectOnly()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp744 iterator SI, SJ; member in __anon27169d500411::Partition
751 Partition(iterator SI) : SI(SI), SJ(SI) {} in Partition() argument
830 if (SI != SE) in partition_iterator()
886 P.SI = P.SJ; in advance()
1003 if (SI.getOperand(1) == SI.getOperand(2)) in foldSelectInst()
1350 return SI; in hasUnsafePHIOrSelectUse()
1736 for (Value *Value : {SI.getTrueValue(), SI.getFalseValue()}) in isSafeLoadOfSelectToSpeculate()
3124 NewSI->setAtomic(SI.getOrdering(), SI.getSyncScopeID()); in visitStoreInst()
3937 if (!SI.isSimple() || SI.getPointerOperand() != *U) in visitStoreInst()
3945 StoreOpSplitter Splitter(&SI, *U, V->getType(), SI.getAAMetadata(), &SI, in visitStoreInst()
[all …]
H A DMemCpyOptimizer.cpp119 if (!isa<StoreInst>(SI)) in isProfitableToUseMemset()
181 SI->getPointerOperand(), SI->getAlign(), SI); in addStore()
495 eraseInstruction(SI); in tryMergingIntoMemset()
652 Instruction *P = SI; in processStoreOfLoad()
664 if (P && P != SI) { in processStoreOfLoad()
686 SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad()
690 SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad()
702 eraseInstruction(SI); in processStoreOfLoad()
726 LI, SI, SI->getPointerOperand()->stripPointerCasts(), in processStoreOfLoad()
731 eraseInstruction(SI); in processStoreOfLoad()
[all …]
H A DDFAJumpThreading.cpp116 SelectInst *SI; member in __anon6d7772f80111::SelectInstToUnfold
120 SelectInstToUnfold(SelectInst *SI, PHINode *SIUse) : SI(SI), SIUse(SIUse) {} in SelectInstToUnfold() argument
208 assert(SI->hasOneUse()); in unfold()
305 SI->eraseFromParent(); in unfold()
382 if (isCandidate(SI)) { in MainSwitch()
383 Instr = SI; in MainSwitch()
458 if (!SI->hasOneUse()) in isValidSelectInst()
483 if (PrevSI->getTrueValue() != SI && PrevSI->getFalseValue() != SI && in isValidSelectInst()
1260 if (!SI) in run()
1265 MainSwitch Switch(SI, ORE); in run()
[all …]
H A DCorrelatedValuePropagation.cpp224 if (!SI) in getValueOnEdge()
248 return SI->getTrueValue(); in getValueOnEdge()
375 for (auto CI = SI->case_begin(), CE = SI->case_end(); CI != CE;) { in processSwitch()
385 CI = SI.removeCase(CI); in processSwitch()
386 CE = SI->case_end(); in processSwitch()
402 SI->setCondition(Case); in processSwitch()
573 bool NSW = SI->isSigned(); in processSaturatingInst()
574 bool NUW = !SI->isSigned(); in processSaturatingInst()
576 Opcode, SI->getLHS(), SI->getRHS(), SI->getName(), SI); in processSaturatingInst()
581 SI->eraseFromParent(); in processSaturatingInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp78 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) { in runOnFunction() local
79 if (SI->getOperand(0) != LI) in runOnFunction()
105 auto *SI = cast<StoreInst>(*LI->user_begin()); in runOnFunction() local
107 Value *DstAddr = SI->getOperand(1); in runOnFunction()
112 createMemCpyLoopKnownSize(/* ConvertedInst */ SI, in runOnFunction()
116 /* DestAlign */ SI->getAlign(), in runOnFunction()
118 /* DstIsVolatile */ SI->isVolatile(), in runOnFunction()
121 SI->eraseFromParent(); in runOnFunction()
H A DNVPTXLowerAlloca.cpp93 auto SI = dyn_cast<StoreInst>(AllocaUse.getUser()); in runOnFunction() local
94 if (SI && SI->getPointerOperand() == allocaInst && in runOnFunction()
95 !SI->isVolatile()) { in runOnFunction()
96 SI->setOperand(SI->getPointerOperandIndex(), NewASCToGeneric); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp779 if (!SI->getParent()->hasNPredecessorsOrMore(128 / SI->getNumSuccessors())) in isValueEqualityComparison()
959 for (SwitchInst::CaseIt i = SI->case_end(), e = SI->case_begin(); i != e;) { in SimplifyEqualityComparisonWithOnlyPredecessor()
966 SI.removeCase(i); in SimplifyEqualityComparisonWithOnlyPredecessor()
1800 if (!SI) { in hoistSuccIdenticalTerminatorToSwitchOrIf()
2822 SI->getValueOperand()->getType() == StoreTy && SI->isSimple()) in isSafeToSpeculateStore()
3948 S = SI; in findUniqueStoreInBlocks()
4741 if (SI->findCaseValue(Cst) != SI->case_default()) { in tryToSimplifyUncondBranchWithICmpInIt()
5567 SI->eraseFromParent(); in TurnSwitchRangeIntoICmp()
6064 SI->eraseFromParent(); in removeSwitchAfterSelectFold()
6623 getCaseResults(SI, nullptr, SI->getDefaultDest(), &CommonDest, in SwitchToLookupTable()
[all …]
H A DLowerSwitch.cpp309 unsigned Clusterify(CaseVector &Cases, SwitchInst *SI) { in Clusterify() argument
313 for (auto Case : SI->cases()) { in Clusterify()
351 void ProcessSwitchInst(SwitchInst *SI, in ProcessSwitchInst() argument
354 BasicBlock *OrigBlock = SI->getParent(); in ProcessSwitchInst()
357 BasicBlock *Default = SI->getDefaultDest(); in ProcessSwitchInst()
385 SI->eraseFromParent(); in ProcessSwitchInst()
498 SI->eraseFromParent(); in ProcessSwitchInst()
510 Val = SI->getCondition(); in ProcessSwitchInst()
529 BasicBlock *OldDefault = SI->getDefaultDest(); in ProcessSwitchInst()
530 SI->eraseFromParent(); in ProcessSwitchInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNRegPressure.h164 GCNRPTracker::LiveRegSet getLiveRegs(SlotIndex SI, const LiveIntervals &LIS,
175 void reset(const MachineRegisterInfo &MRI, SlotIndex SI) { in reset() argument
176 reset(MRI, llvm::getLiveRegs(SI, LIS, MRI)); in reset()
251 SlotIndex SI,
255 LaneBitmask getLiveLaneMask(const LiveInterval &LI, SlotIndex SI,
273 auto SI = SII.getInstructionIndex(*I); in getLiveRegMap() local
274 Indexes.push_back(After ? SI.getDeadSlot() : SI.getBaseIndex()); in getLiveRegMap()
290 for (auto SI : LiveIdxs) in getLiveRegMap() local
291 LiveRegMap[SII.getInstructionFromIndex(SI)][Reg] = in getLiveRegMap()
298 for (auto SI : SRLiveIdxs) in getLiveRegMap() local
[all …]

12345678910>>...20