Details
- Reviewers
lhames
Diff Detail
Event Timeline
Update other big JITTargetMachineBuilder parameters passed by reference and format changes by clang-format tool
Update another parameter passed by reference and tutorials of building JIT and add const
Hi @fzou1,
JITTargetMachineBuilders are only moved around at startup at the moment, and they're only ~0.5kb. Have they been observed to have a performance impact? If so we should probably transfer them via unique_ptr to avoid the copies, but I'm not sure it's necessary yet.
llvm/docs/tutorial/BuildingAJIT1.rst | ||
---|---|---|
195–197 | The introduction of EPC here seems unrelated to the other changes? | |
llvm/docs/tutorial/BuildingAJIT2.rst | ||
61 | Is this change related to the rest of the patch? |
Sorry. No performance impact observed. They're nice-to-have changes. If needed, I'll update the patch with unique_ptr.
llvm/docs/tutorial/BuildingAJIT1.rst | ||
---|---|---|
195–197 | Yes. But the example code is out of date and should be same as in KaleidoscopeJIT.h header file. | |
llvm/docs/tutorial/BuildingAJIT2.rst | ||
61 | Partly yes. This example code is out of date. I updated it together with the code of passing argument by reference. |
The introduction of EPC here seems unrelated to the other changes?