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

1234567891011>>

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/MCA/Stages/
H A DEntryStage.h29 SourceMgr &SM; member in class:llvm::mca::final
39 EntryStage(SourceMgr &SM) : CurrentInstruction(), SM(SM), NumRetired(0) { } argument
H A DInstructionTables.h29 const MCSchedModel &SM; member in class:llvm::mca::final
35 : Stage(), SM(Model), Masks(Model.getNumProcResourceKinds()) {
/freebsd-12-stable/contrib/llvm-project/llvm/lib/MCA/
H A DSupport.cpp39 void computeProcResourceMasks(const MCSchedModel &SM, argument
43 assert(Masks.size() == SM.getNumProcResourceKinds() &&
49 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) {
50 const MCProcResourceDesc &Desc = *SM.getProcResource(I);
58 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) {
59 const MCProcResourceDesc &Desc = *SM.getProcResource(I);
73 for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) {
74 const MCProcResourceDesc &Desc = *SM.getProcResource(I);
82 double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth, argument
93 for (unsigned I = 0, E = SM
[all...]
H A DContext.cpp32 const MCSchedModel &SM = STI.getSchedModel(); local
35 auto RCU = std::make_unique<RetireControlUnit>(SM);
36 auto PRF = std::make_unique<RegisterFile>(SM, MRI, Opts.RegisterFileSize);
37 auto LSU = std::make_unique<LSUnit>(SM, Opts.LoadQueueSize,
39 auto HWS = std::make_unique<Scheduler>(SM, *LSU);
/freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/
H A DCFGStmtMap.cpp27 SMap *SM = AsMap(M); local
33 SMap::iterator I = SM->find(X);
34 if (I != SM->end()) {
38 (*SM)[X] = B;
48 static void Accumulate(SMap &SM, CFGBlock *B) { argument
56 CFGBlock *&Entry = SM[CS->getStmt()];
68 SM[Label] = B;
74 SM[Term] = B;
81 SMap *SM = new SMap();
86 Accumulate(*SM, *
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/
H A DXRayLists.cpp19 ArrayRef<std::string> AttrListPaths, SourceManager &SM)
21 AlwaysInstrumentPaths, SM.getFileManager().getVirtualFileSystem())),
23 NeverInstrumentPaths, SM.getFileManager().getVirtualFileSystem())),
25 AttrListPaths, SM.getFileManager().getVirtualFileSystem())),
26 SM(SM) {}
69 return this->shouldImbueFunctionsInFile(SM.getFilename(SM.getFileLoc(Loc)),
16 XRayFunctionFilter( ArrayRef<std::string> AlwaysInstrumentPaths, ArrayRef<std::string> NeverInstrumentPaths, ArrayRef<std::string> AttrListPaths, SourceManager &SM) argument
H A DSanitizerBlacklist.cpp18 const std::vector<std::string> &BlacklistPaths, SourceManager &SM)
20 BlacklistPaths, SM.getFileManager().getVirtualFileSystem())),
21 SM(SM) {}
50 isBlacklistedFile(Mask, SM.getFilename(SM.getFileLoc(Loc)), Category);
17 SanitizerBlacklist( const std::vector<std::string> &BlacklistPaths, SourceManager &SM) argument
H A DSourceLocation.cpp33 Loc.print(OS, SM);
43 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{
50 PresumedLoc PLoc = SM.getPresumedLoc(*this);
62 SM.getExpansionLoc(*this).print(OS, SM);
65 SM.getSpellingLoc(*this).print(OS, SM);
70 SourceLocation::printToString(const SourceManager &SM) const {
73 print(OS, SM);
77 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) cons
78 print(llvm::errs(), SM); local
83 print(llvm::errs(), SM); local
87 PrintDifference(raw_ostream &OS, const SourceManager &SM, SourceLocation Loc, PresumedLoc Previous) argument
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
H A DASTDumper.h27 const SourceManager *SM)
28 : ASTDumper(OS, Traits, SM, SM && SM->getDiagnostics().getShowColors()) {}
31 const SourceManager *SM, bool ShowColors)
32 : ASTDumper(OS, Traits, SM, ShowColors, LangOptions()) {}
34 const SourceManager *SM, bool ShowColors,
36 : NodeDumper(OS, ShowColors, SM, PrintPolicy, Traits), OS(OS),
26 ASTDumper(raw_ostream &OS, const comments::CommandTraits *Traits, const SourceManager *SM) argument
30 ASTDumper(raw_ostream &OS, const comments::CommandTraits *Traits, const SourceManager *SM, bool ShowColors) argument
33 ASTDumper(raw_ostream &OS, const comments::CommandTraits *Traits, const SourceManager *SM, bool ShowColors, const PrintingPolicy &PrintPolicy) argument
/freebsd-12-stable/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) {}
H A DJsonSupport.h82 const SourceManager &SM,
91 PresumedLoc PLoc = SM.getPresumedLoc(Loc);
112 printSourceLocationAsJson(Out, SM.getExpansionLoc(Loc), SM, false);
114 printSourceLocationAsJson(Out, SM.getSpellingLoc(Loc), SM, true);
81 printSourceLocationAsJson(raw_ostream &Out, SourceLocation Loc, const SourceManager &SM, bool AddBraces = true) argument
/freebsd-12-stable/sys/dev/ath/ath_hal/ar9002/
H A Dar9285_diversity.c93 regVal |= SM(ant_div_control1, AR_PHY_9285_ANT_DIV_CTL);
98 regVal |= SM(ant_div_control2, AR_PHY_9285_ANT_DIV_ALT_LNACONF);
99 regVal |= SM((ant_div_control2 >> 2), AR_PHY_9285_ANT_DIV_MAIN_LNACONF);
100 regVal |= SM((ant_div_control1 >> 1), AR_PHY_9285_ANT_DIV_ALT_GAINTB);
101 regVal |= SM((ant_div_control1 >> 2), AR_PHY_9285_ANT_DIV_MAIN_GAINTB);
107 regVal |= SM(HAL_ANT_DIV_COMB_LNA2, AR_PHY_9285_ANT_DIV_ALT_LNACONF);
108 regVal |= SM(HAL_ANT_DIV_COMB_LNA1, AR_PHY_9285_ANT_DIV_MAIN_LNACONF);
109 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_0, AR_PHY_9285_ANT_DIV_ALT_GAINTB);
110 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_1, AR_PHY_9285_ANT_DIV_MAIN_GAINTB);
116 regVal |= SM(HAL_ANT_DIV_COMB_LNA
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp63 SourceManager &SM = PP.getSourceManager();
67 const llvm::MemoryBuffer *FromFile = SM.getBuffer(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-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp21 bool isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM, argument
24 CharSourceRange::getTokenRange(TokenLoc, TokenLoc), SM,
61 const SourceManager &SM) {
63 SM.getSpellingLineNumber(Loc1) == SM.getSpellingLineNumber(Loc2);
73 const SourceManager &SM,
98 if (isSemicolonAtLocation(End, SM, LangOpts))
103 Optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts);
105 areOnSameLine(NextToken->getLocation(), End, SM)) {
60 areOnSameLine(SourceLocation Loc1, SourceLocation Loc2, const SourceManager &SM) argument
72 compute(const Stmt *S, SourceRange &ExtractedRange, const SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-12-stable/contrib/llvm-project/llvm/tools/llvm-mca/
H A DCodeRegionGenerator.h40 CodeRegionGenerator(SourceMgr &SM) : Regions(SM) {} argument
56 AsmCodeRegionGenerator(const Target &T, SourceMgr &SM, MCContext &C, argument
59 : CodeRegionGenerator(SM), TheTarget(T), Ctx(C), MAI(A), STI(S), MCII(I),
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Lex/
H A DPPConditionalDirectiveRecord.h42 SourceManager &SM; member in class:clang::PPConditionalDirectiveRecord::CondDirectiveLoc::Comp
44 explicit Comp(SourceManager &SM) : SM(SM) {} argument
47 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc());
50 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS);
53 return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc());
66 explicit PPConditionalDirectiveRecord(SourceManager &SM);
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp35 const SourceManager &SM,
48 CharSourceRange Range = Lexer::makeFileCharRange(EditRange, SM, LangOpts);
54 if (SM.isInSystemHeader(Range.getBegin()) ||
55 SM.isInSystemHeader(Range.getEnd()))
58 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin());
59 std::pair<FileID, unsigned> EndInfo = SM.getDecomposedLoc(Range.getEnd());
34 getRangeForEdit(const CharSourceRange &EditRange, const SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-12-stable/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-12-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h86 SourceManager &SM; member in class:clang::CodeGen::CoverageMappingGen
91 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, argument
93 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr) {}
95 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, argument
98 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap) {}
/freebsd-12-stable/sys/dev/rtwn/rtl8812a/
H A Dr12a_beacon.c73 txd->txdw1 = htole32(SM(R12A_TXDW1_QSEL, R12A_TXDW1_QSEL_BEACON));
74 txd->txdw1 |= htole32(SM(R12A_TXDW1_MACID, RTWN_MACID_BC));
77 txd->txdw3 |= htole32(SM(R12A_TXDW3_SEQ_SEL, id));
79 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE, RTWN_RIDX_CCK1));
81 txd->txdw6 = htole32(SM(R21A_TXDW6_MBSSID, id));
91 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE,
94 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE, RTWN_RIDX_CCK1));
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h121 static bool isInCodeFile(SourceLocation SL, const SourceManager &SM) { argument
122 if (SM.isInMainFile(SL))
129 SourceLocation IL = SM.getIncludeLoc(SM.getFileID(SL));
130 if (!IL.isValid() || !SM.isInMainFile(IL))
134 if (SM.getFilename(IL).contains("UnifiedSource")) {
137 return llvm::StringSwitch<bool>(SM.getFilename(SL).rsplit('.').second)
147 const SourceManager &SM = getASTContext().getSourceManager(); local
148 return isInCodeFile(SL, SM);
/freebsd-12-stable/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.getFileEntryForID(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-12-stable/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-12-stable/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp60 const SourceManager &SM, const LangOptions &LangOpts,
62 edit::Commit commit(SM, LangOpts);
80 edit::EditedSource Editor(SM, LangOpts);
249 void DiagnosticRenderer::emitModuleBuildStack(const SourceManager &SM) { argument
250 ModuleBuildStack Stack = SM.getModuleBuildStack();
264 bool IsBegin, const SourceManager *SM,
266 assert(SM->getFileID(Loc) == MacroFileID);
274 if (SM->isMacroArgExpansion(Loc)) {
280 CharSourceRange(SM->getImmediateSpellingLoc(Loc), IsTokenRange);
281 MacroArgRange = SM
59 mergeFixits(ArrayRef<FixItHint> FixItHints, const SourceManager &SM, const LangOptions &LangOpts, SmallVectorImpl<FixItHint> &MergedFixits) argument
261 retrieveMacroLocation(SourceLocation Loc, FileID MacroFileID, FileID CaretFileID, const SmallVectorImpl<FileID> &CommonArgExpansions, bool IsBegin, const SourceManager *SM, bool &IsTokenRange) argument
316 getMacroArgExpansionFileIDs(SourceLocation Loc, SmallVectorImpl<FileID> &IDs, bool IsBegin, const SourceManager *SM) argument
332 computeCommonMacroArgExpansionFileIDs( SourceLocation Begin, SourceLocation End, const SourceManager *SM, SmallVectorImpl<FileID> &CommonArgExpansions) argument
361 const SourceManager *SM = &CaretLoc.getManager(); local
455 checkLocForMacroArgExpansion(SourceLocation Loc, const SourceManager &SM, SourceLocation ArgumentLoc) argument
468 checkRangeForMacroArgExpansion(CharSourceRange Range, const SourceManager &SM, SourceLocation ArgumentLoc) argument
530 const SourceManager &SM = Loc.getManager(); local
[all...]

Completed in 403 milliseconds

1234567891011>>