Searched refs:SM (Results 1 - 25 of 430) sorted by relevance

1234567891011>>

/freebsd-current/contrib/llvm-project/clang/lib/Analysis/
H A DCFGStmtMap.cpp28 SMap *SM = AsMap(M); local
34 SMap::iterator I = SM->find(X);
35 if (I != SM->end()) {
39 (*SM)[X] = B;
49 static void Accumulate(SMap &SM, CFGBlock *B) { argument
57 CFGBlock *&Entry = SM[CS->getStmt()];
69 SM[Label] = B;
75 SM[Term] = B;
82 SMap *SM = new SMap();
87 Accumulate(*SM, *
[all...]
H A DMacroExpansionContext.cpp22 SourceManager &SM; member in class:clang::detail::MacroExpansionRangeRecorder
27 const Preprocessor &PP, SourceManager &SM,
29 : PP(PP), SM(SM), ExpansionRanges(ExpansionRanges) {}
37 SourceLocation MacroNameBegin = SM.getExpansionLoc(MacroName.getLocation());
38 assert(MacroNameBegin == SM.getExpansionLoc(Range.getBegin()));
40 const SourceLocation ExpansionEnd = [Range, &SM = SM, &MacroName] {
43 return SM.getExpansionLoc(
47 return SM
26 MacroExpansionRangeRecorder( const Preprocessor &PP, SourceManager &SM, MacroExpansionContext::ExpansionRangeMap &ExpansionRanges) argument
55 MacroNameBegin.print(llvm::dbgs(), SM); variable
57 ExpansionEnd.print(llvm::dbgs(), SM); llvm::dbgs() << '\\n';); variable
67 It->getFirst().print(llvm::dbgs(), SM); llvm::dbgs() << " to "; variable
68 It->getSecond().print(llvm::dbgs(), SM); variable
74 llvm::dbgs() << "remaps "; It->getFirst().print(llvm::dbgs(), SM); variable
75 llvm::dbgs() << " to "; It->getSecond().print(llvm::dbgs(), SM); variable
212 SLoc.print(llvm::dbgs(), *SM); llvm::dbgs() << '\\n';); local
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/MCA/
H A DSupport.cpp40 void computeProcResourceMasks(const MCSchedModel &SM, argument
44 assert(Masks.size() == SM.getNumProcResourceKinds() &&
50 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) {
51 const MCProcResourceDesc &Desc = *SM.getProcResource(I);
59 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) {
60 const MCProcResourceDesc &Desc = *SM.getProcResource(I);
74 for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) {
75 const MCProcResourceDesc &Desc = *SM.getProcResource(I);
83 double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth, argument
94 for (unsigned I = 0, E = SM
[all...]
H A DContext.cpp34 const MCSchedModel &SM = STI.getSchedModel(); local
36 if (!SM.isOutOfOrder())
40 auto RCU = std::make_unique<RetireControlUnit>(SM);
41 auto PRF = std::make_unique<RegisterFile>(SM, MRI, Opts.RegisterFileSize);
42 auto LSU = std::make_unique<LSUnit>(SM, Opts.LoadQueueSize,
44 auto HWS = std::make_unique<Scheduler>(SM, *LSU);
75 const MCSchedModel &SM = STI.getSchedModel(); local
76 auto PRF = std::make_unique<RegisterFile>(SM, MRI, Opts.RegisterFileSize);
77 auto LSU = std::make_unique<LSUnit>(SM, Opts.LoadQueueSize,
/freebsd-current/contrib/llvm-project/clang/lib/Basic/
H A DXRayLists.cpp23 ArrayRef<std::string> AttrListPaths, SourceManager &SM)
25 AlwaysInstrumentPaths, SM.getFileManager().getVirtualFileSystem())),
27 NeverInstrumentPaths, SM.getFileManager().getVirtualFileSystem())),
29 AttrListPaths, SM.getFileManager().getVirtualFileSystem())),
30 SM(SM) {}
75 return this->shouldImbueFunctionsInFile(SM.getFilename(SM.getFileLoc(Loc)),
20 XRayFunctionFilter( ArrayRef<std::string> AlwaysInstrumentPaths, ArrayRef<std::string> NeverInstrumentPaths, ArrayRef<std::string> AttrListPaths, SourceManager &SM) argument
H A DNoSanitizeList.cpp23 SourceManager &SM)
25 NoSanitizePaths, SM.getFileManager().getVirtualFileSystem())),
26 SM(SM) {}
58 containsFile(Mask, SM.getFilename(SM.getFileLoc(Loc)), Category);
22 NoSanitizeList(const std::vector<std::string> &NoSanitizePaths, SourceManager &SM) argument
H A DSourceLocation.cpp35 Loc.print(OS, SM);
62 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{
69 PresumedLoc PLoc = SM.getPresumedLoc(*this);
81 SM.getExpansionLoc(*this).print(OS, SM);
84 SM.getSpellingLoc(*this).print(OS, SM);
89 SourceLocation::printToString(const SourceManager &SM) const {
92 print(OS, SM);
96 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) cons
97 print(llvm::errs(), SM); local
102 print(llvm::errs(), SM); local
106 PrintDifference(raw_ostream &OS, const SourceManager &SM, SourceLocation Loc, PresumedLoc Previous) argument
[all...]
H A DCuda.cpp82 #define SM(sm) SM2(sm, "compute_" #sm) macro
89 SM(30), SM(32), SM(35), SM(37), // Kepler
90 SM(50), SM(52), SM(53), // Maxwell
91 SM(60), SM(6
146 #undef SM macro
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/Basic/
H A DPrettyStackTrace.h27 SourceManager &SM; member in class:clang::PrettyStackTraceLoc
32 : SM(sm), Loc(L), Message(Msg) {}
/freebsd-current/sys/dev/ath/ath_hal/ar9002/
H A Dar9285_diversity.c91 regVal |= SM(ant_div_control1, AR_PHY_9285_ANT_DIV_CTL);
96 regVal |= SM(ant_div_control2, AR_PHY_9285_ANT_DIV_ALT_LNACONF);
97 regVal |= SM((ant_div_control2 >> 2), AR_PHY_9285_ANT_DIV_MAIN_LNACONF);
98 regVal |= SM((ant_div_control1 >> 1), AR_PHY_9285_ANT_DIV_ALT_GAINTB);
99 regVal |= SM((ant_div_control1 >> 2), AR_PHY_9285_ANT_DIV_MAIN_GAINTB);
105 regVal |= SM(HAL_ANT_DIV_COMB_LNA2, AR_PHY_9285_ANT_DIV_ALT_LNACONF);
106 regVal |= SM(HAL_ANT_DIV_COMB_LNA1, AR_PHY_9285_ANT_DIV_MAIN_LNACONF);
107 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_0, AR_PHY_9285_ANT_DIV_ALT_GAINTB);
108 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_1, AR_PHY_9285_ANT_DIV_MAIN_GAINTB);
114 regVal |= SM(HAL_ANT_DIV_COMB_LNA
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp54 const SourceManager &SM,
65 if (SM.isInSystemHeader(Range.getBegin()) ||
66 SM.isInSystemHeader(Range.getEnd()))
71 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin());
72 std::pair<FileID, unsigned> EndInfo = SM.getDecomposedLoc(Range.getEnd());
85 const SourceManager &SM) {
86 return validateRange(Range, SM, /*AllowSystemHeaders=*/false);
90 const SourceManager &SM) {
92 const auto &Expansion = SM.getSLocEntry(SM
53 validateRange(const CharSourceRange &Range, const SourceManager &SM, bool AllowSystemHeaders) argument
84 validateEditRange(const CharSourceRange &Range, const SourceManager &SM) argument
89 spelledInMacroDefinition(SourceLocation Loc, const SourceManager &SM) argument
104 getRange(const CharSourceRange &EditRange, const SourceManager &SM, const LangOptions &LangOpts, bool IncludeMacroExpansion) argument
125 getFileRangeForEdit( const CharSourceRange &EditRange, const SourceManager &SM, const LangOptions &LangOpts, bool IncludeMacroExpansion) argument
136 getFileRange( const CharSourceRange &EditRange, const SourceManager &SM, const LangOptions &LangOpts, bool IncludeMacroExpansion) argument
148 startsWithNewline(const SourceManager &SM, const Token &Tok) argument
166 getEntityEndLoc(const SourceManager &SM, SourceLocation EntityLast, const std::set<tok::TokenKind> &Terminators, const LangOptions &LangOpts) argument
311 skipWhitespaceAndNewline(const SourceManager &SM, SourceLocation Loc, const LangOptions &LangOpts) argument
327 atOrBeforeSeparation(const SourceManager &SM, SourceLocation Loc, const LangOptions &LangOpts) argument
365 const SourceManager &SM = Context.getSourceManager(); local
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp63 SourceManager &SM = PP.getSourceManager();
67 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID());
68 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts());
90 SourceManager &SM = PP.getSourceManager();
93 Rewrite.setSourceMgr(SM, PP.getLangOpts());
94 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID());
114 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation());
117 if (!SM
[all...]
H A DRewriteTest.cpp19 SourceManager &SM = PP.getSourceManager(); local
22 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts);
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp22 bool isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM, argument
25 CharSourceRange::getTokenRange(TokenLoc, TokenLoc), SM,
62 const SourceManager &SM) {
64 SM.getSpellingLineNumber(Loc1) == SM.getSpellingLineNumber(Loc2);
74 const SourceManager &SM,
99 if (isSemicolonAtLocation(End, SM, LangOpts))
104 std::optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts);
106 areOnSameLine(NextToken->getLocation(), End, SM)) {
61 areOnSameLine(SourceLocation Loc1, SourceLocation Loc2, const SourceManager &SM) argument
73 compute(const Stmt *S, SourceRange &ExtractedRange, const SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-current/contrib/llvm-project/llvm/include/llvm/MCA/Stages/
H A DEntryStage.h29 SourceMgr &SM; member in class:llvm::mca::final
39 EntryStage(SourceMgr &SM) : SM(SM), NumRetired(0) {} argument
H A DInstructionTables.h29 const MCSchedModel &SM; member in class:llvm::mca::final
35 : SM(Model), Masks(Model.getNumProcResourceKinds()) {
/freebsd-current/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_aic.c453 ahp->ah_aic_sram[i] = (SM(aic_sram[i].sram.vga_dir_sign,
455 SM(aic_sram[i].sram.vga_quad_sign,
457 SM(aic_sram[i].sram.com_att_6db,
459 SM(aic_sram[i].sram.valid,
461 SM(aic_sram[i].sram.rot_dir_att_db,
463 SM(aic_sram[i].sram.rot_quad_att_db,
525 (SM(0, AR_PHY_AIC_MON_ENABLE) |
526 SM(40, AR_PHY_AIC_CAL_MAX_HOP_COUNT) |
527 SM(1, AR_PHY_AIC_CAL_MIN_VALID_COUNT) | //26
528 SM(3
[all...]
/freebsd-current/sys/dev/rtwn/rtl8812a/
H A Dr12a_beacon.c71 txd->txdw1 = htole32(SM(R12A_TXDW1_QSEL, R12A_TXDW1_QSEL_BEACON));
72 txd->txdw1 |= htole32(SM(R12A_TXDW1_MACID, RTWN_MACID_BC));
75 txd->txdw3 |= htole32(SM(R12A_TXDW3_SEQ_SEL, id));
77 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE, RTWN_RIDX_CCK1));
79 txd->txdw6 = htole32(SM(R21A_TXDW6_MBSSID, id));
89 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE,
92 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE, RTWN_RIDX_CCK1));
/freebsd-current/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h125 static bool isInCodeFile(SourceLocation SL, const SourceManager &SM) { argument
126 if (SM.isInMainFile(SL))
133 SourceLocation IL = SM.getIncludeLoc(SM.getFileID(SL));
134 if (!IL.isValid() || !SM.isInMainFile(IL))
138 if (SM.getFilename(IL).contains("UnifiedSource")) {
141 return llvm::StringSwitch<bool>(SM.getFilename(SL).rsplit('.').second)
151 const SourceManager &SM = getASTContext().getSourceManager(); local
152 return isInCodeFile(SL, SM);
/freebsd-current/contrib/llvm-project/clang/lib/ARCMigrate/
H A DPlistReporter.cpp36 SourceManager &SM,
49 AddFID(FM, Fids, SM, D.getLocation());
53 AddFID(FM, Fids, SM, RI->getBegin());
54 AddFID(FM, Fids, SM, RI->getEnd());
75 EmitString(o << " ", SM.getFileEntryRefForID(FID)->getName()) << '\n';
102 EmitLocation(o, SM, D.getLocation(), FM, 2);
109 CharSourceRange ExpansionRange = SM.getExpansionRange(R);
110 EmitRange(o, SM, Lexer::getAsCharRange(ExpansionRange, SM, LangOpts),
34 writeARCDiagsToPlist(const std::string &outPath, ArrayRef<StoredDiagnostic> diags, SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-current/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRefactoringRuleContext.h35 RefactoringRuleContext(const SourceManager &SM) : SM(SM) {} argument
37 const SourceManager &getSources() const { return SM; }
72 const SourceManager &SM; member in class:clang::tooling::RefactoringRuleContext
/freebsd-current/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DTokenBufferTokenManager.h24 : Tokens(Tokens), LangOpts(LangOpts), SM(SourceMgr) {}
37 return Token->text(SM);
43 SourceManager &sourceManager() { return SM; }
44 const SourceManager &sourceManager() const { return SM; }
62 SourceManager &SM; member in class:clang::syntax::TokenBufferTokenManager
/freebsd-current/contrib/llvm-project/llvm/lib/MCA/Stages/
H A DEntryStage.cpp22 return static_cast<bool>(CurrentInstruction) || !SM.isEnd();
33 if (!SM.hasNext()) {
34 if (!SM.isEnd())
39 SourceRef SR = SM.peekNext();
43 SM.updateNext();
/freebsd-current/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp59 const SourceManager &SM, const LangOptions &LangOpts,
61 edit::Commit commit(SM, LangOpts);
79 edit::EditedSource Editor(SM, LangOpts);
248 void DiagnosticRenderer::emitModuleBuildStack(const SourceManager &SM) { argument
249 ModuleBuildStack Stack = SM.getModuleBuildStack();
263 bool IsBegin, const SourceManager *SM,
265 assert(SM->getFileID(Loc) == MacroFileID);
273 if (SM->isMacroArgExpansion(Loc)) {
279 CharSourceRange(SM->getImmediateSpellingLoc(Loc), IsTokenRange);
280 MacroArgRange = SM
58 mergeFixits(ArrayRef<FixItHint> FixItHints, const SourceManager &SM, const LangOptions &LangOpts, SmallVectorImpl<FixItHint> &MergedFixits) argument
260 retrieveMacroLocation(SourceLocation Loc, FileID MacroFileID, FileID CaretFileID, const SmallVectorImpl<FileID> &CommonArgExpansions, bool IsBegin, const SourceManager *SM, bool &IsTokenRange) argument
315 getMacroArgExpansionFileIDs(SourceLocation Loc, SmallVectorImpl<FileID> &IDs, bool IsBegin, const SourceManager *SM) argument
331 computeCommonMacroArgExpansionFileIDs( SourceLocation Begin, SourceLocation End, const SourceManager *SM, SmallVectorImpl<FileID> &CommonArgExpansions) argument
360 const SourceManager *SM = &CaretLoc.getManager(); local
461 checkLocForMacroArgExpansion(SourceLocation Loc, const SourceManager &SM, SourceLocation ArgumentLoc) argument
474 checkRangeForMacroArgExpansion(CharSourceRange Range, const SourceManager &SM, SourceLocation ArgumentLoc) argument
534 const SourceManager &SM = Loc.getManager(); local
[all...]
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-mca/
H A DCodeRegion.cpp54 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error,
56 SM.PrintMessage(R.startLoc(), llvm::SourceMgr::DK_Note,
62 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error,
64 SM.PrintMessage(R.startLoc(), llvm::SourceMgr::DK_Note,
104 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error,
107 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Note,
110 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Note,
120 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error,
129 SM.PrintMessage(
132 SM
[all...]

Completed in 405 milliseconds

1234567891011>>