üzerinde en iyileştirme yüklemesi başarısız oluyor Bu LLVM instrumentation project'u çalıştırmaya çalışıyorum, ancak yalnızca Linux altında enstrümantasyon optimizasyonunu yükleyebiliyorum.LLVM: OSX
OSX'te LLVM 3.2 ve Clang 3.2'yi derledim ve yükledim ve aynı sürümü Linux'ta aldım.
command opt -load ./obj/llvminstrument/libllvminstrument.so -help |grep instrum
-insert-edge-profiling - Insert instrumentation for edge profiling
-insert-gcov-profiling - Insert instrumentation for GCOV profiling
-insert-optimal-edge-profiling - Insert optimal instrumentation for edge profiling
-insert-path-profiling - Insert instrumentation for Ball-Larus path profiling
-instrument_block - Injects block instrumentation instructions
-instrument_function - Injects function instrumentation instructions
-instrument_prepare - Prepares instrumentation instructions
Aynı komutu, OSX içinde:
Linux çalıştırmak için deneyin
Bunu düzeltmek için ne kadar tam olarak bilmiyorumcommand opt -load ./obj/llvminstrument/libllvminstrument.dylib -help |grep instrum │········
opt: CommandLine Error: Argument 'track-memory' defined more than once! │········
opt: CommandLine Error: Argument 'debug-buffer-size' defined more than once! │········
opt: CommandLine Error: Argument 'print-all-options' defined more than once! │········
opt: CommandLine Error: Argument 'print-options' defined more than once! │········
opt: CommandLine Error: Argument 'print-after-all' defined more than once! │········
opt: CommandLine Error: Argument 'print-before-all' defined more than once! │········
opt: CommandLine Error: Argument 'track-memory' defined more than once! │········
opt: CommandLine Error: Argument 'debug-buffer-size' defined more than once! │········
opt: CommandLine Error: Argument 'print-all-options' defined more than once! │········
opt: CommandLine Error: Argument 'print-options' defined more than once! │········
opt: CommandLine Error: Argument 'print-after-all' defined more than once! │········
opt: CommandLine Error: Argument 'print-before-all' defined more than once! │········
-insert-edge-profiling - Insert instrumentation for edge profiling │········
-insert-gcov-profiling - Insert instrumentation for GCOV profiling │········
-insert-optimal-edge-profiling - Insert optimal instrumentation for edge profiling │········
-insert-path-profiling - Insert instrumentation for Ball-Larus path profiling