| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | OffloadArch.cpp | 16 #define SM(sm) {OffloadArch::SM_##sm, "sm_" #sm, "compute_" #sm} macro 21 SM(20), {OffloadArch::SM_21, "sm_21", "compute_20"}, // Fermi 22 SM(30), {OffloadArch::SM_32_, "sm_32", "compute_32"}, SM(35), SM(37), // Kepler 23 SM(50), SM(52), SM(53), // Maxwell 24 SM(60), SM(61), SM(62), // Pascal 25 SM(70), SM(72), // Volta 26 SM(75), // Turing 27 SM(80), SM(86), // Ampere 28 SM(87), // Jetson/Drive AGX Orin 29 SM(89), // Ada Lovelace [all …]
|
| H A D | SourceLocation.cpp | 33 Loc.print(OS, SM); in print() 60 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{ in print() 67 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() 79 SM.getExpansionLoc(*this).print(OS, SM); in print() 82 SM.getSpellingLoc(*this).print(OS, SM); in print() 87 SourceLocation::printToString(const SourceManager &SM) const { in printToString() 90 print(OS, SM); in printToString() 94 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const { in dump() 95 print(llvm::errs(), SM); in dump() 99 LLVM_DUMP_METHOD void SourceRange::dump(const SourceManager &SM) const { in dump() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 54 const SourceManager &SM, in validateRange() argument 65 if (SM.isInSystemHeader(Range.getBegin()) || in validateRange() 66 SM.isInSystemHeader(Range.getEnd())) in validateRange() 71 FileIDAndOffset BeginInfo = SM.getDecomposedLoc(Range.getBegin()); in validateRange() 72 FileIDAndOffset EndInfo = SM.getDecomposedLoc(Range.getEnd()); in validateRange() 85 const SourceManager &SM) { in validateEditRange() argument 86 return validateRange(Range, SM, /*AllowSystemHeaders=*/false); in validateEditRange() 90 const SourceManager &SM) { in spelledInMacroDefinition() argument 92 const auto &Expansion = SM.getSLocEntry(SM.getFileID(Loc)).getExpansion(); in spelledInMacroDefinition() 108 getExpansionForSplitToken(SourceLocation Loc, const SourceManager &SM, in getExpansionForSplitToken() argument [all …]
|
| /freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300_aic.c | 453 ahp->ah_aic_sram[i] = (SM(aic_sram[i].sram.vga_dir_sign, in ar9300_aic_cal_post_process() 455 SM(aic_sram[i].sram.vga_quad_sign, in ar9300_aic_cal_post_process() 457 SM(aic_sram[i].sram.com_att_6db, in ar9300_aic_cal_post_process() 459 SM(aic_sram[i].sram.valid, in ar9300_aic_cal_post_process() 461 SM(aic_sram[i].sram.rot_dir_att_db, in ar9300_aic_cal_post_process() 463 SM(aic_sram[i].sram.rot_quad_att_db, in ar9300_aic_cal_post_process() 525 (SM(0, AR_PHY_AIC_MON_ENABLE) | in ar9300_aic_calibration() 526 SM(40, AR_PHY_AIC_CAL_MAX_HOP_COUNT) | in ar9300_aic_calibration() 527 SM(1, AR_PHY_AIC_CAL_MIN_VALID_COUNT) | //26 in ar9300_aic_calibration() 528 SM(37, AR_PHY_AIC_F_WLAN) | in ar9300_aic_calibration() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 58 const SourceManager &SM, const LangOptions &LangOpts, in mergeFixits() argument 60 edit::Commit commit(SM, LangOpts); in mergeFixits() 78 edit::EditedSource Editor(SM, LangOpts); in mergeFixits() 246 void DiagnosticRenderer::emitModuleBuildStack(const SourceManager &SM) { in emitModuleBuildStack() argument 247 ModuleBuildStack Stack = SM.getModuleBuildStack(); in emitModuleBuildStack() 260 bool IsBegin, const SourceManager *SM, in retrieveMacroLocation() argument 262 assert(SM->getFileID(Loc) == MacroFileID); in retrieveMacroLocation() 270 if (SM->isMacroArgExpansion(Loc)) { in retrieveMacroLocation() 275 CharSourceRange(SM->getImmediateSpellingLoc(Loc), IsTokenRange); in retrieveMacroLocation() 276 MacroArgRange = SM->getImmediateExpansionRange(Loc); in retrieveMacroLocation() [all …]
|
| H A D | SARIFDiagnostic.cpp | 88 auto &SM = Loc.getManager(); in addLocationToResult() local 89 SourceLocation B = SM.getExpansionLoc(Range.getBegin()); in addLocationToResult() 90 CharSourceRange ERange = SM.getExpansionRange(Range.getEnd()); in addLocationToResult() 94 FileIDAndOffset BInfo = SM.getDecomposedLoc(B); in addLocationToResult() 95 FileIDAndOffset EInfo = SM.getDecomposedLoc(E); in addLocationToResult() 106 TokSize = Lexer::MeasureTokenLength(E, SM, LangOpts); in addLocationToResult() 108 FullSourceLoc BF(B, SM), EF(E, SM); in addLocationToResult() 109 SourceLocation BeginLoc = SM.translateLineCol( in addLocationToResult() 111 SourceLocation EndLoc = SM.translateLineCol( in addLocationToResult() 120 auto &SM = Loc.getManager(); in addLocationToResult() local [all …]
|
| H A D | HeaderIncludeGen.cpp | 21 SourceManager &SM; member in __anonfb3caf500111::HeaderIncludesCallback 36 : SM(PP->getSourceManager()), OutputFile(OutputFile_), DepOpts(DepOpts), in HeaderIncludesCallback() 80 SourceManager &SM; member in __anonfb3caf500111::HeaderIncludesJSONCallback 88 : SM(PP->getSourceManager()), OutputFile(OutputFile_), in HeaderIncludesJSONCallback() 115 SourceManager &SM; member in __anonfb3caf500111::HeaderIncludesDirectPerFileCallback 126 : SM(PP->getSourceManager()), HSI(PP->getHeaderSearchInfo()), in HeaderIncludesDirectPerFileCallback() 261 PresumedLoc UserLoc = SM.getPresumedLoc(Loc); in FileChanged() 312 OptionalFileEntryRef FE = SM.getFileEntryRefForID(SM.getMainFileID()); in EndOfMainFile() 316 SM.getFileManager().makeAbsolutePath(MainFile); in EndOfMainFile() 345 SourceLocation PrevLoc, SourceManager &SM) { in shouldRecordNewFile() argument [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | MacroExpansionContext.cpp | 22 SourceManager &SM; member in clang::detail::MacroExpansionRangeRecorder 27 const Preprocessor &PP, SourceManager &SM, in MacroExpansionRangeRecorder() argument 29 : PP(PP), SM(SM), ExpansionRanges(ExpansionRanges) {} in MacroExpansionRangeRecorder() 37 SourceLocation MacroNameBegin = SM.getExpansionLoc(MacroName.getLocation()); in MacroExpands() 38 assert(MacroNameBegin == SM.getExpansionLoc(Range.getBegin())); in MacroExpands() 40 const SourceLocation ExpansionEnd = [Range, &SM = SM, &MacroName] { in MacroExpands() 43 return SM.getExpansionLoc( in MacroExpands() 47 return SM.getExpansionLoc(Range.getEnd()).getLocWithOffset(1); in MacroExpands() 55 MacroNameBegin.print(llvm::dbgs(), SM); in MacroExpands() 57 ExpansionEnd.print(llvm::dbgs(), SM); llvm::dbgs() << '\n';); in MacroExpands() [all …]
|
| H A D | CFGStmtMap.cpp | 28 SMap *SM = AsMap(M); in getBlock() local 34 SMap::iterator I = SM->find(X); in getBlock() 35 if (I != SM->end()) { in getBlock() 39 (*SM)[X] = B; in getBlock() 49 static void Accumulate(SMap &SM, CFGBlock *B) { in Accumulate() argument 57 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate() 69 SM[Label] = B; in Accumulate() 75 SM[Term] = B; in Accumulate() 82 SMap *SM = new SMap(); in Build() local 87 Accumulate(*SM, BB); in Build() [all …]
|
| H A D | FixitUtil.cpp | 22 clang::getPointeeTypeText(const DeclaratorDecl *VD, const SourceManager &SM, in getPointeeTypeText() argument 70 Lexer::getLocForEndOfToken(PteTyLoc.getEndLoc(), 0, SM, LangOpts); in getPointeeTypeText() 76 if (!SM.isBeforeInTranslationUnit(PteEndOfTokenLoc, IdentLoc) && in getPointeeTypeText() 92 return getRangeText({PteTyLoc.getBeginLoc(), PteEndOfTokenLoc}, SM, LangOpts) in getPointeeTypeText() 98 getPointee2TypeText(const DeclaratorDecl *VD, const SourceManager &SM, in getPointee2TypeText() argument 152 Lexer::getLocForEndOfToken(PteTyLoc.getEndLoc(), 0, SM, LangOpts); in getPointee2TypeText() 158 if (!SM.isBeforeInTranslationUnit(PteEndOfTokenLoc, IdentLoc)) { in getPointee2TypeText() 173 return getRangeText({PteTyLoc.getBeginLoc(), PteEndOfTokenLoc}, SM, LangOpts) in getPointee2TypeText() 186 const SourceManager &SM, in getRangeText() argument 190 StringRef Text = Lexer::getSourceText(CSR, SM, LangOpts, &Invalid); in getRangeText() [all …]
|
| /freebsd/sys/dev/rtwn/rtl8812a/ |
| H A D | r12a_chan.c | 69 SM(R12A_TXAGC_MCS0, power[RTWN_RIDX_HT_MCS(0)]) | in r12a_write_txpower_ht() 70 SM(R12A_TXAGC_MCS1, power[RTWN_RIDX_HT_MCS(1)]) | in r12a_write_txpower_ht() 71 SM(R12A_TXAGC_MCS2, power[RTWN_RIDX_HT_MCS(2)]) | in r12a_write_txpower_ht() 72 SM(R12A_TXAGC_MCS3, power[RTWN_RIDX_HT_MCS(3)])); in r12a_write_txpower_ht() 74 SM(R12A_TXAGC_MCS4, power[RTWN_RIDX_HT_MCS(4)]) | in r12a_write_txpower_ht() 75 SM(R12A_TXAGC_MCS5, power[RTWN_RIDX_HT_MCS(5)]) | in r12a_write_txpower_ht() 76 SM(R12A_TXAGC_MCS6, power[RTWN_RIDX_HT_MCS(6)]) | in r12a_write_txpower_ht() 77 SM(R12A_TXAGC_MCS7, power[RTWN_RIDX_HT_MCS(7)])); in r12a_write_txpower_ht() 80 SM(R12A_TXAGC_MCS8, power[RTWN_RIDX_HT_MCS(8)]) | in r12a_write_txpower_ht() 81 SM(R12A_TXAGC_MCS9, power[RTWN_RIDX_HT_MCS(9)]) | in r12a_write_txpower_ht() [all …]
|
| H A D | r12a_tx.c | 105 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_BW, in r12a_tx_set_vht_bw() 107 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_PRIM_CHAN, in r12a_tx_set_vht_bw() 110 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_BW, in r12a_tx_set_vht_bw() 112 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_PRIM_CHAN, in r12a_tx_set_vht_bw() 131 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_BW, in r12a_tx_set_ht40() 133 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_PRIM_CHAN, in r12a_tx_set_ht40() 171 txd->txdw4 |= htole32(SM(R12A_TXDW4_RTSRATE, ridx)); in r12a_tx_protection() 173 txd->txdw4 |= htole32(SM(R12A_TXDW4_RTSRATE_FB_LMT, 0xf)); in r12a_tx_protection() 261 txd->txdw1 |= htole32(SM(R12A_TXDW1_RAID, raid)); in r12a_tx_raid() 358 txd->txdw4 |= htole32(SM(R12A_TXDW4_RETRY_LMT, in r12a_fill_tx_desc() [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ar5416/ |
| H A D | ar5416_xmit.c | 79 SM(10, AR_QUIET2_QUIET_DUR)); in ar5416StopTxDma() 125 (SM((_series)[_index].Tries, AR_XmitDataTries##_index)) 128 (SM((_series)[_index].Rate, AR_XmitRate##_index)) 131 (SM((_series)[_index].PktDuration, AR_PacketDur##_index) |\ 139 |SM((_series)[_index].ChSel, AR_ChainSel##_index) 373 ads->ds_ctl2 = SM(txTries0, AR_XmitDataTries0) in ar5416SetupTxDesc() 381 ads->ds_ctl7 = SM(ahp->ah_tx_chainmask, AR_ChainSel0) in ar5416SetupTxDesc() 382 | SM(ahp->ah_tx_chainmask, AR_ChainSel1) in ar5416SetupTxDesc() 383 | SM(ahp->ah_tx_chainmask, AR_ChainSel2) in ar5416SetupTxDesc() 384 | SM(ahp->ah_tx_chainmask, AR_ChainSel3) in ar5416SetupTxDesc() [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ar9002/ |
| H A D | ar9285_diversity.c | 91 regVal |= SM(ant_div_control1, AR_PHY_9285_ANT_DIV_CTL); in ar9285SetAntennaSwitch() 96 regVal |= SM(ant_div_control2, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch() 97 regVal |= SM((ant_div_control2 >> 2), AR_PHY_9285_ANT_DIV_MAIN_LNACONF); in ar9285SetAntennaSwitch() 98 regVal |= SM((ant_div_control1 >> 1), AR_PHY_9285_ANT_DIV_ALT_GAINTB); in ar9285SetAntennaSwitch() 99 regVal |= SM((ant_div_control1 >> 2), AR_PHY_9285_ANT_DIV_MAIN_GAINTB); in ar9285SetAntennaSwitch() 105 regVal |= SM(HAL_ANT_DIV_COMB_LNA2, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch() 106 regVal |= SM(HAL_ANT_DIV_COMB_LNA1, AR_PHY_9285_ANT_DIV_MAIN_LNACONF); in ar9285SetAntennaSwitch() 107 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_0, AR_PHY_9285_ANT_DIV_ALT_GAINTB); in ar9285SetAntennaSwitch() 108 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_1, AR_PHY_9285_ANT_DIV_MAIN_GAINTB); in ar9285SetAntennaSwitch() 114 regVal |= SM(HAL_ANT_DIV_COMB_LNA1, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteMacros.cpp | 62 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() local 66 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in LexRawTokensFromMainFile() 67 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile() 89 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() local 92 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput() 93 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput() 113 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput() 116 if (!SM.isWrittenInMainFile(PPLoc)) { in RewriteMacrosInInput() 132 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 138 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/FileCheck/ |
| H A D | FileCheck.cpp | 137 const SourceMgr &SM) const { in valueFromStringRepr() 241 BinaryOperation::getImplicitFormat(const SourceMgr &SM) const { in getImplicitFormat() 242 Expected<ExpressionFormat> LeftFormat = LeftOperand->getImplicitFormat(SM); in getImplicitFormat() 243 Expected<ExpressionFormat> RightFormat = RightOperand->getImplicitFormat(SM); in getImplicitFormat() 257 SM, getExpressionStr(), in getImplicitFormat() 329 Pattern::parseVariable(StringRef &Str, const SourceMgr &SM) { in parseVariable() argument 331 return ErrorDiagnostic::get(SM, Str, "empty variable name"); in parseVariable() 341 return ErrorDiagnostic::get(SM, Str.substr(I), in parseVariable() 347 return ErrorDiagnostic::get(SM, Str, "invalid variable name"); in parseVariable() 379 const SourceMgr &SM) { in parseNumericVariableDefinition() argument [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 39 const SourceManager &SM) { in getTokensCovering() argument 44 return SM.isBeforeInTranslationUnit(T.location(), R.getBegin()); in getTokensCovering() 48 return !SM.isBeforeInTranslationUnit(R.getEnd(), T.location()); in getTokensCovering() 67 const SourceManager &SM) { in spelledForExpandedSlow() argument 75 assert(SM.getSLocEntry(TargetFile).isFile()); in spelledForExpandedSlow() 87 auto DecFirst = SM.getDecomposedLoc(First); in spelledForExpandedSlow() 88 auto DecLast = SM.getDecomposedLoc(Last); in spelledForExpandedSlow() 89 auto &ExpFirst = SM.getSLocEntry(DecFirst.first).getExpansion(); in spelledForExpandedSlow() 90 auto &ExpLast = SM.getSLocEntry(DecLast.first).getExpansion(); in spelledForExpandedSlow() 104 auto ExpFileID = SM.getFileID(ExpFirst.getExpansionLocStart()); in spelledForExpandedSlow() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | PlistSupport.h | 36 const SourceManager &SM, SourceLocation L) { in AddFID() argument 37 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID() 47 inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, in GetFID() argument 49 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID() 103 inline void EmitLocation(raw_ostream &o, const SourceManager &SM, in EmitLocation() argument 107 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation() 115 EmitInteger(o, GetFID(FM, SM, Loc)) << '\n'; in EmitLocation() 119 inline void EmitRange(raw_ostream &o, const SourceManager &SM, in EmitRange() argument 125 EmitLocation(o, SM, R.getBegin(), FM, indent + 1); in EmitRange() 130 EmitLocation(o, SM, R.getEnd().getLocWithOffset(-1), FM, indent + 1); in EmitRange()
|
| /freebsd/contrib/llvm-project/llvm/lib/MCA/ |
| H A D | Support.cpp | 40 void computeProcResourceMasks(const MCSchedModel &SM, in computeProcResourceMasks() argument 44 assert(Masks.size() == SM.getNumProcResourceKinds() && in computeProcResourceMasks() 50 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks() 51 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks() 59 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks() 60 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks() 74 for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks() 75 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks() 83 double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth, in computeBlockRThroughput() argument 94 for (unsigned I = 0, E = SM in computeBlockRThroughput() [all...] |
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | Lexer.h | 181 const SourceManager &SM, const LangOptions &LangOpts, 363 const SourceManager &SM, 372 const SourceManager &SM, 378 const SourceManager &SM, 386 const SourceManager &SM, 393 const SourceManager &SM, 401 const SourceManager &SM, in AdvanceToTokenCharacter() argument 404 getTokenPrefixLength(TokStart, Characters, SM, LangOpts)); in AdvanceToTokenCharacter() 423 const SourceManager &SM, 431 const SourceManager &SM, in getAsCharRange() argument [all …]
|
| /freebsd/sys/dev/rtwn/rtl8192c/ |
| H A D | r92c_chan.c | 243 SM(R92C_TXAGC_RATE06, power[RTWN_RIDX_OFDM6]) | in r92c_write_txpower() 244 SM(R92C_TXAGC_RATE09, power[RTWN_RIDX_OFDM9]) | in r92c_write_txpower() 245 SM(R92C_TXAGC_RATE12, power[RTWN_RIDX_OFDM12]) | in r92c_write_txpower() 246 SM(R92C_TXAGC_RATE18, power[RTWN_RIDX_OFDM18])); in r92c_write_txpower() 248 SM(R92C_TXAGC_RATE24, power[RTWN_RIDX_OFDM24]) | in r92c_write_txpower() 249 SM(R92C_TXAGC_RATE36, power[RTWN_RIDX_OFDM36]) | in r92c_write_txpower() 250 SM(R92C_TXAGC_RATE48, power[RTWN_RIDX_OFDM48]) | in r92c_write_txpower() 251 SM(R92C_TXAGC_RATE54, power[RTWN_RIDX_OFDM54])); in r92c_write_txpower() 254 SM(R92C_TXAGC_MCS00, power[RTWN_RIDX_HT_MCS(0)]) | in r92c_write_txpower() 255 SM(R92C_TXAGC_MCS01, power[RTWN_RIDX_HT_MCS(1)]) | in r92c_write_txpower() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-mc/ |
| H A D | Disassembler.cpp | 36 SourceMgr &SM, MCStreamer &Streamer, bool InAtomicBlock, in PrintInsts() argument 55 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), in PrintInsts() 68 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), in PrintInsts() 103 SourceMgr &SM, bool HexBytes) { in byteArrayFromString() argument 117 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), in byteArrayFromString() 126 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), in byteArrayFromString() 134 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error, in byteArrayFromString() 152 MemoryBuffer &Buffer, SourceMgr &SM, in disassemble() argument 188 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error, in disassemble() 197 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error, in disassemble() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | PlistDiagnostics.cpp | 168 const MacroExpansionContext &MacroExpansions, const SourceManager &SM); 185 const SourceManager &SM = PP.getSourceManager(); in EmitRanges() local 189 EmitRange(o, SM, in EmitRanges() 190 Lexer::getAsCharRange(SM.getExpansionRange(R), SM, LangOpts), in EmitRanges() 216 const SourceManager &SM = PP.getSourceManager(); in EmitFixits() local 228 EmitRange(o, SM, Lexer::getAsCharRange(fixit.RemoveRange, SM, LangOpts), in EmitFixits() 242 const SourceManager &SM = PP.getSourceManager(); in ReportControlFlow() local 265 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow() 266 EmitRange(o, SM, Lexer::getAsCharRange(StartEdge, SM, LangOpts), FM, in ReportControlFlow() 270 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 229 SpellingRegion(SourceManager &SM, SourceLocation LocStart, in SpellingRegion() 231 LineStart = SM.getSpellingLineNumber(LocStart); in SpellingRegion() 232 ColumnStart = SM.getSpellingColumnNumber(LocStart); in SpellingRegion() 233 LineEnd = SM.getSpellingLineNumber(LocEnd); in SpellingRegion() 234 ColumnEnd = SM.getSpellingColumnNumber(LocEnd); in SpellingRegion() 237 SpellingRegion(SourceManager &SM, SourceMappingRegion &R) in SpellingRegion() 238 : SpellingRegion(SM, R.getBeginLoc(), R.getEndLoc()) {} in SpellingRegion() 253 SourceManager &SM; member in __anon413222f00211::CoverageMappingBuilder 275 CoverageMappingBuilder(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingBuilder() argument 277 : CVM(CVM), SM(SM), LangOpts(LangOpts) {} in CoverageMappingBuilder() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 22 bool isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM, in isSemicolonAtLocation() argument 25 CharSourceRange::getTokenRange(TokenLoc, TokenLoc), SM, in isSemicolonAtLocation() 62 const SourceManager &SM) { in areOnSameLine() argument 64 SM.getSpellingLineNumber(Loc1) == SM.getSpellingLineNumber(Loc2); in areOnSameLine() 74 const SourceManager &SM, in compute() argument 99 if (isSemicolonAtLocation(End, SM, LangOpts)) in compute() 104 std::optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts); in compute() 106 areOnSameLine(NextToken->getLocation(), End, SM)) { in compute()
|