Use custom AssemblyAnnotationWriter to improve vasm/llvm printing
commit7f78feb1aa279dce294f67f1270d6b21bbcca7a6
authorBrett Simmers <bsimmers@fb.com>
Mon, 8 Dec 2014 21:35:11 +0000 (8 13:35 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Wed, 10 Dec 2014 00:30:36 +0000 (9 16:30 -0800)
tree5ed712e649e3321821ebef99be15a288aeb697c8
parentaf105195ea61c3c2c34539112da98a06863b855c
Use custom AssemblyAnnotationWriter to improve vasm/llvm printing

Summary: Rather than attaching a vasm string to every single llvm instruction,
use DebugLoc to attach an id to each instruction. This id is an index into a
vector of strings, which we use to print each vasm instruction once, before
each group of llvm instructions it produced (just like what we do for
hhbc/hhir/vasm printouts).

Reviewed By: @jasone

Differential Revision: D1726105

Signature: t1:1726105:1418085918:759ed72e211e99f66bba2cb05fc71163207b50c2
hphp/runtime/vm/jit/vasm-llvm.cpp