| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | VirtualFileSystemTest.cpp | 1526 O->pushOverlay(FS); in TEST_F() 1628 O->pushOverlay(FS); in TEST_F() 1679 O->pushOverlay(FS); in TEST_F() 1815 auto FS = in TEST_F() local 1857 auto FS = in TEST_F() local 1915 O->pushOverlay(FS); in TEST_F() 1951 O->pushOverlay(FS); in TEST_F() 2033 FS = in TEST_F() 2238 O->pushOverlay(FS); in TEST_F() 2288 O->pushOverlay(FS); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsTargetMachine.cpp | 120 StringRef CPU, StringRef FS, in MipsTargetMachine() argument 132 NoMips16Subtarget(TT, CPU, FS.empty() ? "-mips16" : FS.str() + ",-mips16", in MipsTargetMachine() 134 Mips16Subtarget(TT, CPU, FS.empty() ? "+mips16" : FS.str() + ",+mips16", in MipsTargetMachine() 172 std::string FS = in getSubtargetImpl() local 186 FS += FS.empty() ? "+mips16" : ",+mips16"; in getSubtargetImpl() 188 FS += FS.empty() ? "-mips16" : ",-mips16"; in getSubtargetImpl() 190 FS += FS.empty() ? "+micromips" : ",+micromips"; in getSubtargetImpl() 192 FS += FS.empty() ? "-micromips" : ",-micromips"; in getSubtargetImpl() 194 FS += FS.empty() ? "+soft-float" : ",+soft-float"; in getSubtargetImpl() 196 auto &I = SubtargetMap[CPU + FS]; in getSubtargetImpl() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | CompilerTests.cpp | 24 MockFS FS; in TEST() local 30 EXPECT_THAT(buildCompilerInvocation(TU.inputs(FS), Diags) in TEST() 37 EXPECT_THAT(buildCompilerInvocation(TU.inputs(FS), Diags) in TEST() 46 EXPECT_THAT(buildCompilerInvocation(TU.inputs(FS), Diags) in TEST() 50 EXPECT_THAT(buildCompilerInvocation(TU.inputs(FS), Diags) in TEST() 62 MockFS FS; in TEST() local 67 EXPECT_THAT(buildCompilerInvocation(TU.inputs(FS), Diags) in TEST() 73 EXPECT_THAT(buildCompilerInvocation(TU.inputs(FS), Diags) in TEST() 86 MockFS FS; in TEST() local 107 MockFS FS; in TEST() local [all …]
|
| H A D | ClangdTests.cpp | 172 MockFS FS; local 224 MockFS FS; in TEST() local 259 MockFS FS; in TEST() local 306 } FS; in TEST() local 354 MockFS FS; in TEST() local 372 MockFS FS; in TEST() local 391 MockFS FS; in TEST() local 440 MockFS FS; in TEST() local 476 MockFS FS; in TEST() local 528 MockFS FS; in TEST() local [all …]
|
| H A D | HeaderSourceSwitchTests.cpp | 26 MockFS FS; in TEST() local 31 FS.Files[FooCpp]; in TEST() 32 FS.Files[FooH]; in TEST() 33 FS.Files[Invalid]; in TEST() 48 FS.Files[FooC]; in TEST() 49 FS.Files[FooHH]; in TEST() 57 FS.Files[Foo2C]; in TEST() 58 FS.Files[Foo2HH]; in TEST() 67 FS.Files[Foo3C]; in TEST() 68 FS.Files[Foo3HXX]; in TEST() [all …]
|
| H A D | StdLibTests.cpp | 50 MockFS FS; in TEST() local 51 FS.Files["std/foo.h"] = R"cpp( in TEST() 64 OriginalInputs.TFS = &FS; in TEST() 84 MockFS FS; in TEST() local 85 FS.Files["std/_"] = ""; in TEST() 86 FS.Files["libc/_"] = ""; in TEST() 123 FS.Files["libc/stdio.h"] = true; in TEST() 137 MockFS FS; in TEST() local 138 FS.Files["stdlib/vector"] = in TEST() 140 FS.Files["stdlib/list"] = in TEST() [all …]
|
| H A D | BackgroundIndexTests.cpp | 95 MockFS FS; in TEST_F() local 114 MockFS FS; in TEST_F() local 166 MockFS FS; in TEST_F() local 237 MockFS FS; in TEST_F() local 266 MockFS FS; in TEST_F() local 337 MockFS FS; in TEST_F() local 388 MockFS FS; in TEST_F() local 459 MockFS FS; in TEST_F() local 527 MockFS FS; in TEST_F() local 558 MockFS FS; in TEST_F() local [all …]
|
| H A D | HeadersTests.cpp | 43 FS.Files[MainFile] = ""; in HeadersTest() 55 PI.TFS = &FS; in setupClang() 134 MockFS FS; member in clang::clangd::__anon8a17411c0111::HeadersTest 158 FS.Files[MainFile] = R"cpp( in TEST_F() 162 FS.Files[BarHeader] = ""; in TEST_F() 175 FS.Files[BazHeader] = ""; in TEST_F() 180 FS.Files[MainFile] = R"cpp( in TEST_F() 214 FS.Files[MainFile] = R"cpp( in TEST_F() 229 FS.Files[BarHeader] = ""; in TEST_F() 236 FS.Files[BazHeader] = ""; in TEST_F() [all …]
|
| H A D | ConfigProviderTests.cpp | 97 MockFS FS; in TEST() local 98 FS.Files["foo.yaml"] = AddFooWithErr; in TEST() 114 FS.Files["foo.yaml"] = AddFooWithTypoErr; in TEST() 124 FS.Files["foo.yaml"] = AddBarBaz; in TEST() 131 FS.Files.erase("foo.yaml"); in TEST() 139 MockFS FS; in TEST() local 140 FS.Files["a/b/c/foo.yaml"] = AddBarBaz; in TEST() 141 FS.Files["a/foo.yaml"] = AddFooWithErr; in TEST() 174 FS.Files.erase("a/foo.yaml"); in TEST() 182 MockFS FS; in TEST() local [all …]
|
| H A D | GlobalCompilationDatabaseTests.cpp | 199 MockFS FS; in TEST() local 200 FS.Files[testPath("compile_commands.json")] = in TEST() 298 MockFS FS; in TEST() local 330 MockFS FS; in TEST() local 353 MockFS FS; in TEST() local 466 MockFS FS; in TEST_F() local 471 FS.Files["compile_flags.txt"] = "-DROOT"; in TEST_F() 485 ++FS.Timestamps["foo/compile_flags.txt"]; in TEST_F() 493 ++FS.Timestamps["foo/compile_flags.txt"]; in TEST_F() 505 FS.Files["foo/compile_commands.json"] = in TEST_F() [all …]
|
| H A D | FileIndexTests.cpp | 102 FileSymbols FS(IndexContents::All); in TEST() local 114 FileSymbols FS(IndexContents::All); in TEST() local 124 FileSymbols FS(IndexContents::All); in TEST() local 145 FileSymbols FS(IndexContents::All); in TEST() local 286 MockFS FS; in TEST() local 287 FS.Files[FooCpp] = ""; in TEST() 288 FS.Files[FooH] = R"cpp( in TEST() 293 PI.TFS = &FS; in TEST() 495 FileSymbols FS(IndexContents::All); in TEST() local 712 FS.update("f3", nullptr, nullptr, in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Mips/ |
| H A D | s2rem.ll | 18 ; PIC: save $16, $17, $ra, [[FS:[0-9]+]] 19 ; STATIC: save $16, $ra, [[FS:[0-9]+]] 20 ; PIC: restore $16, $17, $ra, [[FS]] 21 ; STATIC: restore $16, $ra, [[FS]] 36 ; PIC: restore $16, $17, $ra, $18, [[FS]] 50 ; PIC: restore $16, $17, $ra, $18, [[FS]] 65 ; PIC: restore $16, $17, $ra, $18, [[FS]] 79 ; PIC: save $16, $ra, [[FS:[0-9]+]] 80 ; STATIC: save $16, $ra, [[FS:[0-9]+]] 81 ; PIC: restore $16, $ra, [[FS]] [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseUtil.cpp | 85 bool SampleCoverageTracker::markSamplesUsed(const FunctionSamples *FS, in markSamplesUsed() argument 90 unsigned &Count = SampleCoverage[FS][Loc]; in markSamplesUsed() 101 SampleCoverageTracker::countUsedRecords(const FunctionSamples *FS, in countUsedRecords() argument 103 auto I = SampleCoverage.find(FS); in countUsedRecords() 112 for (const auto &I : FS->getCallsiteSamples()) in countUsedRecords() 126 SampleCoverageTracker::countBodyRecords(const FunctionSamples *FS, in countBodyRecords() argument 128 unsigned Count = FS->getBodySamples().size(); in countBodyRecords() 131 for (const auto &I : FS->getCallsiteSamples()) in countBodyRecords() 145 SampleCoverageTracker::countBodySamples(const FunctionSamples *FS, in countBodySamples() argument 148 for (const auto &I : FS->getBodySamples()) in countBodySamples() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Sparc/ |
| H A D | SparcTargetMachine.cpp | 91 const Target &T, const Triple &TT, StringRef CPU, StringRef FS, in SparcTargetMachine() argument 100 Subtarget(TT, std::string(CPU), std::string(FS), *this, is64bit), in SparcTargetMachine() 114 std::string FS = in getSubtargetImpl() local 123 FS += FS.empty() ? "+soft-float" : ",+soft-float"; in getSubtargetImpl() 125 auto &I = SubtargetMap[CPU + FS]; in getSubtargetImpl() 131 I = std::make_unique<SparcSubtarget>(TargetTriple, CPU, FS, *this, in getSubtargetImpl() 188 StringRef CPU, StringRef FS, in SparcV8TargetMachine() argument 193 : SparcTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, false) {} in SparcV8TargetMachine() 198 StringRef CPU, StringRef FS, in SparcV9TargetMachine() argument 203 : SparcTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, true) {} in SparcV9TargetMachine() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BPFSubtarget.cpp | 29 StringRef FS) { in initializeSubtargetDependencies() argument 31 initSubtargetFeatures(CPU, FS); in initializeSubtargetDependencies() 32 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in initializeSubtargetDependencies() 43 void BPFSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) { in initSubtargetFeatures() argument 61 const std::string &FS, const TargetMachine &TM) in BPFSubtarget() argument 62 : BPFGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), in BPFSubtarget() 63 FrameLowering(initializeSubtargetDependencies(CPU, FS)), in BPFSubtarget()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ConfigProvider.cpp | 57 const ThreadsafeFS &FS, in fromYAMLFile() argument 61 const ThreadsafeFS &FS; in fromYAMLFile() member in clang::clangd::config::Provider::fromYAMLFile::AbsFileProvider 67 Cache.get(FS, DC, P.FreshTime, Trusted, Result); in fromYAMLFile() 73 const ThreadsafeFS &FS, bool Trusted) in fromYAMLFile() argument 74 : Cache(Path, Directory), FS(FS), Trusted(Trusted) { in fromYAMLFile() 79 return std::make_unique<AbsFileProvider>(AbsPath, Directory, FS, Trusted); in fromYAMLFile() 87 const ThreadsafeFS &FS; in fromAncestorRelativeYAMLFiles() member in clang::clangd::config::Provider::fromAncestorRelativeYAMLFiles::RelFileProvider 130 Cache->get(FS, DC, P.FreshTime, Trusted, Result); in fromAncestorRelativeYAMLFiles() 135 RelFileProvider(llvm::StringRef RelPath, const ThreadsafeFS &FS, in fromAncestorRelativeYAMLFiles() argument 137 : RelPath(RelPath), FS(FS), Trusted(Trusted) { in fromAncestorRelativeYAMLFiles() [all …]
|
| H A D | FS.cpp | 25 void PreambleFileStatusCache::update(const llvm::vfs::FileSystem &FS, in update() argument 29 if (FS.makeAbsolute(PathStore)) in update() 55 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) { in getProducingFS() argument 60 CollectFS(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, in getProducingFS() argument 62 : ProxyFileSystem(std::move(FS)), StatCache(StatCache) {} in getProducingFS() 90 new CollectFS(std::move(FS), *this)); in getProducingFS() 95 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) const { in getConsumingFS() 98 CacheVFS(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, in getConsumingFS() argument 100 : ProxyFileSystem(std::move(FS)), StatCache(StatCache) {} in getConsumingFS() 111 return llvm::IntrusiveRefCntPtr<CacheVFS>(new CacheVFS(std::move(FS), *this)); in getConsumingFS()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | OSLog.cpp | 61 if (!FS.consumesDataArgument() && in HandlePrintfSpecifier() 62 FS.getConversionSpecifier().getKind() != in HandlePrintfSpecifier() 67 unsigned ArgIndex = FS.getArgIndex(); in HandlePrintfSpecifier() 83 auto &precision = FS.getPrecision(); in HandlePrintfSpecifier() 99 auto &precision = FS.getPrecision(); in HandlePrintfSpecifier() 115 if (FS.getPrecision().hasDataArgument()) { in HandlePrintfSpecifier() 120 if (FS.getFieldWidth().hasDataArgument()) { in HandlePrintfSpecifier() 124 if (FS.isSensitive()) in HandlePrintfSpecifier() 126 else if (FS.isPrivate()) in HandlePrintfSpecifier() 128 else if (FS.isPublic()) in HandlePrintfSpecifier() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AVR/ |
| H A D | AVRSubtarget.cpp | 31 const std::string &FS, const AVRTargetMachine &TM) in AVRSubtarget() argument 32 : AVRGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), ELFArch(0), in AVRSubtarget() 43 TLInfo(TM, initializeSubtargetDependencies(CPU, FS, TM)) { in AVRSubtarget() 45 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in AVRSubtarget() 49 AVRSubtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS, in initializeSubtargetDependencies() argument 52 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in initializeSubtargetDependencies()
|
| /llvm-project-15.0.7/clang/lib/Tooling/ |
| H A D | ExpandResponseFilesCompilationDatabase.cpp | 29 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) in ExpandResponseFilesDatabase() argument 30 : Base(std::move(Base)), Tokenizer(Tokenizer), FS(std::move(FS)) { in ExpandResponseFilesDatabase() 33 assert(this->FS != nullptr); in ExpandResponseFilesDatabase() 65 llvm::StringRef(Cmd.Directory), *FS); in expand() 76 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS; member in clang::tooling::__anone45282ab0111::ExpandResponseFilesDatabase 83 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) { in expandResponseFiles() argument 88 std::move(Base), Tokenizer, std::move(FS)); in expandResponseFiles()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetMachine.cpp | 46 static bool UsesVectorABI(StringRef CPU, StringRef FS) { in UsesVectorABI() argument 58 FS.split(Features, ',', -1, false /* KeepEmpty */); in UsesVectorABI() 74 StringRef FS) { in computeDataLayout() argument 75 bool VectorABI = UsesVectorABI(CPU, FS); in computeDataLayout() 171 StringRef CPU, StringRef FS, in SystemZTargetMachine() argument 177 T, computeDataLayout(TT, CPU, FS), TT, CPU, FS, Options, in SystemZTargetMachine() 197 std::string FS = in getSubtargetImpl() local 206 FS += FS.empty() ? "+soft-float" : ",+soft-float"; in getSubtargetImpl() 208 auto &I = SubtargetMap[CPU + TuneCPU + FS]; in getSubtargetImpl() 214 I = std::make_unique<SystemZSubtarget>(TargetTriple, CPU, TuneCPU, FS, in getSubtargetImpl()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCSubtargetInfo.cpp | 153 SubtargetFeatures Features(FS); in getFeatures() 209 StringRef FS) { in InitMCProcessorInfo() argument 210 FeatureBits = getFeatures(CPU, TuneCPU, FS, ProcDesc, ProcFeatures); in InitMCProcessorInfo() 211 FeatureString = std::string(FS); in InitMCProcessorInfo() 220 StringRef FS) { in setDefaultFeatures() argument 222 FeatureString = std::string(FS); in setDefaultFeatures() 237 InitMCProcessorInfo(CPU, TuneCPU, FS); in MCSubtargetInfo() 292 FeatureBitset MCSubtargetInfo::ApplyFeatureFlag(StringRef FS) { in ApplyFeatureFlag() argument 293 ::ApplyFeatureFlag(FeatureBits, FS, ProcFeatures); in ApplyFeatureFlag() 297 bool MCSubtargetInfo::checkFeatures(StringRef FS) const { in checkFeatures() [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | BuiltinTargetFeatures.h | 83 FeatureListStatus FS = {false, FeatureList}; in hasRequiredFeatures() local 84 while (!FS.HasFeatures && !FS.CurFeaturesList.empty()) in hasRequiredFeatures() 85 FS = getAndFeatures(FS.CurFeaturesList); in hasRequiredFeatures() 86 return FS.HasFeatures; in hasRequiredFeatures()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblySubtarget.cpp | 29 StringRef FS) { in initializeSubtargetDependencies() argument 36 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in initializeSubtargetDependencies() 42 const std::string &FS, in WebAssemblySubtarget() argument 44 : WebAssemblyGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), in WebAssemblySubtarget() 45 TargetTriple(TT), InstrInfo(initializeSubtargetDependencies(CPU, FS)), in WebAssemblySubtarget()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | R600Subtarget.cpp | 25 R600Subtarget::R600Subtarget(const Triple &TT, StringRef GPU, StringRef FS, in R600Subtarget() argument 27 : R600GenSubtargetInfo(TT, GPU, /*TuneCPU*/ GPU, FS), AMDGPUSubtarget(TT), in R600Subtarget() 30 TLInfo(TM, initializeSubtargetDependencies(TT, GPU, FS)), in R600Subtarget() 35 StringRef FS) { in initializeSubtargetDependencies() argument 37 FullFS += FS; in initializeSubtargetDependencies()
|