pytorch/tools/code_analyzer
Jiakai Liu 9d0891f886 [pytorch][buck] tweak code analyzer e2e script
Summary:
- Add debug mode to include debug information.
- Move codegen comment to FB shell script (as it's only checked-in FB repo).
- Analyze lite-predictor instead of full-JIT as full-JIT BUCK target contains variable kernels thus pull in a lot more dependencies.
- Use pre-opt bitcode instead of pre-codegen bitcode - there is one special `callOp()` case in RNN.cpp where optimized bitcode has opname string and API body inlined together: https://fburl.com/diffusion/8rz6u4rg; pre-optimization bitcode should give more stable result.

Test Plan: - Tested the bash script with stacked diff.

Reviewed By: iseeyuan

Differential Revision: D21298837

fbshipit-source-id: be33e2db5d8cb0f804460c503e52beb0dcb4857f
2020-04-29 22:38:09 -07:00
..
analyzer.cpp [pytorch] convert code analyzer to a binary (#33102) 2020-02-10 14:46:29 -08:00
build.sh [pytorch] add '__BASE__' section to op deps to factor out frequently used util ops (#37404) 2020-04-28 17:18:09 -07:00
CMakeLists.txt [pytorch] remove unused flags from code analyzer & move format support to python (#37393) 2020-04-28 17:16:55 -07:00
gen_op_registration_whitelist.py [pytorch] add '__BASE__' section to op deps to factor out frequently used util ops (#37404) 2020-04-28 17:18:09 -07:00
op_deps_pass.cpp [pytorch] remove unused flags from code analyzer & move format support to python (#37393) 2020-04-28 17:16:55 -07:00
op_deps_processor.py [pytorch][buck] tweak code analyzer e2e script 2020-04-29 22:38:09 -07:00
run_analyzer.sh [pytorch] remove unused flags from code analyzer & move format support to python (#37393) 2020-04-28 17:16:55 -07:00