[PATCH] D137259: [clang][modules][deps] WIP: In-memory module transfer

2023-04-20 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 abandoned this revision. jansvoboda11 added a comment. Using `CompilerInstance` as the module storage dramatically increases memory usage (peak ~30GB) of `clang-scan-deps` when scanning LLVM. (Memory mapping serialized files peaks at ~300MB.) Repository: rG LLVM Github Monorepo

[PATCH] D137259: [clang][modules][deps] WIP: In-memory module transfer

2022-11-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 475613. jansvoboda11 added a comment. Fixed two tests: - modules-pch.c by always marking identifier info as not out-of-date when getting leaf module macros, - modules-module-map-order.m by updating the sorting logic for gathering `SortedFiles`. Repos

[PATCH] D137259: [clang][modules][deps] WIP: In-memory module transfer

2022-11-03 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 473104. jansvoboda11 added a comment. Kinda rebase Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137259/new/ https://reviews.llvm.org/D137259 Files: clang/include/clang/Frontend/CompilerInstance.h cla

[PATCH] D137259: [clang][modules][deps] WIP: In-memory module transfer

2022-11-03 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 473043. jansvoboda11 added a comment. Handle macros Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137259/new/ https://reviews.llvm.org/D137259 Files: clang/include/clang/Frontend/CompilerInstance.h cl

[PATCH] D137259: [clang][modules][deps] WIP: In-memory module transfer

2022-11-02 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 472697. jansvoboda11 added a comment. Improve SourceLocation handling: invalid & inside predefines buffer. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137259/new/ https://reviews.llvm.org/D137259 Files:

[PATCH] D137259: [clang][modules][deps] WIP: In-memory module transfer

2022-11-02 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 created this revision. Herald added a subscriber: ributzka. Herald added a project: All. jansvoboda11 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Let's not create PCM files in the dependency scanner. Repository: rG LLVM