/aosp_15_r20/external/executorch/backends/apple/coreml/runtime/inmemoryfs/ |
H A D | inmemory_filesystem.cpp | 30 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 D | inmemory_filesystem.hpp | 23 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 D | inmemory_filesystem_utils.cpp | 91 bool serialize(const InMemoryFileSystem& file_system, in serialize() 96 …InMemoryFileSystem::MetadataWriter metadata_writer = [](const InMemoryFileSystemMetadata& fs_metad… in serialize() 105 bool serialize(const InMemoryFileSystem& file_system, in serialize() 110 …InMemoryFileSystem::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() 121 …InMemoryFileSystem::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 D | inmemory_filesystem_utils.mm | 128 bool serialize(const InMemoryFileSystem& file_system, 133 …InMemoryFileSystem::MetadataWriter metadata_writer = [](const InMemoryFileSystemMetadata& fs_metad… 142 bool serialize(const InMemoryFileSystem& file_system, 147 …InMemoryFileSystem::MetadataWriterInMemory metadata_writer = [](const InMemoryFileSystemMetadata& … 155 size_t get_buffer_size_for_serialization(const InMemoryFileSystem& file_system, 158 …InMemoryFileSystem::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 D | inmemory_filesystem_utils.hpp | 25 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 D | inmemory_filesystem_py.cpp | 76 …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 D | InMemoryFileSystemTests.mm | 88 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 D | ToolChainTest.cpp | 34 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 D | Tooling.cpp | 135 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 D | ClangFormat.cpp | 115 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 D | ToolingTest.cpp | 154 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 D | RewriterTestContext.h | 42 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 D | SimpleFormatContext.h | 41 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 D | TokenAnalyzer.cpp | 44 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 D | PPCallbacksTest.cpp | 113 : 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 D | VirtualFileSystem.cpp | 800 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 D | VirtualFileSystem.cpp | 679 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 D | ETCoreMLModelManager.mm | 160 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 D | Replacement.cpp | 257 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 D | VirtualFileSystem.cpp | 495 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 D | OkUrlFactoryTest.java | 7 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 D | frontend_action_test_util.cc | 46 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 D | VirtualFileSystem.h | 287 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/ |
D | ExpandModularHeadersPPCallbacks.h | 18 class InMemoryFileSystem; variable 127 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFs;
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/clang-tidy/ |
D | ExpandModularHeadersPPCallbacks.h | 18 class InMemoryFileSystem; variable 127 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFs;
|