/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RenameIndependentSubregs.cpp | 69 LiveInterval::SubRange *SR; member 72 SubRangeInfo(LiveIntervals &LIS, LiveInterval::SubRange &SR, in SubRangeInfo() 74 : ConEQ(LIS), SR(&SR), Index(Index) {} in SubRangeInfo() 161 for (LiveInterval::SubRange &SR : LI.subranges()) { in findComponents() 162 SubRangeInfos.push_back(SubRangeInfo(*LIS, SR, NumComponents)); in findComponents() 165 unsigned NumSubComponents = ConEQ.Classify(SR); in findComponents() 186 const LiveInterval::SubRange &SR = *SRInfo.SR; in findComponents() local 187 if ((SR.LaneMask & LaneMask).none()) in findComponents() 192 const VNInfo *VNI = SR.getVNInfoAt(Pos); in findComponents() 231 const LiveInterval::SubRange &SR = *SRInfo.SR; in rewriteOperands() local [all …]
|
H A D | VirtRegMap.cpp | 305 for (const LiveInterval::SubRange &SR : LI.subranges()) { in addLiveInsForSubRanges() local 306 SubRanges.push_back(std::make_pair(&SR, SR.begin())); in addLiveInsForSubRanges() 307 if (!First.isValid() || SR.segments.front().start < First) in addLiveInsForSubRanges() 308 First = SR.segments.front().start; in addLiveInsForSubRanges() 309 if (!Last.isValid() || SR.segments.back().end > Last) in addLiveInsForSubRanges() 310 Last = SR.segments.back().end; in addLiveInsForSubRanges() 322 const LiveInterval::SubRange *SR = RangeIterPair.first; in addLiveInsForSubRanges() local 324 while (SRI != SR->end() && SRI->end <= MBBBegin) in addLiveInsForSubRanges() 326 if (SRI == SR->end()) in addLiveInsForSubRanges() 329 LaneMask |= SR->LaneMask; in addLiveInsForSubRanges() [all …]
|
H A D | LiveInterval.cpp | 869 /// For each VNI in \p SR, check whether or not that value defines part in stripValuesNotDefiningMask() argument 871 /// from \p SR. in stripValuesNotDefiningMask() 872 static void stripValuesNotDefiningMask(unsigned Reg, LiveInterval::SubRange &SR, in stripValuesNotDefiningMask() 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() 1035 for (const SubRange &SR : subranges()) print() local 1078 for (const SubRange &SR : subranges()) { verify() local [all...] |
H A D | RegisterCoalescer.cpp | 1006 &ShrinkB](LiveInterval::SubRange &SR) { in removeCopyByCommutingDef() argument 1007 VNInfo *BSubValNo = SR.empty() ? SR.getNextValue(CopyIdx, Allocator) in removeCopyByCommutingDef() 1008 : SR.getVNInfoAt(CopyIdx); in removeCopyByCommutingDef() 1010 auto P = addSegmentsWithValNo(SR, BSubValNo, SA, ASubValNo); in removeCopyByCommutingDef() 1194 for (LiveInterval::SubRange &SR : IntB.subranges()) in removePartialRedundancy() 1195 SR.createDeadDef(NewCopyIdx, LIS->getVNInfoAllocator()); in removePartialRedundancy() 1238 for (LiveInterval::SubRange &SR : IntB.subranges()) { in removePartialRedundancy() 1240 VNInfo *BValNo = SR.Query(CopyIdx).valueOutOrDead(); in removePartialRedundancy() 1242 LIS->pruneValue(SR, CopyIdx.getRegSlot(), &EndPoints); in removePartialRedundancy() 1259 IntB.computeSubRangeUndefs(Undefs, SR.LaneMask, *MRI, in removePartialRedundancy() [all …]
|
H A D | LiveIntervalCalc.cpp | 71 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { in calculate() 73 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate() 113 for (const LiveInterval::SubRange &SR : LI.subranges()) { in constructMainRangeFromSubranges() 114 for (const VNInfo *VNI : SR.valnos) { in constructMainRangeFromSubranges() local 72 __anon140b091c0102(LiveInterval::SubRange &SR) calculate() argument
|
H A D | LiveRangeEdit.cpp | 143 for (LiveInterval::SubRange &SR : li.subranges()) { in allUsesAvailableAt() 144 if ((SR.LaneMask & LM).none()) in allUsesAvailableAt() 146 if (!SR.liveAt(UseIdx)) in allUsesAvailableAt() 149 LM &= ~SR.LaneMask; in allUsesAvailableAt() 407 auto *SR = NewLI.createSubRange( in eliminateDeadDef() local 409 SR->addSegment(LiveInterval::Segment(Idx, Idx.getDeadSlot(), in eliminateDeadDef() 410 SR->getNextValue(Idx, Alloc))); in eliminateDeadDef()
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | RISCVVEmitter.cpp | 268 for (const SemaRecord &SR : SemaRecords) { in init() local 269 InsertToSignatureSet(SR.Prototype); in init() 270 InsertToSignatureSet(SR.Suffix); in init() 271 InsertToSignatureSet(SR.OverloadedSuffix); in init() 636 SemaRecord SR; in createRVVIntrinsics() local 637 SR.Name = Name.str(); in createRVVIntrinsics() 638 SR.OverloadedName = OverloadedName.str(); in createRVVIntrinsics() 643 SR.TypeRangeMask = static_cast<unsigned>(TypeRangeMask); in createRVVIntrinsics() 649 SR.Log2LMULMask = Log2LMULMask; in createRVVIntrinsics() 651 SR.RequiredExtensions = 0; in createRVVIntrinsics() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430InstrInfo.td | 172 // sub / add which can clobber SR. 173 let isCodeGenOnly = 1, Defs = [SP, SR], Uses = [SP] in { 182 let isCodeGenOnly = 1, Defs = [SR], Uses = [SP] in { 188 let Uses = [SR] in { 198 let Defs = [SR] in { 268 let Uses = [SR] in 282 Defs = [R11, R12, R13, R14, R15, SR], 449 let Defs = [SR], Uses = uses in { 455 (implicit SR)]>; 459 (implicit SR)]>; [all...] |
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | DynamicType.cpp | 55 if (const auto *SR = dyn_cast<SymbolicRegion>(MR)) { in getDynamicTypeInfo() local 56 SymbolRef Sym = SR->getSymbol(); in getDynamicTypeInfo() 158 static bool isLive(SymbolReaper &SR, const MemRegion *MR) { in isLive() argument 159 return SR.isLiveRegion(MR); in isLive() 162 static bool isLive(SymbolReaper &SR, SymbolRef Sym) { return SR.isLive(Sym); } in isLive() argument 165 static ProgramStateRef removeDeadImpl(ProgramStateRef State, SymbolReaper &SR) { in removeDeadImpl() argument 169 if (!isLive(SR, Elem.first)) in removeDeadImpl() 175 ProgramStateRef removeDeadTypes(ProgramStateRef State, SymbolReaper &SR) { in removeDeadTypes() argument 176 return removeDeadImpl<DynamicTypeMap>(State, SR); in removeDeadTypes() 179 ProgramStateRef removeDeadCasts(ProgramStateRef State, SymbolReaper &SR) { in removeDeadCasts() argument [all …]
|
H A D | Store.cpp | 288 if (const auto *SR = in evalDerivedToBase() local 290 if (SR->getSymbol()->getType()->getPointeeCXXRecordDecl() == BaseDecl) in evalDerivedToBase() 291 return loc::MemRegionVal(SR); in evalDerivedToBase() 311 if (const auto *SR = dyn_cast<SymbolicRegion>(MR)) in getCXXRecordType() local 312 return SR->getSymbol()->getType()->getPointeeCXXRecordDecl(); in getCXXRecordType() 382 if (const auto *SR = dyn_cast<SymbolicRegion>(MR)) { in evalBaseToDerived() local 383 QualType T = SR->getSymbol()->getType(); in evalBaseToDerived() 387 MRMgr.getCXXDerivedObjectRegion(TargetClass, SR)); in evalBaseToDerived() 388 return loc::MemRegionVal(GetElementZeroRegion(SR, TargetType)); in evalBaseToDerived()
|
H A D | SVals.cpp | 88 while (const auto *SR = dyn_cast<SubRegion>(R)) { in getLocSymbolInBase() local 89 if (const auto *SymR = dyn_cast<SymbolicRegion>(SR)) in getLocSymbolInBase() 92 R = SR->getSuperRegion(); in getLocSymbolInBase() 168 QualType VisitSymbolicRegion(const SymbolicRegion *SR) { in VisitSymbolicRegion() argument 169 return Visit(SR->getSymbol()); in VisitSymbolicRegion()
|
/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/CodeGen/ |
H A D | CoverageMappingGen.cpp | 448 SpellingRegion SR{SM, LocStart, LocEnd}; in adjustSkippedRange() local 449 SR.ColumnStart = 1; in adjustSkippedRange() 451 SR.LineStart == SM.getSpellingLineNumber(PrevTokLoc)) in adjustSkippedRange() 452 SR.LineStart++; in adjustSkippedRange() 454 SR.LineEnd == SM.getSpellingLineNumber(NextTokLoc)) { in adjustSkippedRange() 455 SR.LineEnd--; in adjustSkippedRange() 456 SR.ColumnEnd++; in adjustSkippedRange() 458 if (SR.isInSourceOrder()) in adjustSkippedRange() 459 return SR; in adjustSkippedRange() 490 std::optional<SpellingRegion> SR; in gatherSkippedRegions() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | PrintPasses.cpp | 171 ArrayRef<StringRef> SR, in prepareTempFiles() argument 173 assert(FD.size() >= SR.size() && FileName.size() == FD.size() && in prepareTempFiles() 185 if (I < SR.size()) { in prepareTempFiles() 194 OutStream << SR[I]; in prepareTempFiles() 213 SmallVector<StringRef> SR{Before, After}; in doSystemDiff() local 215 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/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 | 29 ObjCMethodDecl *Method, SourceRange SR) in ObjCArrayLiteral() argument 31 NumElements(Elements.size()), Range(SR), ArrayWithObjectsMethod(Method) { in ObjCArrayLiteral() 42 SourceRange SR) { in Create() argument 44 return new (Mem) ObjCArrayLiteral(Elements, T, Method, SR); in Create() 56 SourceRange SR) in ObjCDictionaryLiteral() argument 58 NumElements(VK.size()), HasPackExpansions(HasPackExpansions), Range(SR), in ObjCDictionaryLiteral() 81 ObjCMethodDecl *method, SourceRange SR) { in Create() argument 84 return new (Mem) ObjCDictionaryLiteral(VK, HasPackExpansions, T, method, SR); in Create()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | RDFCopy.cpp | 189 RegisterRef SR = FR->second; in run() local 190 if (PRI.equal_to(DR, SR)) in run() 193 auto &RDefSR = RDefMap[SR]; in run() 215 << " with " << Print<RegisterRef>(SR, DFG) << " in " in run() 219 unsigned NewReg = MinPhysReg(SR); in run() 244 J.second = SR; in run()
|
H A D | HexagonGenExtract.cpp | 165 uint32_t SR = CSR->getZExtValue(); in INITIALIZE_PASS_DEPENDENCY() local 172 if (!LogicalSR && (SR > SL)) in INITIALIZE_PASS_DEPENDENCY() 174 APInt A = APInt(BW, ~0ULL).lshr(SR).shl(SL); in INITIALIZE_PASS_DEPENDENCY() 185 uint32_t U = BW - std::max(SL, SR); in INITIALIZE_PASS_DEPENDENCY() 216 Value *NewIn = IRB.CreateCall(ExtF, {BF, IRB.getInt32(W), IRB.getInt32(SR)}); in INITIALIZE_PASS_DEPENDENCY()
|
/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/llvm/utils/TableGen/Common/ |
H A D | CodeGenRegisters.cpp | 267 CodeGenRegister *SR = SubReg.second; in inheritRegUnits() local 269 changed |= (RegUnits |= SR->RegUnits); in inheritRegUnits() 286 CodeGenRegister *SR = ExplicitSubRegs[i]; in computeSubRegs() local 288 if (!SR->Artificial) in computeSubRegs() 290 if (!SubRegs.insert(std::pair(Idx, SR)).second) in computeSubRegs() 296 SubReg2Idx.insert(std::pair(SR, Idx)); in computeSubRegs() 308 for (const auto &SR : Map) { in computeSubRegs() local 309 if (!SubRegs.insert(SR).second) in computeSubRegs() 310 Orphans.insert(SR.second); in computeSubRegs() 322 CodeGenRegister *SR = SubRegs[Idx]; in computeSubRegs() local [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UnreachableCodeChecker.cpp | 145 SourceRange SR; in checkEndAnalysis() local 157 SR = S->getSourceRange(); in checkEndAnalysis() 160 if (SR.isInvalid() || !SL.isValid()) in checkEndAnalysis() 174 "This statement is never executed", DL, SR); in checkEndAnalysis()
|
H A D | Taint.cpp | 82 if (const SymbolicRegion *SR = dyn_cast_or_null<SymbolicRegion>(R)) in addTaint() local 83 return addTaint(State, SR->getSymbol(), Kind); in addTaint() 109 if (const SymbolicRegion *SR = dyn_cast_or_null<SymbolicRegion>(R)) in removeTaint() local 110 return removeTaint(State, SR->getSymbol()); in removeTaint() 231 if (const SymbolicRegion *SR = dyn_cast<SymbolicRegion>(Reg)) { in getTaintedSymbolsImpl() local 233 getTaintedSymbolsImpl(State, SR->getSymbol(), K, returnFirstOnly); in getTaintedSymbolsImpl()
|