Home
last modified time | relevance | path

Searched refs:SM (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/freebsd-12-stable/sys/contrib/dev/ath/ath_hal/ar9300/
Dar9300_aic.c453 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-12-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
DSourceCode.cpp54 const SourceManager &SM) { in validateEditRange() argument
63 if (SM.isInSystemHeader(Range.getBegin()) || in validateEditRange()
64 SM.isInSystemHeader(Range.getEnd())) in validateEditRange()
68 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin()); in validateEditRange()
69 std::pair<FileID, unsigned> EndInfo = SM.getDecomposedLoc(Range.getEnd()); in validateEditRange()
83 const SourceManager &SM, in getRangeForEdit() argument
96 CharSourceRange Range = Lexer::makeFileCharRange(EditRange, SM, LangOpts); in getRangeForEdit()
97 bool IsInvalid = llvm::errorToBool(validateEditRange(Range, SM)); in getRangeForEdit()
104 static bool startsWithNewline(const SourceManager &SM, const Token &Tok) { in startsWithNewline() argument
105 return isVerticalWhitespace(SM.getCharacterData(Tok.getLocation())[0]); in startsWithNewline()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/
DDiagnosticRenderer.cpp60 const SourceManager &SM, const LangOptions &LangOpts, in mergeFixits() argument
62 edit::Commit commit(SM, LangOpts); in mergeFixits()
80 edit::EditedSource Editor(SM, LangOpts); in mergeFixits()
249 void DiagnosticRenderer::emitModuleBuildStack(const SourceManager &SM) { in emitModuleBuildStack() argument
250 ModuleBuildStack Stack = SM.getModuleBuildStack(); in emitModuleBuildStack()
264 bool IsBegin, const SourceManager *SM, in retrieveMacroLocation() argument
266 assert(SM->getFileID(Loc) == MacroFileID); in retrieveMacroLocation()
274 if (SM->isMacroArgExpansion(Loc)) { in retrieveMacroLocation()
280 CharSourceRange(SM->getImmediateSpellingLoc(Loc), IsTokenRange); in retrieveMacroLocation()
281 MacroArgRange = SM->getImmediateExpansionRange(Loc); in retrieveMacroLocation()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/
DSourceLocation.cpp35 Loc.print(OS, SM); in print()
62 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{ in print()
69 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print()
81 SM.getExpansionLoc(*this).print(OS, SM); in print()
84 SM.getSpellingLoc(*this).print(OS, SM); in print()
89 SourceLocation::printToString(const SourceManager &SM) const { in printToString()
92 print(OS, SM); in printToString()
96 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const { in dump()
97 print(llvm::errs(), SM); in dump()
101 LLVM_DUMP_METHOD void SourceRange::dump(const SourceManager &SM) const { in dump()
[all …]
DCuda.cpp70 #define SM(sm) SM2(sm, "compute_" #sm) macro
77 SM(30), SM(32), SM(35), SM(37), // Kepler
78 SM(50), SM(52), SM(53), // Maxwell
79 SM(60), SM(61), SM(62), // Pascal
80 SM(70), SM(72), // Volta
81 SM(75), // Turing
82 SM(80), SM(86), // Ampere
117 #undef SM
/freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/
DMacroExpansionContext.cpp21 SourceManager &SM; member in clang::detail::MacroExpansionRangeRecorder
26 const Preprocessor &PP, SourceManager &SM, in MacroExpansionRangeRecorder() argument
28 : PP(PP), SM(SM), ExpansionRanges(ExpansionRanges) {} in MacroExpansionRangeRecorder()
36 SourceLocation MacroNameBegin = SM.getExpansionLoc(MacroName.getLocation()); in MacroExpands()
37 assert(MacroNameBegin == SM.getExpansionLoc(Range.getBegin())); in MacroExpands()
39 const SourceLocation ExpansionEnd = [Range, &SM = SM, &MacroName] { in MacroExpands()
42 return SM.getExpansionLoc( in MacroExpands()
46 return SM.getExpansionLoc(Range.getEnd()).getLocWithOffset(1); in MacroExpands()
54 MacroNameBegin.print(llvm::dbgs(), SM); in MacroExpands()
56 ExpansionEnd.print(llvm::dbgs(), SM); llvm::dbgs() << '\n';); in MacroExpands()
[all …]
DCFGStmtMap.cpp27 SMap *SM = AsMap(M); in getBlock() local
33 SMap::iterator I = SM->find(X); in getBlock()
34 if (I != SM->end()) { in getBlock()
38 (*SM)[X] = B; in getBlock()
48 static void Accumulate(SMap &SM, CFGBlock *B) { in Accumulate() argument
56 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate()
68 SM[Label] = B; in Accumulate()
74 SM[Term] = B; in Accumulate()
81 SMap *SM = new SMap(); in Build() local
86 Accumulate(*SM, *I); in Build()
[all …]
/freebsd-12-stable/sys/dev/ath/ath_hal/ar5416/
Dar5416_xmit.c81 SM(10, AR_QUIET2_QUIET_DUR)); in ar5416StopTxDma()
127 (SM((_series)[_index].Tries, AR_XmitDataTries##_index))
130 (SM((_series)[_index].Rate, AR_XmitRate##_index))
133 (SM((_series)[_index].PktDuration, AR_PacketDur##_index) |\
141 |SM((_series)[_index].ChSel, AR_ChainSel##_index)
375 ads->ds_ctl2 = SM(txTries0, AR_XmitDataTries0) in ar5416SetupTxDesc()
383 ads->ds_ctl7 = SM(ahp->ah_tx_chainmask, AR_ChainSel0) in ar5416SetupTxDesc()
384 | SM(ahp->ah_tx_chainmask, AR_ChainSel1) in ar5416SetupTxDesc()
385 | SM(ahp->ah_tx_chainmask, AR_ChainSel2) in ar5416SetupTxDesc()
386 | SM(ahp->ah_tx_chainmask, AR_ChainSel3) in ar5416SetupTxDesc()
[all …]
/freebsd-12-stable/sys/dev/ath/ath_hal/ar9002/
Dar9285_diversity.c93 regVal |= SM(ant_div_control1, AR_PHY_9285_ANT_DIV_CTL); in ar9285SetAntennaSwitch()
98 regVal |= SM(ant_div_control2, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch()
99 regVal |= SM((ant_div_control2 >> 2), AR_PHY_9285_ANT_DIV_MAIN_LNACONF); in ar9285SetAntennaSwitch()
100 regVal |= SM((ant_div_control1 >> 1), AR_PHY_9285_ANT_DIV_ALT_GAINTB); in ar9285SetAntennaSwitch()
101 regVal |= SM((ant_div_control1 >> 2), AR_PHY_9285_ANT_DIV_MAIN_GAINTB); in ar9285SetAntennaSwitch()
107 regVal |= SM(HAL_ANT_DIV_COMB_LNA2, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch()
108 regVal |= SM(HAL_ANT_DIV_COMB_LNA1, AR_PHY_9285_ANT_DIV_MAIN_LNACONF); in ar9285SetAntennaSwitch()
109 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_0, AR_PHY_9285_ANT_DIV_ALT_GAINTB); in ar9285SetAntennaSwitch()
110 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_1, AR_PHY_9285_ANT_DIV_MAIN_GAINTB); in ar9285SetAntennaSwitch()
116 regVal |= SM(HAL_ANT_DIV_COMB_LNA1, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteMacros.cpp63 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() local
67 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in LexRawTokensFromMainFile()
68 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile()
90 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() local
93 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput()
94 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput()
114 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
117 if (!SM.isWrittenInMainFile(PPLoc)) { in RewriteMacrosInInput()
133 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
139 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/FileCheck/
DFileCheck.cpp129 const SourceMgr &SM) const { in valueFromStringRepr()
141 return ErrorDiagnostic::get(SM, StrVal, IntegerParseErrorStr); in valueFromStringRepr()
150 return ErrorDiagnostic::get(SM, StrVal, IntegerParseErrorStr); in valueFromStringRepr()
155 return ErrorDiagnostic::get(SM, StrVal, "missing alternate form prefix"); in valueFromStringRepr()
392 BinaryOperation::getImplicitFormat(const SourceMgr &SM) const { in getImplicitFormat()
393 Expected<ExpressionFormat> LeftFormat = LeftOperand->getImplicitFormat(SM); in getImplicitFormat()
394 Expected<ExpressionFormat> RightFormat = RightOperand->getImplicitFormat(SM); in getImplicitFormat()
408 SM, getExpressionStr(), in getImplicitFormat()
440 Pattern::parseVariable(StringRef &Str, const SourceMgr &SM) { in parseVariable() argument
442 return ErrorDiagnostic::get(SM, Str, "empty variable name"); in parseVariable()
[all …]
DFileCheckImpl.h104 const SourceMgr &SM) const;
193 getImplicitFormat(const SourceMgr &SM) const { in getImplicitFormat() argument
341 getImplicitFormat(const SourceMgr &SM) const override { in getImplicitFormat() argument
382 getImplicitFormat(const SourceMgr &SM) const override;
506 SourceMgr &SM);
557 static Error get(const SourceMgr &SM, SMLoc Loc, const Twine &ErrMsg,
560 SM.GetMessage(Loc, SourceMgr::DK_Error, ErrMsg), Range);
563 static Error get(const SourceMgr &SM, StringRef Buffer, const Twine &ErrMsg) { in get() argument
566 return get(SM, Start, ErrMsg, SMRange(Start, End)); in get()
710 const SourceMgr &SM);
[all …]
/freebsd-12-stable/sys/dev/rtwn/rtl8812a/
Dr12a_tx.c82 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_BW, in r12a_tx_set_ht40()
84 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_PRIM_CHAN, in r12a_tx_set_ht40()
115 txd->txdw4 |= htole32(SM(R12A_TXDW4_RTSRATE, ridx)); in r12a_tx_protection()
117 txd->txdw4 |= htole32(SM(R12A_TXDW4_RTSRATE_FB_LMT, 0xf)); in r12a_tx_protection()
197 txd->txdw1 |= htole32(SM(R12A_TXDW1_RAID, raid)); in r12a_tx_raid()
265 txd->txdw4 |= htole32(SM(R12A_TXDW4_RETRY_LMT, in r12a_fill_tx_desc()
277 txd->txdw2 |= htole32(SM(R12A_TXDW2_AMPDU_DEN, in r12a_fill_tx_desc()
279 txd->txdw3 |= htole32(SM(R12A_TXDW3_MAX_AGG, in r12a_fill_tx_desc()
318 txd->txdw1 |= htole32(SM(R12A_TXDW1_QSEL, qsel)); in r12a_fill_tx_desc()
319 txd->txdw1 |= htole32(SM(R12A_TXDW1_MACID, macid)); in r12a_fill_tx_desc()
[all …]
Dr12a_chan.c72 SM(R12A_TXAGC_CCK1, power[RTWN_RIDX_CCK1]) | in r12a_write_txpower()
73 SM(R12A_TXAGC_CCK2, power[RTWN_RIDX_CCK2]) | in r12a_write_txpower()
74 SM(R12A_TXAGC_CCK55, power[RTWN_RIDX_CCK55]) | in r12a_write_txpower()
75 SM(R12A_TXAGC_CCK11, power[RTWN_RIDX_CCK11])); in r12a_write_txpower()
80 SM(R12A_TXAGC_OFDM06, power[RTWN_RIDX_OFDM6]) | in r12a_write_txpower()
81 SM(R12A_TXAGC_OFDM09, power[RTWN_RIDX_OFDM9]) | in r12a_write_txpower()
82 SM(R12A_TXAGC_OFDM12, power[RTWN_RIDX_OFDM12]) | in r12a_write_txpower()
83 SM(R12A_TXAGC_OFDM18, power[RTWN_RIDX_OFDM18])); in r12a_write_txpower()
85 SM(R12A_TXAGC_OFDM24, power[RTWN_RIDX_OFDM24]) | in r12a_write_txpower()
86 SM(R12A_TXAGC_OFDM36, power[RTWN_RIDX_OFDM36]) | in r12a_write_txpower()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
DNVPTX.td22 // - We use the SM version number instead of explicit feature table.
27 // SM Versions
29 "Target SM 2.0">;
31 "Target SM 2.1">;
33 "Target SM 3.0">;
35 "Target SM 3.2">;
37 "Target SM 3.5">;
39 "Target SM 3.7">;
41 "Target SM 5.0">;
43 "Target SM 5.2">;
[all …]
/freebsd-12-stable/sys/dev/rtwn/rtl8192c/
Dr92c_chan.c185 SM(R92C_TXAGC_RATE06, power[RTWN_RIDX_OFDM6]) | in r92c_write_txpower()
186 SM(R92C_TXAGC_RATE09, power[RTWN_RIDX_OFDM9]) | in r92c_write_txpower()
187 SM(R92C_TXAGC_RATE12, power[RTWN_RIDX_OFDM12]) | in r92c_write_txpower()
188 SM(R92C_TXAGC_RATE18, power[RTWN_RIDX_OFDM18])); in r92c_write_txpower()
190 SM(R92C_TXAGC_RATE24, power[RTWN_RIDX_OFDM24]) | in r92c_write_txpower()
191 SM(R92C_TXAGC_RATE36, power[RTWN_RIDX_OFDM36]) | in r92c_write_txpower()
192 SM(R92C_TXAGC_RATE48, power[RTWN_RIDX_OFDM48]) | in r92c_write_txpower()
193 SM(R92C_TXAGC_RATE54, power[RTWN_RIDX_OFDM54])); in r92c_write_txpower()
196 SM(R92C_TXAGC_MCS00, power[RTWN_RIDX_HT_MCS(0)]) | in r92c_write_txpower()
197 SM(R92C_TXAGC_MCS01, power[RTWN_RIDX_HT_MCS(1)]) | in r92c_write_txpower()
[all …]
Dr92c_tx.c77 txd->txdw4 |= htole32(SM(R92C_TXDW4_DATA_SCO, extc_offset)); in r92c_tx_set_ht40()
107 txd->txdw4 |= htole32(SM(R92C_TXDW4_RTSRATE, ridx)); in r92c_tx_protection()
109 txd->txdw5 |= htole32(SM(R92C_TXDW5_RTSRATE_FB_LMT, 0xf)); in r92c_tx_protection()
168 txd->txdw1 |= htole32(SM(R92C_TXDW1_RAID, raid)); in r92c_tx_raid()
212 txd->txdw1 |= htole32(SM(R92C_TXDW1_MACID, id)); in r92c_tx_setup_macid()
217 txd->txdw4 &= ~htole32(SM(R92C_TXDW4_RTSRATE, R92C_TXDW4_RTSRATE_M)); in r92c_tx_setup_macid()
262 txd->txdw5 |= htole32(SM(R92C_TXDW5_RTY_LMT, in r92c_fill_tx_desc()
275 txd->txdw2 |= htole32(SM(R92C_TXDW2_AMPDU_DEN, in r92c_fill_tx_desc()
277 txd->txdw6 |= htole32(SM(R92C_TXDW6_MAX_AGG, in r92c_fill_tx_desc()
317 txd->txdw1 |= htole32(SM(R92C_TXDW1_QSEL, qsel)); in r92c_fill_tx_desc()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
DTokens.cpp42 const SourceManager &SM) { in getTokensCovering() argument
47 return SM.isBeforeInTranslationUnit(T.location(), R.getBegin()); in getTokensCovering()
51 return !SM.isBeforeInTranslationUnit(R.getEnd(), T.location()); in getTokensCovering()
67 const SourceManager &SM) { in findCommonRangeForMacroArgs() argument
73 auto ExpInfoFirst = SM.getSLocEntry(SM.getFileID(FirstLoc)).getExpansion(); in findCommonRangeForMacroArgs()
74 auto ExpInfoLast = SM.getSLocEntry(SM.getFileID(LastLoc)).getExpansion(); in findCommonRangeForMacroArgs()
83 FirstLoc = SM.getImmediateSpellingLoc(FirstLoc); in findCommonRangeForMacroArgs()
84 LastLoc = SM.getImmediateSpellingLoc(LastLoc); in findCommonRangeForMacroArgs()
96 return SM.getExpansionRange(CharSourceRange(Res, true)).getAsRange(); in findCommonRangeForMacroArgs()
112 llvm::StringRef syntax::Token::text(const SourceManager &SM) const { in text()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/MCA/
DSupport.cpp39 void computeProcResourceMasks(const MCSchedModel &SM, in computeProcResourceMasks() argument
43 assert(Masks.size() == SM.getNumProcResourceKinds() && in computeProcResourceMasks()
49 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks()
50 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks()
58 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks()
59 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks()
73 for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks()
74 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks()
82 double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth, in computeBlockRThroughput() argument
93 for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeBlockRThroughput()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
DPlistSupport.h39 const SourceManager &SM, SourceLocation L) { in AddFID() argument
40 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID()
50 inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, in GetFID() argument
52 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
107 inline void EmitLocation(raw_ostream &o, const SourceManager &SM, in EmitLocation() argument
111 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
119 EmitInteger(o, GetFID(FM, SM, Loc)) << '\n'; in EmitLocation()
123 inline void EmitRange(raw_ostream &o, const SourceManager &SM, in EmitRange() argument
129 EmitLocation(o, SM, R.getBegin(), FM, indent + 1); in EmitRange()
134 EmitLocation(o, SM, R.getEnd().getLocWithOffset(-1), FM, indent + 1); in EmitRange()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Lex/
DLexer.h157 const SourceManager &SM, const LangOptions &LangOpts);
331 const SourceManager &SM,
340 const SourceManager &SM,
346 const SourceManager &SM,
354 const SourceManager &SM,
361 const SourceManager &SM,
369 const SourceManager &SM, in AdvanceToTokenCharacter() argument
372 getTokenPrefixLength(TokStart, Characters, SM, LangOpts)); in AdvanceToTokenCharacter()
391 const SourceManager &SM,
399 const SourceManager &SM, in getAsCharRange() argument
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCoverageMappingGen.cpp174 SpellingRegion(SourceManager &SM, SourceLocation LocStart, in SpellingRegion()
176 LineStart = SM.getSpellingLineNumber(LocStart); in SpellingRegion()
177 ColumnStart = SM.getSpellingColumnNumber(LocStart); in SpellingRegion()
178 LineEnd = SM.getSpellingLineNumber(LocEnd); in SpellingRegion()
179 ColumnEnd = SM.getSpellingColumnNumber(LocEnd); in SpellingRegion()
182 SpellingRegion(SourceManager &SM, SourceMappingRegion &R) in SpellingRegion()
183 : SpellingRegion(SM, R.getBeginLoc(), R.getEndLoc()) {} in SpellingRegion()
198 SourceManager &SM; member in __anon1b44d4080211::CoverageMappingBuilder
220 CoverageMappingBuilder(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingBuilder() argument
222 : CVM(CVM), SM(SM), LangOpts(LangOpts) {} in CoverageMappingBuilder()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
DPlistDiagnostics.cpp170 const MacroExpansionContext &MacroExpansions, const SourceManager &SM);
187 const SourceManager &SM = PP.getSourceManager(); in EmitRanges() local
191 EmitRange(o, SM, in EmitRanges()
192 Lexer::getAsCharRange(SM.getExpansionRange(R), SM, LangOpts), in EmitRanges()
218 const SourceManager &SM = PP.getSourceManager(); in EmitFixits() local
230 EmitRange(o, SM, Lexer::getAsCharRange(fixit.RemoveRange, SM, LangOpts), in EmitFixits()
244 const SourceManager &SM = PP.getSourceManager(); in ReportControlFlow() local
267 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow()
268 EmitRange(o, SM, Lexer::getAsCharRange(StartEdge, SM, LangOpts), FM, in ReportControlFlow()
272 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Edit/
DCommit.cpp24 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const { in getFileLocation()
25 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID()); in getFileLocation()
31 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const { in getFileRange()
32 SourceLocation Loc = getFileLocation(SM); in getFileRange()
36 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const { in getInsertFromRange()
37 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID()); in getInsertFromRange()
232 const SourceManager &SM = SourceMgr; in canInsert() local
233 loc = SM.getTopMacroCallerLoc(loc); in canInsert()
239 if (SM.isInSystemHeader(loc)) in canInsert()
242 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc); in canInsert()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DSourceExtraction.cpp21 bool isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM, in isSemicolonAtLocation() argument
24 CharSourceRange::getTokenRange(TokenLoc, TokenLoc), SM, in isSemicolonAtLocation()
61 const SourceManager &SM) { in areOnSameLine() argument
63 SM.getSpellingLineNumber(Loc1) == SM.getSpellingLineNumber(Loc2); in areOnSameLine()
73 const SourceManager &SM, in compute() argument
98 if (isSemicolonAtLocation(End, SM, LangOpts)) in compute()
103 Optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts); in compute()
105 areOnSameLine(NextToken->getLocation(), End, SM)) { in compute()

12345678910>>...18