Closed 18liumin closed 9 months ago
A long time ago, I trained a model for my projects, here is the gist when training gist Hope it helps.
why ninja toolchain-distribution ninja: error: unknown target 'toolchain-distribution DESTDIR=${LLVM_INSTALLDIR} ninja install-toolchain-distribution-stripped
why ninja toolchain-distribution ninja: error: unknown target 'toolchain-distribution DESTDIR=${LLVM_INSTALLDIR} ninja install-toolchain-distribution-stripped
maybe some of these dependencies were missed, it's been a long time.
See the examples under
docs
, while they are specific to Fuchsia or chrome, they go through corpus extraction as a fairly early step.High-level, assuming your project is cmake based:
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
compiler_opt/tools/extract_ir.py
(see this for example - you may want to drop the--cmd_filter
)