Home
last modified time | relevance | path

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

12345678910>>...21

/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp33 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap() argument
34 return reinterpret_cast<section_iterator*>(SI); in unwrap()
38 wrap(const section_iterator *SI) { in wrap() argument
40 (const_cast<section_iterator*>(SI)); in wrap()
43 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) { in unwrap() argument
44 return reinterpret_cast<symbol_iterator*>(SI); in unwrap()
48 wrap(const symbol_iterator *SI) { in wrap() argument
50 (const_cast<symbol_iterator*>(SI)); in wrap()
53 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) { in unwrap() argument
54 return reinterpret_cast<relocation_iterator*>(SI); in unwrap()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp319 } else if (auto *SI = dyn_cast<SelectInst>(Inst)) { in collectUsers() local
320 auto *TrueInst = dyn_cast<Instruction>(SI->getTrueValue()); in collectUsers()
321 auto *FalseInst = dyn_cast<Instruction>(SI->getFalseValue()); in collectUsers()
325 UsersToReplace.insert(SI); in collectUsers()
326 PushUsersToWorklist(SI); in collectUsers()
423 } else if (auto *SI = dyn_cast<SelectInst>(I)) { in replace() local
424 Value *TrueValue = SI->getTrueValue(); in replace()
425 Value *FalseValue = SI->getFalseValue(); in replace()
430 auto *NewSI = SelectInst::Create(SI->getCondition(), TrueValue, FalseValue, in replace()
431 SI->getName(), nullptr, SI); in replace()
[all …]
H A DInstCombineSelect.cpp244 Instruction *InstCombinerImpl::foldSelectOpOp(SelectInst &SI, Instruction *TI, in foldSelectOpOp() argument
250 if ((match(&SI, m_SMin(m_Value(), m_Value())) || in foldSelectOpOp()
251 match(&SI, m_SMax(m_Value(), m_Value())) || in foldSelectOpOp()
252 match(&SI, m_UMin(m_Value(), m_Value())) || in foldSelectOpOp()
253 match(&SI, m_UMax(m_Value(), m_Value())))) in foldSelectOpOp()
257 Value *Cond = SI.getCondition(); in foldSelectOpOp()
293 SI.getName() + ".v", &SI); in foldSelectOpOp()
346 FMF |= SI.getFastMathFlags(); in foldSelectOpOp()
348 Builder.CreateSelect(Cond, X, Y, SI.getName() + ".v", &SI); in foldSelectOpOp()
366 Builder.CreateSelect(Cond, OtherOpT, OtherOpF, "minmaxop", &SI); in foldSelectOpOp()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DObject.h141 LLVMBinaryRef BR, LLVMSectionIteratorRef SI);
163 LLVMObjectFileIsSymbolIteratorAtEnd(LLVMBinaryRef BR, LLVMSymbolIteratorRef SI);
165 LLVM_C_ABI void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI);
167 LLVM_C_ABI void LLVMMoveToNextSection(LLVMSectionIteratorRef SI);
172 LLVM_C_ABI void LLVMDisposeSymbolIterator(LLVMSymbolIteratorRef SI);
173 LLVM_C_ABI void LLVMMoveToNextSymbol(LLVMSymbolIteratorRef SI);
176 LLVM_C_ABI const char *LLVMGetSectionName(LLVMSectionIteratorRef SI);
177 LLVM_C_ABI uint64_t LLVMGetSectionSize(LLVMSectionIteratorRef SI);
178 LLVM_C_ABI const char *LLVMGetSectionContents(LLVMSectionIteratorRef SI);
179 LLVM_C_ABI uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef 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()
61 for (SDep &SI : SecondSU.Preds) in fuseInstructionPair()
62 if (SI.isCluster()) in fuseInstructionPair()
94 for (SDep &SI : FirstSU.Succs) in fuseInstructionPair()
95 if (SI.getSUnit() == &SecondSU) in fuseInstructionPair()
96 SI.setLatency(0); in fuseInstructionPair()
[all …]
H A DSelectOptimize.cpp267 Instruction *SI, bool ForSinking = false);
270 bool isSelectHighlyPredictable(const SelectLike SI);
295 Scaled64 getMispredictionCost(const SelectLike SI, const Scaled64 CondCost);
299 const SelectLike SI);
302 bool isSelectKindSupported(const SelectLike SI);
480 SelectOptimizeImpl::SelectLike &SI, bool isTrue, in getTrueOrFalseValue() argument
483 Value *V = isTrue ? SI.getTrueValue() : SI.getFalseValue(); in getTrueOrFalseValue()
491 auto *BO = cast<BinaryOperator>(SI.getI()); in getTrueOrFalseValue()
498 auto CondIdx = SI.getConditionOpIndex(); in getTrueOrFalseValue()
560 for (SelectLike &SI : ASI.Selects) { in convertProfitableSIGroups()
[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().id()); in verify()
106 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { in getOneVReg() local
108 return SI.value(); in getOneVReg()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DStatepointLowering.cpp319 SelectionDAGBuilder::StatepointLoweringInfo &SI, in lowerCallFromStatepointLoweringInfo() argument
323 Builder.lowerInvokable(SI.CLI, SI.EHPadBB); in lowerCallFromStatepointLoweringInfo()
345 bool HasDef = !SI.CLI.RetTy->isVoidTy(); in lowerCallFromStatepointLoweringInfo()
524 SelectionDAGBuilder::StatepointLoweringInfo &SI, in lowerStatepointMetaArgs() argument
540 SI.StatepointFlags & (uint64_t)StatepointFlags::DeoptLiveIn; in lowerStatepointMetaArgs()
550 dyn_cast_or_null<InvokeInst>(SI.StatepointInstr)) { in lowerStatepointMetaArgs()
552 for (const auto *Relocate : SI.GCRelocates) in lowerStatepointMetaArgs()
596 for (const Value *V : SI.Ptrs) in lowerStatepointMetaArgs()
598 for (const Value *V : SI.Bases) in lowerStatepointMetaArgs()
617 for (const Value *V : SI.DeoptState) { in lowerStatepointMetaArgs()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DSimpleRemoteEPCUtils.h210 static size_t size(const SimpleRemoteEPCExecutorInfo &SI) { in size() argument
212 SI.TargetTriple, SI.PageSize, SI.BootstrapMap, SI.BootstrapSymbols); in size()
216 const SimpleRemoteEPCExecutorInfo &SI) { in serialize() argument
218 OB, SI.TargetTriple, SI.PageSize, SI.BootstrapMap, SI.BootstrapSymbols); in serialize()
221 static bool deserialize(SPSInputBuffer &IB, SimpleRemoteEPCExecutorInfo &SI) { in deserialize() argument
223 IB, SI.TargetTriple, SI.PageSize, SI.BootstrapMap, SI.BootstrapSymbols); in deserialize()
/freebsd/contrib/llvm-project/llvm/lib/MCA/Stages/
H A DInOrderIssueStage.cpp57 return !IssuedInst.empty() || SI.isValid() || CarriedOver; in hasWorkToComplete()
61 if (SI.isValid() || CarriedOver) in isAvailable()
116 assert(!SI.getCyclesLeft() && "Should not have reached this code!"); in canExecute()
117 assert(!SI.isValid() && "Should not have reached this code!"); in canExecute()
120 SI.update(IR, Cycles, StallInfo::StallKind::REGISTER_DEPS); in canExecute()
125 SI.update(IR, /* delay */ 1, StallInfo::StallKind::DISPATCH); in canExecute()
132 SI.update(IR, /* delay */ 1, StallInfo::StallKind::LOAD_STORE); in canExecute()
137 SI.update(IR, CustomStallCycles, StallInfo::StallKind::CUSTOM_STALL); in canExecute()
146 SI.update(IR, LastWriteBackCycle - NextWriteBackCycle, in canExecute()
206 if (SI.isValid()) in execute()
[all …]
/freebsd/stand/uboot/
H A Duboot_disk.c66 #define SI(dev) (stor_info[(dev)->dd.d_unit]) macro
158 if (size % SI(dev).bsize) { in stor_strategy()
161 size, SI(dev).bsize); in stor_strategy()
164 bcount = size / SI(dev).bsize; in stor_strategy()
196 if (SI(dev).opened == 0) { in stor_opendev()
197 err = ub_dev_open(SI(dev).handle); in stor_opendev()
200 "handle=%d\n", err, SI(dev).handle); in stor_opendev()
203 SI(dev).opened++; in stor_opendev()
205 return (disk_open(dev, SI(dev).blocks * SI(dev).bsize, in stor_opendev()
206 SI(dev).bsize)); in stor_opendev()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
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
254 CheckedInt SI; global() member
[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/Target/AMDGPU/
H A DAMDGPUMarkLastScratchLoad.cpp32 SlotIndexes *SI = nullptr; member in __anonbeb091f80111::AMDGPUMarkLastScratchLoad
36 AMDGPUMarkLastScratchLoad(LiveStacks *LS, LiveIntervals *LIS, SlotIndexes *SI) in AMDGPUMarkLastScratchLoad() argument
37 : LS(LS), LIS(LIS), SI(SI) {} in AMDGPUMarkLastScratchLoad()
71 auto &SI = getAnalysis<SlotIndexesWrapperPass>().getSI(); in runOnMachineFunction() local
73 return AMDGPUMarkLastScratchLoad(&LS, &LIS, &SI).run(MF); in runOnMachineFunction()
81 auto &SI = MFAM.getResult<SlotIndexesAnalysis>(MF); in run() local
83 AMDGPUMarkLastScratchLoad(&LS, &LIS, &SI).run(MF); in run()
116 MachineInstr *MISegmentEnd = SI->getInstructionFromIndex(Segment.end); in run()
122 MISegmentEnd = SI->getInstructionFromIndex(NextSlot); in run()
125 MachineInstr *MISegmentStart = SI->getInstructionFromIndex(Segment.start); in run()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DDebuggerSupportPlugin.cpp
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp353 void fixupSelect(SelectInst *SI, CHRScope *Scope, IRBuilder<> &IRB,
659 SelectInst *SI, Region *R, in checkBiasedSelect() argument
664 if (!extractBranchProbabilities(SI, TrueProb, FalseProb)) in checkBiasedSelect()
666 CHR_DEBUG(dbgs() << "SI " << *SI << " "); in checkBiasedSelect()
669 return checkBias(SI, TrueProb, FalseProb, in checkBiasedSelect()
683 for (SelectInst *SI : RI.Selects) { in getBranchInsertPoint()
684 if (SI->getParent() == EntryBB) { in getBranchInsertPoint()
687 HoistPoint = SI; in getBranchInsertPoint()
696 for (SelectInst *SI : RI.Selects) { in getBranchInsertPoint()
697 if (SI->getParent() == EntryBB) { in getBranchInsertPoint()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCRegisterInfo.cpp33 MCSuperRegIterator SI; member in __anon1f4922b00111::MCRegAliasIteratorImpl
42 for (SI = MCSuperRegIterator(*RRI, MCRI, true); SI.isValid(); ++SI) { in MCRegAliasIteratorImpl()
43 if (Reg != *SI) in MCRegAliasIteratorImpl()
53 assert(SI.isValid() && "Cannot dereference an invalid iterator."); in operator *()
54 return *SI; in operator *()
59 ++SI; in advance()
60 if (SI.isValid()) in advance()
65 SI = MCSuperRegIterator(*RRI, MCRI, true); in advance()
72 SI = MCSuperRegIterator(*RRI, MCRI, true); in advance()
80 while (isValid() && *SI == Reg); in operator ++()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp234 isSafeSelectToSpeculate(SelectInst &SI, bool PreserveCFG);
740 iterator SI, SJ; member in __anondf5662880411::Partition
747 Partition(iterator SI) : SI(SI), SJ(SI) {} in Partition() argument
770 bool empty() const { return SI == SJ; } in empty()
781 iterator begin() const { return SI; } in begin()
822 partition_iterator(AllocaSlices::iterator SI, AllocaSlices::iterator SE) in partition_iterator() argument
823 : P(SI), SE(SE) { in partition_iterator()
826 if (SI != SE) in partition_iterator()
834 assert((P.SI != SE || !P.SplitTails.empty()) && in advance()
864 if (P.SI == SE) { in advance()
[all …]
H A DDFAJumpThreading.cpp127 SelectInst *SI; member in __anonfb50cc300111::SelectInstToUnfold
131 SelectInstToUnfold(SelectInst *SI, PHINode *SIUse) : SI(SI), SIUse(SIUse) {} in SelectInstToUnfold() argument
133 SelectInst *getInst() { return SI; } in getInst()
136 explicit operator bool() const { return SI && SIUse; } in operator bool()
192 SelectInst *SI = SIToUnfold.getInst(); in unfold() local
194 BasicBlock *StartBlock = SI->getParent(); in unfold()
199 assert(SI->hasOneUse()); in unfold()
205 SI->getContext(), Twine(SI->getName(), ".si.unfold.false"), in unfold()
216 Value *SIOp1 = SI->getTrueValue(); in unfold()
217 Value *SIOp2 = SI->getFalseValue(); in unfold()
[all …]
H A DMemCpyOptimizer.cpp124 for (Instruction *SI : TheStores) in isProfitableToUseMemset()
125 if (!isa<StoreInst>(SI)) in isProfitableToUseMemset()
178 if (auto *SI = dyn_cast<StoreInst>(Inst)) in addInst() local
179 addStore(OffsetFromFirst, SI); in addInst()
184 void addStore(int64_t OffsetFromFirst, StoreInst *SI) { in addStore() argument
185 TypeSize StoreSize = DL.getTypeStoreSize(SI->getOperand(0)->getType()); in addStore()
188 SI->getPointerOperand(), SI->getAlign(), SI); in addStore()
357 if (auto *SI = dyn_cast<StoreInst>(StartInst)) in tryMergingIntoMemset() local
358 if (DL.getTypeStoreSize(SI->getOperand(0)->getType()).isScalable()) in tryMergingIntoMemset()
476 LLVM_DEBUG(dbgs() << "Replace stores:\n"; for (Instruction *SI in tryMergingIntoMemset()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp77 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) { in runOnFunction() local
78 if (SI->getOperand(0) != LI) in runOnFunction()
104 auto *SI = cast<StoreInst>(*LI->user_begin()); in runOnFunction() local
106 Value *DstAddr = SI->getOperand(1); in runOnFunction()
111 createMemCpyLoopKnownSize(/* ConvertedInst */ SI, in runOnFunction()
115 /* DestAlign */ SI->getAlign(), in runOnFunction()
117 /* DstIsVolatile */ SI->isVolatile(), in runOnFunction()
120 SI->eraseFromParent(); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp307 unsigned Clusterify(CaseVector &Cases, SwitchInst *SI) { in Clusterify() argument
311 for (auto Case : SI->cases()) { in Clusterify()
312 if (Case.getCaseSuccessor() == SI->getDefaultDest()) in Clusterify()
349 void ProcessSwitchInst(SwitchInst *SI, in ProcessSwitchInst() argument
352 BasicBlock *OrigBlock = SI->getParent(); in ProcessSwitchInst()
354 Value *Val = SI->getCondition(); // The value we are switching on... in ProcessSwitchInst()
355 BasicBlock *Default = SI->getDefaultDest(); in ProcessSwitchInst()
367 const unsigned NumSimpleCases = Clusterify(Cases, SI); in ProcessSwitchInst()
368 IntegerType *IT = cast<IntegerType>(SI->getCondition()->getType()); in ProcessSwitchInst()
383 SI->eraseFromParent(); in ProcessSwitchInst()
[all …]
H A DSimplifyCFG.cpp283 bool simplifySwitch(SwitchInst *SI, IRBuilder<> &Builder);
284 bool simplifyDuplicateSwitchArms(SwitchInst *SI, DomTreeUpdater *DTU);
303 bool simplifySwitchOnSelect(SwitchInst *SI, SelectInst *Select);
304 bool simplifyIndirectBrOnSelect(IndirectBrInst *IBI, SelectInst *SI);
305 bool turnSwitchRangeIntoICmp(SwitchInst *SI, IRBuilder<> &Builder);
784 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in eraseTerminatorAndDCECond() local
785 Cond = dyn_cast<Instruction>(SI->getCondition()); in eraseTerminatorAndDCECond()
802 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in isValueEqualityComparison() local
805 if (!SI->getParent()->hasNPredecessorsOrMore(128 / SI->getNumSuccessors())) in isValueEqualityComparison()
806 CV = SI->getCondition(); in isValueEqualityComparison()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILResourceAccess.cpp54 static void createTypedBufferStore(IntrinsicInst *II, StoreInst *SI, in createTypedBufferStore() argument
56 IRBuilder<> Builder(SI); in createTypedBufferStore()
60 Value *V = SI->getValueOperand(); in createTypedBufferStore()
83 SI->replaceAllUsesWith(Inst); in createTypedBufferStore()
86 static void createRawStore(IntrinsicInst *II, StoreInst *SI, Value *Offset) { in createRawStore() argument
87 IRBuilder<> Builder(SI); in createRawStore()
91 Value *V = SI->getValueOperand(); in createRawStore()
96 SI->replaceAllUsesWith(Inst); in createRawStore()
99 static void createStoreIntrinsic(IntrinsicInst *II, StoreInst *SI, in createStoreIntrinsic() argument
103 return createTypedBufferStore(II, SI, Offset, RTI); in createStoreIntrinsic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInterleavedAccess.cpp163 bool RISCVTargetLowering::lowerInterleavedStore(StoreInst *SI, in lowerInterleavedStore() argument
166 IRBuilder<> Builder(SI); in lowerInterleavedStore()
167 const DataLayout &DL = SI->getDataLayout(); in lowerInterleavedStore()
173 if (!isLegalInterleavedAccessType(VTy, Factor, SI->getAlign(), in lowerInterleavedStore()
174 SI->getPointerAddressSpace(), DL)) in lowerInterleavedStore()
177 auto *PtrTy = SI->getPointerOperandType(); in lowerInterleavedStore()
178 auto *XLenTy = Type::getIntNTy(SI->getContext(), Subtarget.getXLen()); in lowerInterleavedStore()
192 Value *BasePtr = Builder.CreatePtrAdd(SI->getPointerOperand(), Offset); in lowerInterleavedStore()
201 1, Attribute::getWithAlignment(CI->getContext(), SI->getAlign())); in lowerInterleavedStore()
207 SI->getModule(), FixedVssegIntrIds[Factor - 2], {VTy, PtrTy, XLenTy}); in lowerInterleavedStore()
[all …]

12345678910>>...21