/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | Object.cpp | 33 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 D | InstCombineLoadStoreAlloca.cpp | 322 } else if (auto *SI = dyn_cast<SelectInst>(Inst)) { in collectUsersRecursive() local 323 if (!isa<Instruction>(SI->getTrueValue()) || in collectUsersRecursive() 324 !isa<Instruction>(SI->getFalseValue())) in collectUsersRecursive() 327 if (!isAvailable(cast<Instruction>(SI->getTrueValue())) || in collectUsersRecursive() 328 !isAvailable(cast<Instruction>(SI->getFalseValue()))) { in collectUsersRecursive() 332 Worklist.insert(SI); in collectUsersRecursive() 333 if (!collectUsersRecursive(*SI)) in collectUsersRecursive() 396 } else if (auto *SI = dyn_cast<SelectInst>(I)) { in replace() local 397 Value *TrueValue = SI->getTrueValue(); in replace() 398 Value *FalseValue = SI->getFalseValue(); in replace() [all …]
|
H A D | InstCombineSelect.cpp | 271 Instruction *InstCombinerImpl::foldSelectOpOp(SelectInst &SI, Instruction *TI, in foldSelectOpOp() argument 277 if ((match(&SI, m_SMin(m_Value(), m_Value())) || in foldSelectOpOp() 278 match(&SI, m_SMax(m_Value(), m_Value())) || in foldSelectOpOp() 279 match(&SI, m_UMin(m_Value(), m_Value())) || in foldSelectOpOp() 280 match(&SI, m_UMax(m_Value(), m_Value())))) in foldSelectOpOp() 284 Value *Cond = SI.getCondition(); in foldSelectOpOp() 320 SI.getName() + ".v", &SI); in foldSelectOpOp() 373 FMF |= SI.getFastMathFlags(); in foldSelectOpOp() 375 Builder.CreateSelect(Cond, X, Y, SI.getName() + ".v", &SI); in foldSelectOpOp() 393 Builder.CreateSelect(Cond, OtherOpT, OtherOpF, "minmaxop", &SI); in foldSelectOpOp() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SelectOptimize.cpp | 331 Instruction *SI, bool ForSinking = false); 334 bool isSelectHighlyPredictable(const SelectLike SI); 354 Scaled64 getMispredictionCost(const SelectLike SI, const Scaled64 CondCost); 358 const SelectLike SI); 361 bool isSelectKindSupported(const SelectLike SI); 533 getTrueOrFalseValue(SelectOptimizeImpl::SelectLike SI, bool isTrue, in getTrueOrFalseValue() argument 537 for (SelectInst *DefSI = dyn_cast<SelectInst>(SI.getI()); in getTrueOrFalseValue() 540 if (DefSI->getCondition() == SI.getCondition()) in getTrueOrFalseValue() 546 if (isa<BinaryOperator>(SI.getI())) { in getTrueOrFalseValue() 547 assert(SI.getI()->getOpcode() == Instruction::Or && in getTrueOrFalseValue() [all …]
|
H A D | MacroFusion.cpp | 39 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() 82 for (SDep &SI : FirstSU.Succs) in fuseInstructionPair() 83 if (SI.getSUnit() == &SecondSU) in fuseInstructionPair() 84 SI in fuseInstructionPair() 99 for (const SDep &SI : FirstSU.Succs) { fuseInstructionPair() local 112 for (const SDep &SI : SecondSU.Preds) { fuseInstructionPair() local [all...] |
H A D | LiveIntervalUnion.cpp | 88 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { in print() 89 OS << " [" << SI.start() << ' ' << SI.stop() in print() local 90 << "):" << printReg(SI.value()->reg(), TRI); in print() 98 for (SegmentIter SI = Segments.begin(); SI.valid(); ++SI) in verify() 99 VisitedVRegs.set(SI in verify() local 107 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { getOneVReg() local [all...] |
H A D | InterleavedAccessPass.cpp | 107 bool lowerInterleavedStore(StoreInst *SI, 457 StoreInst *SI, SmallVector<Instruction *, 32> &DeadInsts) { in lowerInterleavedStore() argument 458 if (!SI->isSimple()) in lowerInterleavedStore() 461 auto *SVI = dyn_cast<ShuffleVectorInst>(SI->getValueOperand()); in lowerInterleavedStore() 470 LLVM_DEBUG(dbgs() << "IA: Found an interleaved store: " << *SI << "\n"); in lowerInterleavedStore() 473 if (!TLI->lowerInterleavedStore(SI, SVI, Factor)) in lowerInterleavedStore() 477 DeadInsts.push_back(SI); in lowerInterleavedStore() 506 StoreInst *SI = dyn_cast<StoreInst>(*(II->users().begin())); in lowerInterleaveIntrinsic() local 508 if (!SI || !SI->isSimple()) in lowerInterleaveIntrinsic() 514 if (!TLI->lowerInterleaveIntrinsicToStore(II, SI)) in lowerInterleaveIntrinsic() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | Object.h | 141 LLVMSectionIteratorRef SI); 162 LLVMSymbolIteratorRef SI); 164 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); 177 const char *LLVMGetSectionContents(LLVMSectionIteratorRef SI); 178 uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef SI); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | StatepointLowering.cpp | 320 SelectionDAGBuilder::StatepointLoweringInfo &SI, in lowerCallFromStatepointLoweringInfo() argument 324 Builder.lowerInvokable(SI.CLI, SI.EHPadBB); in lowerCallFromStatepointLoweringInfo() 346 bool HasDef = !SI.CLI.RetTy->isVoidTy(); in lowerCallFromStatepointLoweringInfo() 525 SelectionDAGBuilder::StatepointLoweringInfo &SI, in lowerStatepointMetaArgs() argument 541 SI.StatepointFlags & (uint64_t)StatepointFlags::DeoptLiveIn; in lowerStatepointMetaArgs() 551 dyn_cast_or_null<InvokeInst>(SI.StatepointInstr)) { in lowerStatepointMetaArgs() 553 for (const auto *Relocate : SI.GCRelocates) in lowerStatepointMetaArgs() 597 for (const Value *V : SI.Ptrs) in lowerStatepointMetaArgs() 599 for (const Value *V : SI.Bases) in lowerStatepointMetaArgs() 618 for (const Value *V : SI.DeoptState) { in lowerStatepointMetaArgs() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
H A D | SimpleRemoteEPCUtils.h | 209 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 D | InOrderIssueStage.cpp | 57 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 D | uboot_disk.c | 65 #define SI(dev) (stor_info[(dev)->dd.d_unit]) macro 157 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() 199 "handle=%d\n", err, 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() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | Sequence.h | 196 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 D | ARCExpandPseudos.cpp | 64 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/ExecutionEngine/Orc/ |
H A D | DebuggerSupportPlugin.cpp |
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | ControlHeightReduction.cpp | 355 void fixupSelect(SelectInst *SI, CHRScope *Scope, IRBuilder<> &IRB, 661 SelectInst *SI, Region *R, in checkBiasedSelect() argument 666 if (!extractBranchProbabilities(SI, TrueProb, FalseProb)) in checkBiasedSelect() 668 CHR_DEBUG(dbgs() << "SI " << *SI << " "); in checkBiasedSelect() 671 return checkBias(SI, TrueProb, FalseProb, in checkBiasedSelect() 685 for (SelectInst *SI : RI.Selects) { in getBranchInsertPoint() 686 if (SI->getParent() == EntryBB) { in getBranchInsertPoint() 689 HoistPoint = SI; in getBranchInsertPoint() 698 for (SelectInst *SI : RI.Selects) { in getBranchInsertPoint() 699 if (SI->getParent() == EntryBB) { in getBranchInsertPoint() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCRegisterInfo.cpp | 33 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 D | SROA.cpp | 231 isSafeSelectToSpeculate(SelectInst &SI, bool PreserveCFG); 735 iterator SI, SJ; member in __anondf5662880411::Partition 742 Partition(iterator SI) : SI(SI), SJ(SI) {} in Partition() argument 765 bool empty() const { return SI == SJ; } in empty() 776 iterator begin() const { return SI; } in begin() 817 partition_iterator(AllocaSlices::iterator SI, AllocaSlices::iterator SE) in partition_iterator() argument 818 : P(SI), SE(SE) { in partition_iterator() 821 if (SI != SE) in partition_iterator() 829 assert((P.SI != SE || !P.SplitTails.empty()) && in advance() 859 if (P.SI == SE) { in advance() [all …]
|
H A D | MemCpyOptimizer.cpp | 121 for (Instruction *SI : TheStores) in isProfitableToUseMemset() 122 if (!isa<StoreInst>(SI)) in isProfitableToUseMemset() 175 if (auto *SI = dyn_cast<StoreInst>(Inst)) in addInst() local 176 addStore(OffsetFromFirst, SI); in addInst() 181 void addStore(int64_t OffsetFromFirst, StoreInst *SI) { in addStore() argument 182 TypeSize StoreSize = DL.getTypeStoreSize(SI->getOperand(0)->getType()); in addStore() 185 SI->getPointerOperand(), SI->getAlign(), SI); in addStore() 364 if (auto *SI = dyn_cast<StoreInst>(StartInst)) in tryMergingIntoMemset() local 365 if (DL.getTypeStoreSize(SI->getOperand(0)->getType()).isScalable()) in tryMergingIntoMemset() 483 LLVM_DEBUG(dbgs() << "Replace stores:\n"; for (Instruction *SI in tryMergingIntoMemset() [all …]
|
H A D | DFAJumpThreading.cpp | 122 SelectInst *SI; member in __anonfb50cc300111::SelectInstToUnfold 126 SelectInstToUnfold(SelectInst *SI, PHINode *SIUse) : SI(SI), SIUse(SIUse) {} in SelectInstToUnfold() argument 128 SelectInst *getInst() { return SI; } in getInst() 131 explicit operator bool() const { return SI && SIUse; } in operator bool() 182 DomTreeUpdater *DTU, SelectInst *SI, PHINode *SIUse, SelectInst *SIToSink, in createBasicBlockAndSinkSelectInst() argument 189 *NewBlock = BasicBlock::Create(SI->getContext(), NewBBName, in createBasicBlockAndSinkSelectInst() 208 SelectInst *SI = SIToUnfold.getInst(); in unfold() local 210 BasicBlock *StartBlock = SI->getParent(); in unfold() 216 assert(SI->hasOneUse()); in unfold() 226 if (SelectInst *SIOp = dyn_cast<SelectInst>(SI->getTrueValue())) { in unfold() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXLowerAggrCopies.cpp | 78 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 D | NVPTXLowerAlloca.cpp | 93 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 D | SimplifyCFG.cpp | 265 bool simplifySwitch(SwitchInst *SI, IRBuilder<> &Builder); 284 bool SimplifySwitchOnSelect(SwitchInst *SI, SelectInst *Select); 285 bool SimplifyIndirectBrOnSelect(IndirectBrInst *IBI, SelectInst *SI); 286 bool TurnSwitchRangeIntoICmp(SwitchInst *SI, IRBuilder<> &Builder); 759 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in EraseTerminatorAndDCECond() local 760 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorAndDCECond() 777 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in isValueEqualityComparison() local 780 if (!SI->getParent()->hasNPredecessorsOrMore(128 / SI->getNumSuccessors())) in isValueEqualityComparison() 781 CV = SI->getCondition(); in isValueEqualityComparison() 804 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in GetValueEqualityComparisonCases() local [all …]
|
H A D | LowerSwitch.cpp | 309 unsigned Clusterify(CaseVector &Cases, SwitchInst *SI) { in Clusterify() argument 313 for (auto Case : SI->cases()) { in Clusterify() 314 if (Case.getCaseSuccessor() == SI->getDefaultDest()) in Clusterify() 351 void ProcessSwitchInst(SwitchInst *SI, in ProcessSwitchInst() argument 354 BasicBlock *OrigBlock = SI->getParent(); in ProcessSwitchInst() 356 Value *Val = SI->getCondition(); // The value we are switching on... in ProcessSwitchInst() 357 BasicBlock *Default = SI->getDefaultDest(); in ProcessSwitchInst() 369 const unsigned NumSimpleCases = Clusterify(Cases, SI); in ProcessSwitchInst() 370 IntegerType *IT = cast<IntegerType>(SI->getCondition()->getType()); in ProcessSwitchInst() 385 SI->eraseFromParent(); in ProcessSwitchInst() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | GCNRegPressure.h | 176 GCNRPTracker::LiveRegSet getLiveRegs(SlotIndex SI, const LiveIntervals &LIS, 187 void reset(const MachineRegisterInfo &MRI, SlotIndex SI) { in reset() argument 188 reset(MRI, llvm::getLiveRegs(SI, LIS, MRI)); in reset() 263 SlotIndex SI, 267 LaneBitmask getLiveLaneMask(const LiveInterval &LI, SlotIndex SI, 270 GCNRPTracker::LiveRegSet getLiveRegs(SlotIndex SI, const LiveIntervals &LIS, 285 auto SI = SII.getInstructionIndex(*I); in getLiveRegMap() local 286 Indexes.push_back(After ? SI.getDeadSlot() : SI.getBaseIndex()); in getLiveRegMap() 302 for (auto SI : LiveIdxs) in getLiveRegMap() local 303 LiveRegMap[SII.getInstructionFromIndex(SI)][Reg] = in getLiveRegMap() [all …]
|