Home
last modified time | relevance | path

Searched refs:InMemoryFileSystem (Results 1 – 25 of 53) sorted by relevance

123

/aosp_15_r20/external/executorch/backends/apple/coreml/runtime/inmemoryfs/
H A Dinmemory_filesystem.cpp30 class InMemoryFileNode : public InMemoryFileSystem::InMemoryNode {
33 InMemoryFileSystem::Attributes attributes, in InMemoryFileNode()
46 class InMemoryDirectoryNode : public InMemoryFileSystem::InMemoryNode {
50 …InMemoryDirectoryNode(std::string name, InMemoryFileSystem::Attributes attributes, ItemsType items… in InMemoryDirectoryNode()
54 InMemoryDirectoryNode(std::string name, InMemoryFileSystem::Attributes attributes) noexcept in InMemoryDirectoryNode()
103 InMemoryFileSystem::InMemoryNode* get_node(InMemoryFileSystem::InMemoryNode* node, in get_node()
133 InMemoryFileSystem::Attributes get_file_attributes(const std::filesystem::path& path) { in get_file_attributes()
134 auto attributes = InMemoryFileSystem::Attributes(); in get_file_attributes()
141 MemoryBuffer::ReadOption to_memory_buffer_read_option(InMemoryFileSystem::FileLoadOption option) { in to_memory_buffer_read_option()
143 case InMemoryFileSystem::FileLoadOption::Malloc: in to_memory_buffer_read_option()
[all …]
H A Dinmemory_filesystem.hpp23 class InMemoryFileSystem final { class
117 case InMemoryFileSystem::InMemoryNode::Kind::Directory: in isDirectory()
131 InMemoryFileSystem::Attributes attributes_;
138 explicit InMemoryFileSystem(std::string rootName = "root") noexcept;
143 explicit InMemoryFileSystem(std::unique_ptr<InMemoryNode> root) noexcept in InMemoryFileSystem() function in inmemoryfs::InMemoryFileSystem
147 InMemoryFileSystem(InMemoryFileSystem const&) = delete;
148 InMemoryFileSystem& operator=(InMemoryFileSystem const&) = delete;
150 virtual ~InMemoryFileSystem() {} in ~InMemoryFileSystem()
276 static std::unique_ptr<InMemoryFileSystem> make_from_directory(const std::string& path,
329 …static std::unique_ptr<InMemoryFileSystem> make_from_buffer(const std::shared_ptr<MemoryBuffer>& b…
[all …]
H A Dinmemory_filesystem_utils.cpp91 bool serialize(const InMemoryFileSystem& file_system, in serialize()
96InMemoryFileSystem::MetadataWriter metadata_writer = [](const InMemoryFileSystemMetadata& fs_metad… in serialize()
105 bool serialize(const InMemoryFileSystem& file_system, in serialize()
110InMemoryFileSystem::MetadataWriterInMemory metadata_writer = [](const InMemoryFileSystemMetadata& … in serialize()
118 size_t get_buffer_size_for_serialization(const InMemoryFileSystem& file_system, in get_buffer_size_for_serialization()
121InMemoryFileSystem::MetadataWriter metadata_writer = [](const InMemoryFileSystemMetadata& fs_metad… in get_buffer_size_for_serialization()
129 std::unique_ptr<InMemoryFileSystem> make_from_buffer(const std::shared_ptr<MemoryBuffer>& buffer) n… in make_from_buffer()
130 InMemoryFileSystem::MetadataReader metadata_reader = [](std::istream& stream) { in make_from_buffer()
142 return InMemoryFileSystem::make_from_buffer(buffer, metadata_reader); in make_from_buffer()
H A Dinmemory_filesystem_utils.mm128 bool serialize(const InMemoryFileSystem& file_system,
133InMemoryFileSystem::MetadataWriter metadata_writer = [](const InMemoryFileSystemMetadata& fs_metad…
142 bool serialize(const InMemoryFileSystem& file_system,
147InMemoryFileSystem::MetadataWriterInMemory metadata_writer = [](const InMemoryFileSystemMetadata& …
155 size_t get_buffer_size_for_serialization(const InMemoryFileSystem& file_system,
158InMemoryFileSystem::MetadataWriter metadata_writer = [](const InMemoryFileSystemMetadata& fs_metad…
166 std::unique_ptr<InMemoryFileSystem> make_from_buffer(const std::shared_ptr<MemoryBuffer>& buffer) n…
167 InMemoryFileSystem::MetadataReader metadata_reader = [](std::istream& stream) {
171 return InMemoryFileSystem::make_from_buffer(buffer, metadata_reader);
H A Dinmemory_filesystem_utils.hpp25 bool serialize(const InMemoryFileSystem& fs,
42 bool serialize(const InMemoryFileSystem& fs,
54 size_t get_buffer_size_for_serialization(const InMemoryFileSystem& fs,
62 std::unique_ptr<InMemoryFileSystem> make_from_buffer(const std::shared_ptr<MemoryBuffer>& buffer) n…
H A Dinmemory_filesystem_py.cpp76 …auto fs = InMemoryFileSystem::make_from_directory(dir_path, InMemoryFileSystem::FileLoadOption::La… in get_bytes_from_external_memory()
111 PyBytesObject* get_bytes(inmemoryfs::InMemoryFileSystem& fs, size_t length) { in get_bytes()
140 …auto fs = InMemoryFileSystem::make_from_directory(canonical_path, InMemoryFileSystem::FileLoadOpti… in flatten_directory_contents()
/aosp_15_r20/external/executorch/backends/apple/coreml/runtime/test/
H A DInMemoryFileSystemTests.mm88 InMemoryFileSystem::FileLoadOption file_load_option;
104 auto fs = InMemoryFileSystem("test");
109 auto fs = InMemoryFileSystem("test");
113 …XCTAssertTrue(fs.make_file({"content.json"}, buffer, InMemoryFileSystem::Attributes(), false /*ov…
115 …XCTAssertFalse(fs.make_file({"content.json"}, buffer, InMemoryFileSystem::Attributes(), false /*ov…
117 …XCTAssertTrue(fs.make_file({"content.json"}, buffer, InMemoryFileSystem::Attributes(), true /*over…
121 auto fs = InMemoryFileSystem("test");
123 XCTAssertTrue(fs.make_directory({"dir1"}, InMemoryFileSystem::Attributes(), false, error));
125 …XCTAssertFalse(fs.make_directory({"dir1", "dir2", "dir3"}, InMemoryFileSystem::Attributes(), false…
127 …XCTAssertTrue(fs.make_directory({"dir1", "dir2", "dir3"}, InMemoryFileSystem::Attributes(), true /…
[all …]
/aosp_15_r20/external/clang/unittests/Driver/
H A DToolChainTest.cpp34 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() local
35 new vfs::InMemoryFileSystem); in TEST()
37 InMemoryFileSystem); in TEST()
58 InMemoryFileSystem->addFile(Path, 0, in TEST()
87 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() local
88 new vfs::InMemoryFileSystem); in TEST()
90 InMemoryFileSystem); in TEST()
97 InMemoryFileSystem->addFile(Path, 0, in TEST()
/aosp_15_r20/external/clang/lib/Tooling/
H A DTooling.cpp135 llvm::IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in runToolOnCodeWithArgs() local
136 new vfs::InMemoryFileSystem); in runToolOnCodeWithArgs()
137 OverlayFileSystem->pushOverlay(InMemoryFileSystem); in runToolOnCodeWithArgs()
145 InMemoryFileSystem->addFile(FileNameRef, 0, in runToolOnCodeWithArgs()
150 InMemoryFileSystem->addFile( in runToolOnCodeWithArgs()
322 InMemoryFileSystem(new vfs::InMemoryFileSystem), in ClangTool()
325 OverlayFileSystem->pushOverlay(InMemoryFileSystem); in ClangTool()
375 InMemoryFileSystem->addFile( in run()
420 InMemoryFileSystem->addFile( in run()
510 llvm::IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in buildASTFromCodeWithArgs() local
[all …]
/aosp_15_r20/external/clang/tools/clang-format/
H A DClangFormat.cpp115 vfs::InMemoryFileSystem *MemFS) { in createInMemoryFile()
132 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in fillRanges() local
133 new vfs::InMemoryFileSystem); in fillRanges()
134 FileManager Files(FileSystemOptions(), InMemoryFileSystem); in fillRanges()
140 InMemoryFileSystem.get()); in fillRanges()
284 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in format() local
285 new vfs::InMemoryFileSystem); in format()
286 FileManager Files(FileSystemOptions(), InMemoryFileSystem); in format()
292 InMemoryFileSystem.get()); in format()
/aosp_15_r20/external/clang/unittests/Tooling/
H A DToolingTest.cpp154 llvm::IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() local
155 new vfs::InMemoryFileSystem); in TEST()
156 OverlayFileSystem->pushOverlay(InMemoryFileSystem); in TEST()
166 InMemoryFileSystem->addFile( in TEST()
168 InMemoryFileSystem->addFile("def/abc", 0, in TEST()
180 llvm::IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() local
181 new vfs::InMemoryFileSystem); in TEST()
182 OverlayFileSystem->pushOverlay(InMemoryFileSystem); in TEST()
192 InMemoryFileSystem->addFile( in TEST()
194 InMemoryFileSystem->addFile("def/abc", 0, in TEST()
[all …]
H A DRewriterTestContext.h42 InMemoryFileSystem(new vfs::InMemoryFileSystem), in RewriterTestContext()
50 OverlayFileSystem->pushOverlay(InMemoryFileSystem); in RewriterTestContext()
58 InMemoryFileSystem->addFile(Name, 0, std::move(Source)); in createInMemoryFile()
117 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem; variable
/aosp_15_r20/external/clang/lib/Index/
H A DSimpleFormatContext.h41 InMemoryFileSystem(new vfs::InMemoryFileSystem), in SimpleFormatContext()
42 Files(FileSystemOptions(), InMemoryFileSystem), in SimpleFormatContext()
49 InMemoryFileSystem->addFile(Name, 0, in createInMemoryFile()
66 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem; variable
/aosp_15_r20/external/clang/lib/Format/
H A DTokenAnalyzer.cpp44 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in CreateVirtualEnvironment() local
45 new vfs::InMemoryFileSystem); in CreateVirtualEnvironment()
49 new FileManager(FileSystemOptions(), InMemoryFileSystem)); in CreateVirtualEnvironment()
59 InMemoryFileSystem->addFile( in CreateVirtualEnvironment()
/aosp_15_r20/external/clang/unittests/Lex/
H A DPPCallbacksTest.cpp113 : InMemoryFileSystem(new vfs::InMemoryFileSystem), in PPCallbacksTest()
114 FileMgr(FileSystemOptions(), InMemoryFileSystem), in PPCallbacksTest()
122 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem; member in __anoncbfd87660111::PPCallbacksTest
137 InMemoryFileSystem->addFile(HeaderPath, 0, in AddFakeHeader()
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Support/
H A DVirtualFileSystem.cpp800 InMemoryFileSystem::InMemoryFileSystem(bool UseNormalizedPaths) in InMemoryFileSystem() function in llvm::vfs::InMemoryFileSystem
808 InMemoryFileSystem::~InMemoryFileSystem() = default;
810 std::string InMemoryFileSystem::toString() const { in toString()
814 bool InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime, in addFile()
891 bool InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime, in addFile()
909 bool InMemoryFileSystem::addFileNoOwn( in addFileNoOwn()
928 InMemoryFileSystem::lookupNode(const Twine &P, bool FollowFinalSymlink, in lookupNode()
958 if (SymlinkDepth > InMemoryFileSystem::MaxSymlinkDepth) in lookupNode()
1002 bool InMemoryFileSystem::addHardLink(const Twine &NewLink, in addHardLink()
1021 bool InMemoryFileSystem::addSymbolicLink( in addSymbolicLink()
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DVirtualFileSystem.cpp679 InMemoryFileSystem::InMemoryFileSystem(bool UseNormalizedPaths) in InMemoryFileSystem() function in llvm::vfs::InMemoryFileSystem
686 InMemoryFileSystem::~InMemoryFileSystem() = default;
688 std::string InMemoryFileSystem::toString() const { in toString()
692 bool InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime, in addFile()
783 bool InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime, in addFile()
793 bool InMemoryFileSystem::addFileNoOwn(const Twine &P, time_t ModificationTime, in addFileNoOwn()
807 lookupInMemoryNode(const InMemoryFileSystem &FS, detail::InMemoryDirectory *Dir, in lookupInMemoryNode()
850 bool InMemoryFileSystem::addHardLink(const Twine &FromPath, in addHardLink()
862 llvm::ErrorOr<Status> InMemoryFileSystem::status(const Twine &Path) { in status()
870 InMemoryFileSystem::openFileForRead(const Twine &Path) { in openFileForRead()
[all …]
/aosp_15_r20/external/executorch/backends/apple/coreml/runtime/delegate/
H A DETCoreMLModelManager.mm160 NSData * _Nullable get_file_data(const inmemoryfs::InMemoryFileSystem *inMemoryFS,
178 std::optional<ModelMetadata> get_model_metadata(const inmemoryfs::InMemoryFileSystem *inMemoryFS) {
208 const inmemoryfs::InMemoryFileSystem *inmemory_fs,
255 std::optional<ModelAssetType> get_model_asset_type(const inmemoryfs::InMemoryFileSystem *inmemory_f…
321 ETCoreMLModelDebugInfo * _Nullable get_model_debug_info(const inmemoryfs::InMemoryFileSystem *inMem…
407 inMemoryFS:(const inmemoryfs::InMemoryFileSystem*)inMemoryFS
439 … inMemoryFS:(const inmemoryfs::InMemoryFileSystem*)inMemoryFS
494 … inMemoryFS:(const inmemoryfs::InMemoryFileSystem*)inMemoryFS
530 … std::unique_ptr<InMemoryFileSystem> inMemoryFS = inmemoryfs::make_from_buffer(std::move(buffer));
/aosp_15_r20/external/clang/lib/Tooling/Core/
H A DReplacement.cpp257 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in applyAllReplacements() local
258 new vfs::InMemoryFileSystem); in applyAllReplacements()
259 FileManager Files(FileSystemOptions(), InMemoryFileSystem); in applyAllReplacements()
265 InMemoryFileSystem->addFile( in applyAllReplacements()
/aosp_15_r20/external/clang/lib/Basic/
H A DVirtualFileSystem.cpp495 InMemoryFileSystem::InMemoryFileSystem(bool UseNormalizedPaths) in InMemoryFileSystem() function in clang::vfs::InMemoryFileSystem
502 InMemoryFileSystem::~InMemoryFileSystem() {} in ~InMemoryFileSystem()
504 std::string InMemoryFileSystem::toString() const { in toString()
508 bool InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime, in addFile()
573 bool InMemoryFileSystem::addFileNoOwn(const Twine &P, time_t ModificationTime, in addFileNoOwn()
581 lookupInMemoryNode(const InMemoryFileSystem &FS, detail::InMemoryDirectory *Dir, in lookupInMemoryNode()
618 llvm::ErrorOr<Status> InMemoryFileSystem::status(const Twine &Path) { in status()
626 InMemoryFileSystem::openFileForRead(const Twine &Path) { in openFileForRead()
664 directory_iterator InMemoryFileSystem::dir_begin(const Twine &Dir, in dir_begin()
679 std::error_code InMemoryFileSystem::setCurrentWorkingDirectory(const Twine &P) { in setCurrentWorkingDirectory()
/aosp_15_r20/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
H A DOkUrlFactoryTest.java7 import com.squareup.okhttp.internal.io.InMemoryFileSystem;
34 @Rule public InMemoryFileSystem fileSystem = new InMemoryFileSystem();
/aosp_15_r20/external/sandboxed-api/sandboxed_api/tools/clang_generator/
H A Dfrontend_action_test_util.cc46 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> fs( in RunClangTool()
47 new llvm::vfs::InMemoryFileSystem()); in RunClangTool()
/aosp_15_r20/external/clang/include/clang/Basic/
H A DVirtualFileSystem.h287 class InMemoryFileSystem : public FileSystem {
293 explicit InMemoryFileSystem(bool UseNormalizedPaths = true);
294 ~InMemoryFileSystem() override;
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/clang-tidy/
DExpandModularHeadersPPCallbacks.h18 class InMemoryFileSystem; variable
127 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFs;
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/clang-tidy/
DExpandModularHeadersPPCallbacks.h18 class InMemoryFileSystem; variable
127 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFs;

123