| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | builtin-source-location.cpp | 55 SL const_init_global = SL::current(); 71 SL runtime_init_global = SL::bad_current(); 84 SL local = SL::current(); in test_function() 89 SL info = SL::current(); 90 SL arg_info; 93 TestInit(SL arg_info = SL::current()) : arg_info(arg_info) {} in TestInit() 133 SL info = SL::current(); 134 SL arg_info; 173 SL i1; 175 SL i2 = SL::current(); [all …]
|
| /llvm-project-15.0.7/llvm/unittests/DebugInfo/MSF/ |
| H A D | MSFCommonTest.cpp | 106 EXPECT_EQ(1000u, SL.Length); in TEST() 107 EXPECT_EQ(1u, SL.Blocks.size()); in TEST() 110 SL = getFpmStreamLayout(L, false, true); in TEST() 111 EXPECT_EQ(1000u, SL.Length); in TEST() 112 EXPECT_EQ(1u, SL.Blocks.size()); in TEST() 118 EXPECT_EQ(SB.BlockSize + 1, SL.Length); in TEST() 119 EXPECT_EQ(2u, SL.Blocks.size()); in TEST() 124 EXPECT_EQ(SB.BlockSize + 1, SL.Length); in TEST() 125 EXPECT_EQ(2u, SL.Blocks.size()); in TEST() 134 EXPECT_EQ(SB.BlockSize * 9, SL.Length); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/Inputs/ |
| H A D | source-location-file.h | 8 constexpr SL global_info = SL::current(); 10 constexpr SL test_function(SL v = SL::current()) { 14 constexpr SL test_function_indirect() { in test_function_indirect() 18 template <class T, class U = SL> 23 template <class T, class U = SL> 29 SL info = SL::current(); 30 SL ctor_info; 32 constexpr TestClass(int, SL cinfo = SL::current()) : ctor_info(cinfo) {} in ctor_info() 33 template <class T, class U = SL> 37 template <class T = SL>
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/ |
| H A D | LookupResult.cpp | 38 raw_ostream &llvm::gsym::operator<<(raw_ostream &OS, const SourceLocation &SL) { in operator <<() argument 39 OS << SL.Name; in operator <<() 40 if (SL.Offset > 0) in operator <<() 41 OS << " + " << SL.Offset; in operator <<() 42 if (SL.Dir.size() || SL.Base.size()) { in operator <<() 44 if (!SL.Dir.empty()) { in operator <<() 45 OS << SL.Dir; in operator <<() 46 if (SL.Dir.contains('\\') && !SL.Dir.contains('/')) in operator <<() 51 if (SL.Base.empty()) in operator <<() 54 OS << SL.Base; in operator <<() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | source_location.cpp | 97 static constexpr SL GlobalS = SL::current(); 103 constexpr SL S = SL::current(); in test_line_fn() 107 constexpr SL S2 in test_line_fn() 168 SL info = SL::current(); 223 template <class T, class U = SL, class U2 = SL> 390 constexpr SL global_sl = SL::current(); 403 constexpr SL S = SL::current(); in test_column_fn() 409 constexpr SL S2 in test_column_fn() 500 SL info = SL::current(); 574 SL info; [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | StringLiteralWithEmbeddedNulCheck.cpp | 62 if (const auto *SL = Result.Nodes.getNodeAs<StringLiteral>("strlit")) { in check() local 63 for (size_t Offset = 0, Length = SL->getLength(); Offset < Length; in check() 66 if (Offset + 3 < Length && SL->getCodeUnit(Offset) == '\0' && in check() 67 SL->getCodeUnit(Offset + 1) == 'x' && in check() 68 isDigit(SL->getCodeUnit(Offset + 2)) && in check() 69 isDigit(SL->getCodeUnit(Offset + 3))) { in check() 70 diag(SL->getBeginLoc(), "suspicious embedded NUL character"); in check() 76 if (const auto *SL = Result.Nodes.getNodeAs<StringLiteral>("truncated")) { in check() local 77 diag(SL->getBeginLoc(), in check()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelLowering.cpp | 1371 SDLoc SL(Op); in split64BitValue() local 1385 SDLoc SL(Op); in getLoHalf64() local 1393 SDLoc SL(Op); in getHiHalf64() local 1525 SL); in WidenOrSplitVectorLoad() 2862 SDLoc SL(N); in performLoadCombine() local 2918 SDLoc SL(N); in performStoreCombine() local 3048 SDLoc SL(N); in performShlCombine() local 3113 SDLoc SL(N); in performSraCombine() local 3148 SDLoc SL(N); in performSrlCombine() local 3188 SDLoc SL(N); in performTruncateCombine() local [all …]
|
| H A D | SIISelLowering.cpp | 2877 SDLoc SL; in passSpecialInputs() local 4916 SDLoc SL(N); in lowerFCMPIntrinsic() local 4938 SDLoc SL(N); in lowerBALLOTIntrinsic() local 9403 SDLoc SL(N); in performSHLPtrCombine() local 9434 SDLoc SL(N); in performMemSDNodeCombine() local 10536 SDLoc SL(N); in performFMed3Combine() local 10763 SDLoc SL(N); in performInsertVectorEltCombine() local 10834 SDLoc SL(N); in reassociateScalarOps() local 10863 SDLoc SL(N); in tryFoldToMad64_32() local 10980 SDLoc SL(N); in performAddCombine() local [all …]
|
| H A D | AMDGPUISelDAGToDAG.cpp | 952 SDLoc SL(N); in SelectFMA_W_CHAIN() local 973 SDLoc SL(N); in SelectFMUL_W_CHAIN() local 988 SDLoc SL(N); in SelectDIV_SCALE() local 1008 SDLoc SL(N); in SelectMAD_64_32() local 1026 SDLoc SL(N); in SelectMUL_LOHI() local 1948 SDLoc SL(Addr); in Expand32BitAddress() local 1974 SDLoc SL(Addr); in SelectSMRDBaseOffset() local 2265 SDLoc SL(N); in SelectBRCOND() local 2414 SDLoc SL(N); in SelectDS_GWS() local 2900 SDLoc SL(In); in getHi16Elt() local [all …]
|
| H A D | SIISelLowering.h | 48 SDValue lowerKernArgParameterPtr(SelectionDAG &DAG, const SDLoc &SL, 50 SDValue getImplicitArgPtr(SelectionDAG &DAG, const SDLoc &SL) const; 51 SDValue getLDSKernelId(SelectionDAG &DAG, const SDLoc &SL) const; 53 const SDLoc &SL, SDValue Chain, 62 const SDLoc &SL, SDValue Chain, 138 SelectionDAG &DAG, EVT VT, EVT MemVT, const SDLoc &SL, SDValue Val, 175 SDValue splitBinaryBitConstantOp(DAGCombinerInfo &DCI, const SDLoc &SL, 185 SDValue getCanonicalConstantFP(SelectionDAG &DAG, const SDLoc &SL, EVT VT, 189 SDValue performFPMed3ImmCombine(SelectionDAG &DAG, const SDLoc &SL, 191 SDValue performIntMed3ImmCombine(SelectionDAG &DAG, const SDLoc &SL,
|
| H A D | AMDGPUISelLowering.h | 86 SDValue splitBinaryBitConstantOpImpl(DAGCombinerInfo &DCI, const SDLoc &SL, 97 SDValue performCtlz_CttzCombine(const SDLoc &SL, SDValue Cond, SDValue LHS, 288 const SDLoc &SL, 307 const SDLoc &SL, 311 const SDLoc &SL, 318 EVT VT, const SDLoc &SL,
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/MSF/ |
| H A D | MappedBlockStream.cpp | 62 MSFStreamLayout SL; in createIndexedStream() local 63 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream() 64 SL.Length = Layout.StreamSizes[StreamIndex]; in createIndexedStream() 73 MSFStreamLayout SL; in createDirectoryStream() local 74 SL.Blocks = Layout.DirectoryBlocks; in createDirectoryStream() 75 SL.Length = Layout.SB->NumDirectoryBytes; in createDirectoryStream() 330 MSFStreamLayout SL; in createIndexedStream() local 331 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream() 340 MSFStreamLayout SL; in createDirectoryStream() local 341 SL.Blocks = Layout.DirectoryBlocks; in createDirectoryStream() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | AnalysisManager.h | 125 static bool isInCodeFile(SourceLocation SL, const SourceManager &SM) { in isInCodeFile() argument 126 if (SM.isInMainFile(SL)) in isInCodeFile() 133 SourceLocation IL = SM.getIncludeLoc(SM.getFileID(SL)); in isInCodeFile() 141 return llvm::StringSwitch<bool>(SM.getFilename(SL).rsplit('.').second) in isInCodeFile() 150 bool isInCodeFile(SourceLocation SL) { in isInCodeFile() argument 152 return isInCodeFile(SL, SM); in isInCodeFile()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | StackLifetime.cpp | 342 const StackLifetime &SL; member in StackLifetime::LifetimeAnnotationWriter 346 for (const auto &KV : SL.AllocaNumbering) { in printInstrAlive() 356 auto ItBB = SL.BlockInstRange.find(BB); in emitBasicBlockStartAnnot() 357 if (ItBB == SL.BlockInstRange.end()) in emitBasicBlockStartAnnot() 364 if (!Instr || !SL.isReachable(Instr)) in printInfoComment() 368 for (const auto &KV : SL.AllocaNumbering) { in printInfoComment() 369 if (SL.isAliveAfter(KV.getFirst(), Instr)) in printInfoComment() 377 LifetimeAnnotationWriter(const StackLifetime &SL) : SL(SL) {} in LifetimeAnnotationWriter() argument 391 StackLifetime SL(F, Allocas, Type); in run() local 392 SL.run(); in run() [all …]
|
| H A D | TypeMetadataUtils.cpp | 141 const StructLayout *SL = DL.getStructLayout(C->getType()); in getPointerAtOffset() local 142 if (Offset >= SL->getSizeInBytes()) in getPointerAtOffset() 145 unsigned Op = SL->getElementContainingOffset(Offset); in getPointerAtOffset() 147 Offset - SL->getElementOffset(Op), M, in getPointerAtOffset()
|
| /llvm-project-15.0.7/compiler-rt/lib/ubsan/ |
| H A D | ubsan_monitor.cpp | 65 SourceLocation SL = CurrentUBR->Loc.getSourceLocation(); in __ubsan_get_current_report_data() local 66 *OutFilename = SL.getFilename(); in __ubsan_get_current_report_data() 67 *OutLine = SL.getLine(); in __ubsan_get_current_report_data() 68 *OutCol = SL.getColumn(); in __ubsan_get_current_report_data()
|
| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/ |
| H A D | SampleProfWriter.h | 70 virtual void resetSecLayout(SectionLayout SL) {} in resetSecLayout() argument 215 void resetSecLayout(SectionLayout SL) override { in resetSecLayout() argument 216 verifySecLayout(SL); in resetSecLayout() 224 SecLayout = SL; in resetSecLayout() 225 SectionHdrLayout = ExtBinaryHdrLayoutTable[SL]; in resetSecLayout() 249 virtual void verifySecLayout(SectionLayout SL) = 0; 340 void verifySecLayout(SectionLayout SL) override { in verifySecLayout() argument 341 assert((SL == DefaultLayout || SL == CtxSplitLayout) && in verifySecLayout()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | add-shl-sdiv-to-srem.ll | 105 ; CHECK-NEXT: [[SL:%.*]] = shl i32 [[SD]], 4 106 ; CHECK-NEXT: call void @use32(i32 [[SL]]) 121 ; CHECK-NEXT: [[SL:%.*]] = shl i32 [[SD]], 4 122 ; CHECK-NEXT: call void @use32(i32 [[SL]]) 154 ; CHECK-NEXT: [[SL:%.*]] = shl nsw i8 [[SD]], 2 155 ; CHECK-NEXT: [[RZ:%.*]] = add i8 [[SL]], [[X]] 179 ; CHECK-NEXT: [[RZ:%.*]] = add i32 [[SL]], [[X]] 192 ; CHECK-NEXT: [[RZ:%.*]] = add <3 x i8> [[SL]], [[X]] 227 ; CHECK-NEXT: [[RZ:%.*]] = add <3 x i8> [[SL]], [[X]] 242 ; CHECK-NEXT: [[RZ:%.*]] = add <2 x i64> [[SL]], [[X]] [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenExtract.cpp | 166 uint32_t SL = CSL->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() 180 APInt M = CM->getValue().lshr(SL); in INITIALIZE_PASS_DEPENDENCY() 185 uint32_t U = BW - std::max(SL, SR); in INITIALIZE_PASS_DEPENDENCY() 217 if (SL != 0) in INITIALIZE_PASS_DEPENDENCY() 218 NewIn = IRB.CreateShl(NewIn, SL, CSL->getName()); in INITIALIZE_PASS_DEPENDENCY()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Operator.cpp | 70 const StructLayout *SL = DL.getStructLayout(STy); in getMaxPreservedAlignment() local 71 Offset = SL->getElementOffset(OpC->getZExtValue()); in getMaxPreservedAlignment() 142 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset() local 145 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)), in accumulateConstantOffset() 205 const StructLayout *SL = DL.getStructLayout(STy); in collectOffset() local 207 CollectConstantOffset(APInt(BitWidth, SL->getElementOffset(ElementIdx)), in collectOffset()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | UnreachableCodeChecker.cpp | 148 SourceLocation SL; in checkEndAnalysis() local 160 SL = DL.asLocation(); in checkEndAnalysis() 161 if (SR.isInvalid() || !SL.isValid()) in checkEndAnalysis() 169 if (SM.isInSystemHeader(SL) || SM.isInExternCSystemHeader(SL)) in checkEndAnalysis()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndexInclusionStack.cpp | 32 const SrcMgr::SLocEntry &SL = in getInclusions() local 34 if (!SL.isFile() || Invalid) in getInclusions() 37 const SrcMgr::FileInfo &FI = SL.getFile(); in getInclusions()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | GlobalSplit.cpp | 72 const StructLayout *SL = DL.getStructLayout(Init->getType()); in splitGlobal() local 85 unsigned SplitBegin = SL->getElementOffset(I); in splitGlobal() 87 ? SL->getSizeInBytes() in splitGlobal() 88 : SL->getElementOffset(I + 1); in splitGlobal()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | MisleadingBidirectional.cpp | 128 if (const auto *SL = Result.Nodes.getNodeAs<StringLiteral>("strlit")) { in check() local 129 StringRef Literal = SL->getBytes(); in check() 131 diag(SL->getBeginLoc(), "string literal contains misleading " in check()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | UnifyLoopExits.cpp | 155 auto SL = LI.getLoopFor(S); in unifyLoopExits() local 158 if (SL == L || L->contains(SL)) in unifyLoopExits()
|