In the individual index files emitted for distributed ThinLTO backends,
the module path ids are not contiguous. Assign slots to module paths in
order to handle this better and also to get contiguous numbering in the
summary assembly.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 19958 Build 19958: arc lint + arc unit
Event Timeline
lib/IR/AsmWriter.cpp | ||
---|---|---|
1019 | No, there are 2 loops for the reason noted in the comments: Since the StringMap iteration order isn't // guaranteed, use a std::map to order by module ID before assigning slots. | |
1119 | Will do as a follow-on (I named this similar to the existing "initialize()" which does lazy initialization of slots needed for printing the Module. |
lgtm
lib/IR/AsmWriter.cpp | ||
---|---|---|
790 | CreateModulePathSlot is a tiny wrapper which should be marked as inline. I saw a different function is marked instead. |
lib/IR/AsmWriter.cpp | ||
---|---|---|
790 | Woops, will fix. |
make it an inline function.