| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | RenameIndependentSubregs.cpp | 56 LiveInterval::SubRange *SR; member 59 SubRangeInfo(LiveIntervals &LIS, LiveInterval::SubRange &SR, in SubRangeInfo() 61 : ConEQ(LIS), SR(&SR), Index(Index) {} in SubRangeInfo() 167 for (LiveInterval::SubRange &SR : LI.subranges()) { in findComponents() 168 SubRangeInfos.push_back(SubRangeInfo(*LIS, SR, NumComponents)); in findComponents() 171 unsigned NumSubComponents = ConEQ.Classify(SR); in findComponents() 192 const LiveInterval::SubRange &SR = *SRInfo.SR; in findComponents() local 193 if ((SR.LaneMask & LaneMask).none()) in findComponents() 198 const VNInfo *VNI = SR.getVNInfoAt(Pos); in findComponents() 237 const LiveInterval::SubRange &SR = *SRInfo.SR; in rewriteOperands() local [all …]
|
| H A D | VirtRegMap.cpp | 375 for (const LiveInterval::SubRange &SR : LI.subranges()) { in addLiveInsForSubRanges() local 376 SubRanges.push_back(std::make_pair(&SR, SR.begin())); in addLiveInsForSubRanges() 377 if (!First.isValid() || SR.segments.front().start < First) in addLiveInsForSubRanges() 378 First = SR.segments.front().start; in addLiveInsForSubRanges() 379 if (!Last.isValid() || SR.segments.back().end > Last) in addLiveInsForSubRanges() 380 Last = SR.segments.back().end; in addLiveInsForSubRanges() 392 const LiveInterval::SubRange *SR = RangeIterPair.first; in addLiveInsForSubRanges() local 394 while (SRI != SR->end() && SRI->end <= MBBBegin) in addLiveInsForSubRanges() 396 if (SRI == SR->end()) in addLiveInsForSubRanges() 399 LaneMask |= SR->LaneMask; in addLiveInsForSubRanges() [all …]
|
| H A D | LiveInterval.cpp | 872 static void stripValuesNotDefiningMask(Register Reg, LiveInterval::SubRange &SR, in stripValuesNotDefiningMask() argument 883 for (VNInfo *VNI : SR.valnos) { in stripValuesNotDefiningMask() 913 SR.removeValNo(VNI); in stripValuesNotDefiningMask() 925 for (SubRange &SR : subranges()) { in refineSubRanges() 926 LaneBitmask SRMask = SR.LaneMask; in refineSubRanges() 934 MatchingRange = &SR; in refineSubRanges() 938 SR.LaneMask = SRMask & ~Matching; in refineSubRanges() 940 MatchingRange = createSubRangeFrom(Allocator, Matching, SR); in refineSubRanges() 945 stripValuesNotDefiningMask(reg(), SR, SR.LaneMask, Indexes, TRI, in refineSubRanges() 1038 for (const SubRange &SR : subranges()) in print() local [all …]
|
| H A D | RegisterCoalescer.cpp | 1019 &ShrinkB](LiveInterval::SubRange &SR) { in removeCopyByCommutingDef() argument 1020 VNInfo *BSubValNo = SR.empty() ? SR.getNextValue(CopyIdx, Allocator) in removeCopyByCommutingDef() 1021 : SR.getVNInfoAt(CopyIdx); in removeCopyByCommutingDef() 1023 auto P = addSegmentsWithValNo(SR, BSubValNo, SA, ASubValNo); in removeCopyByCommutingDef() 1207 for (LiveInterval::SubRange &SR : IntB.subranges()) in removePartialRedundancy() 1208 SR.createDeadDef(NewCopyIdx, LIS->getVNInfoAllocator()); in removePartialRedundancy() 1251 for (LiveInterval::SubRange &SR : IntB.subranges()) { in removePartialRedundancy() 1253 VNInfo *BValNo = SR.Query(CopyIdx).valueOutOrDead(); in removePartialRedundancy() 1255 LIS->pruneValue(SR, CopyIdx.getRegSlot(), &EndPoints); in removePartialRedundancy() 1272 IntB.computeSubRangeUndefs(Undefs, SR.LaneMask, *MRI, in removePartialRedundancy() [all …]
|
| /freebsd/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | RISCVVEmitter.cpp | 353 for (const SemaRecord &SR : SemaRecords) { in init() local 354 InsertToSignatureSet(SR.Prototype); in init() 355 InsertToSignatureSet(SR.Suffix); in init() 356 InsertToSignatureSet(SR.OverloadedSuffix); in init() 757 SemaRecord SR; in createRVVIntrinsics() local 758 SR.Name = Name.str(); in createRVVIntrinsics() 759 SR.OverloadedName = OverloadedName.str(); in createRVVIntrinsics() 764 SR.TypeRangeMask = static_cast<unsigned>(TypeRangeMask); in createRVVIntrinsics() 770 SR.Log2LMULMask = Log2LMULMask; in createRVVIntrinsics() 773 SR.RequiredExtensions = RFs; in createRVVIntrinsics() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | DynamicType.cpp | 54 if (const auto *SR = dyn_cast<SymbolicRegion>(MR)) { in getDynamicTypeInfo() local 55 SymbolRef Sym = SR->getSymbol(); in getDynamicTypeInfo() 157 static bool isLive(SymbolReaper &SR, const MemRegion *MR) { in isLive() argument 158 return SR.isLiveRegion(MR); in isLive() 161 static bool isLive(SymbolReaper &SR, SymbolRef Sym) { return SR.isLive(Sym); } in isLive() argument 164 static ProgramStateRef removeDeadImpl(ProgramStateRef State, SymbolReaper &SR) { in removeDeadImpl() argument 168 if (!isLive(SR, Elem.first)) in removeDeadImpl() 174 ProgramStateRef removeDeadTypes(ProgramStateRef State, SymbolReaper &SR) { in removeDeadTypes() argument 175 return removeDeadImpl<DynamicTypeMap>(State, SR); in removeDeadTypes() 178 ProgramStateRef removeDeadCasts(ProgramStateRef State, SymbolReaper &SR) { in removeDeadCasts() argument [all …]
|
| H A D | Store.cpp | 290 if (const auto *SR = in evalDerivedToBase() local 292 if (SR->getSymbol()->getType()->getPointeeCXXRecordDecl() == BaseDecl) in evalDerivedToBase() 293 return loc::MemRegionVal(SR); in evalDerivedToBase() 313 if (const auto *SR = dyn_cast<SymbolicRegion>(MR)) in getCXXRecordType() local 314 return SR->getSymbol()->getType()->getPointeeCXXRecordDecl(); in getCXXRecordType() 384 if (const auto *SR = dyn_cast<SymbolicRegion>(MR)) { in evalBaseToDerived() local 385 QualType T = SR->getSymbol()->getType(); in evalBaseToDerived() 389 MRMgr.getCXXDerivedObjectRegion(TargetClass, SR)); in evalBaseToDerived() 390 return loc::MemRegionVal(GetElementZeroRegion(SR, TargetType)); in evalBaseToDerived()
|
| H A D | SymbolManager.cpp | 290 for (auto SR = dyn_cast<SubRegion>(region); SR; in markElementIndicesLive() local 291 SR = dyn_cast<SubRegion>(SR->getSuperRegion())) { in markElementIndicesLive() 292 if (const auto ER = dyn_cast<ElementRegion>(SR)) { in markElementIndicesLive() 314 if (const auto *SR = dyn_cast<SymbolicRegion>(MR)) in isLiveRegion() local 315 return isLive(SR->getSymbol()); in isLiveRegion()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ |
| H A D | DebuggerSupportPlugin.cpp | 141 SectionRange SR(*DSec.GraphSec); in startSynthesis() local 142 DSec.BuilderSec->Content.Size = SR.getSize(); in startSynthesis() 143 if (!SR.empty()) { in startSynthesis() 144 DSec.BuilderSec->align = Log2_64(SR.getFirstBlock()->getAlignment()); in startSynthesis() 145 StringRef SectionData(SR.getFirstBlock()->getContent().data(), in startSynthesis() 146 SR.getFirstBlock()->getSize()); in startSynthesis() 209 SectionRange SR(*NDSP.GraphSec); in startSynthesis() local 210 if (!SR.empty()) in startSynthesis() 211 NDSP.BuilderSec->align = Log2_64(SR.getFirstBlock()->getAlignment()); in startSynthesis() 252 SectionRange SR(*NDSec.GraphSec); in completeSynthesisAndRegister() local [all …]
|
| H A D | PerfSupportPlugin.cpp | 174 auto SR = SectionRange(*Eh_frame); in getUnwindingRecord() local 175 auto EHFrameSize = SR.getSize(); in getUnwindingRecord() 192 auto SR = SectionRange(*Eh_frame_hdr); in getUnwindingRecord() local 193 Record.EHFrameHdrAddr = SR.getStart().getValue(); in getUnwindingRecord() 194 Record.EHFrameHdrSize = SR.getSize(); in getUnwindingRecord() 198 Record.EHFrameAddr = SR.getStart().getValue(); in getUnwindingRecord()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | DefineExternalSectionStartAndEndSymbols.h | 52 auto &SR = getSectionRange(*D.Sec); in operator() local 54 if (SR.empty()) in operator() 57 G.makeDefined(*Sym, *SR.getFirstBlock(), 0, 0, Linkage::Strong, in operator() 60 if (SR.empty()) in operator() 63 G.makeDefined(*Sym, *SR.getLastBlock(), in operator() 64 SR.getLastBlock()->getSize(), 0, Linkage::Strong, in operator()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | RecordSerialization.cpp | 107 BinaryStreamReader SR(S); in consume() local 108 auto EC = consume(SR, Num); in consume() 109 Data = Data.take_back(SR.bytesRemaining()); in consume() 133 BinaryStreamReader SR(S); in consume() local 134 auto EC = consume(SR, Item); in consume() 135 Data = Data.take_back(SR.bytesRemaining()); in consume()
|
| H A D | StringsAndChecksums.cpp | 32 const DebugSubsectionRecord &SR) { in initializeStrings() argument 33 assert(SR.kind() == DebugSubsectionKind::StringTable); in initializeStrings() 37 consumeError(OwnedStrings->initialize(SR.getRecordData())); in initializeStrings()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MacOSXAPIChecker.cpp | 55 const SubRegion *SR = dyn_cast<SubRegion>(R); in getParentIvarRegion() local 56 while (SR) { in getParentIvarRegion() 57 if (const ObjCIvarRegion *IR = dyn_cast<ObjCIvarRegion>(SR)) in getParentIvarRegion() 59 SR = dyn_cast<SubRegion>(SR->getSuperRegion()); in getParentIvarRegion()
|
| H A D | TestAfterDivZeroChecker.cpp | 143 SymbolRef SR = Var.getAsSymbol(); in setDivZeroMap() local 144 if (!SR) in setDivZeroMap() 149 State->add<DivZeroMap>(ZeroState(SR, C.getBlockID(), C.getStackFrame())); in setDivZeroMap() 155 SymbolRef SR = Var.getAsSymbol(); in hasDivZeroMap() local 156 if (!SR) in hasDivZeroMap() 159 ZeroState ZS(SR, C.getBlockID(), C.getStackFrame()); in hasDivZeroMap()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 446 SpellingRegion SR{SM, LocStart, LocEnd}; in adjustSkippedRange() local 447 SR.ColumnStart = 1; in adjustSkippedRange() 449 SR.LineStart == SM.getSpellingLineNumber(PrevTokLoc)) in adjustSkippedRange() 450 SR.LineStart++; in adjustSkippedRange() 452 SR.LineEnd == SM.getSpellingLineNumber(NextTokLoc)) { in adjustSkippedRange() 453 SR.LineEnd--; in adjustSkippedRange() 454 SR.ColumnEnd++; in adjustSkippedRange() 456 if (SR.isInSourceOrder()) in adjustSkippedRange() 457 return SR; in adjustSkippedRange() 488 std::optional<SpellingRegion> SR; in gatherSkippedRegions() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | PrintPasses.cpp | 179 ArrayRef<StringRef> SR, in prepareTempFiles() argument 181 assert(FD.size() >= SR.size() && FileName.size() == FD.size() && in prepareTempFiles() 193 if (I < SR.size()) { in prepareTempFiles() 202 OutStream << SR[I]; in prepareTempFiles() 221 SmallVector<StringRef> SR{Before, After}; in doSystemDiff() local 223 if (prepareTempFiles(FD, SR, FileName)) in doSystemDiff()
|
| /freebsd/contrib/llvm-project/llvm/lib/MCA/Stages/ |
| H A D | EntryStage.cpp | 39 SourceRef SR = SM.peekNext(); in getNextInstruction() local 40 std::unique_ptr<Instruction> Inst = std::make_unique<Instruction>(SR.second); in getNextInstruction() 41 CurrentInstruction = InstRef(SR.first, Inst.get()); in getNextInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenExtract.cpp | 154 uint32_t SR = CSR->getZExtValue(); in INITIALIZE_PASS_DEPENDENCY() local 161 if (!LogicalSR && (SR > SL)) in INITIALIZE_PASS_DEPENDENCY() 163 APInt A = APInt(BW, ~0ULL, true).lshr(SR).shl(SL); in INITIALIZE_PASS_DEPENDENCY() 174 uint32_t U = BW - std::max(SL, SR); in INITIALIZE_PASS_DEPENDENCY() 204 IRB.CreateIntrinsic(IntId, {BF, IRB.getInt32(W), IRB.getInt32(SR)}); in INITIALIZE_PASS_DEPENDENCY()
|
| H A D | RDFCopy.cpp | 188 RegisterRef SR = FR->second; in run() local 189 if (PRI.equal_to(DR, SR)) in run() 192 auto &RDefSR = RDefMap[SR]; in run() 214 << " with " << Print<RegisterRef>(SR, DFG) << " in " in run() 218 unsigned NewReg = MinPhysReg(SR); in run() 243 J.second = SR; in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopConstrainer.cpp | 463 DominatorTree &DT, Type *T, SubRanges SR) in LoopConstrainer() argument 466 MainLoopStructure(LS), SR(SR) {} in LoopConstrainer() 744 Increasing ? SR.LowLimit.has_value() : SR.HighLimit.has_value(); in run() 746 Increasing ? SR.HighLimit.has_value() : SR.LowLimit.has_value(); in run() 757 ExitPreLoopAtSCEV = *SR.LowLimit; in run() 758 else if (cannotBeMinInLoop(*SR.HighLimit, &OriginalLoop, SE, in run() 760 ExitPreLoopAtSCEV = SE.getAddExpr(*SR.HighLimit, MinusOneS); in run() 764 << *(*SR.HighLimit) << "\n"); in run() 784 ExitMainLoopAtSCEV = *SR.HighLimit; in run() 785 else if (cannotBeMinInLoop(*SR.LowLimit, &OriginalLoop, SE, in run() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprObjC.cpp | 26 ObjCMethodDecl *Method, SourceRange SR) in ObjCArrayLiteral() argument 28 NumElements(Elements.size()), Range(SR), ArrayWithObjectsMethod(Method) { in ObjCArrayLiteral() 39 SourceRange SR) { in Create() argument 41 return new (Mem) ObjCArrayLiteral(Elements, T, Method, SR); in Create() 53 SourceRange SR) in ObjCDictionaryLiteral() argument 55 NumElements(VK.size()), HasPackExpansions(HasPackExpansions), Range(SR), in ObjCDictionaryLiteral() 78 ObjCMethodDecl *method, SourceRange SR) { in Create() argument 81 return new (Mem) ObjCDictionaryLiteral(VK, HasPackExpansions, T, method, SR); in Create()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSubtarget.h | 64 template <class SR> SR &getSpecialRegisters() const { in getSpecialRegisters() 65 return *static_cast<SR *>(getSpecialRegisters()); in getSpecialRegisters()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | SValExplainer.h | 56 if (const auto *SR = R->getSuperRegion()->getAs<SymbolicRegion>()) { in isThisObject() local 57 QualType Ty = SR->getPointeeStaticType(); in isThisObject() 60 return isThisObject(SR); in isThisObject() 81 if (auto SR = dyn_cast<SymbolicRegion>(R)) { in VisitMemRegionVal() local 83 if (!isThisObject(SR)) in VisitMemRegionVal() 84 return Visit(SR->getSymbol()); in VisitMemRegionVal()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
| H A D | CodeGenRegisters.cpp | 181 for (const auto &[SRI, SR] : zip_equal(SRIs, SRs)) { in buildObjectGraph() 183 ExplicitSubRegs.push_back(RegBank.getReg(SR)); in buildObjectGraph() 207 for (const auto &[_, SR] : SubRegs) { in inheritRegUnits() 209 changed |= (RegUnits |= SR->RegUnits); in inheritRegUnits() 225 for (auto [SR, Idx] : zip_equal(ExplicitSubRegs, ExplicitSubRegIndices)) { in computeSubRegs() 226 if (!SR->Artificial) in computeSubRegs() 228 if (!SubRegs.try_emplace(Idx, SR).second) in computeSubRegs() 234 SubReg2Idx.try_emplace(SR, Idx); in computeSubRegs() 246 for (const auto &SR : Map) { in computeSubRegs() local 247 if (!SubRegs.insert(SR).second) in computeSubRegs() [all …]
|