TableGen backend to generate an index in ctags(1) format.
Example use:
$ cd $SRCDIR/lib/Target/$TARGET $ llvm-tblgen -I=../../../include --gen-ctags $TGT.td >tags
To use this in conjunction with exuberant ctags to generate a single
combined tags file, run tblgen first and then
$ ctags --append [...]Since some identifiers have corresponding definitions in C++ code,
it can be useful (if using vim) to also use cscope, and
:set cscopetagorder=1
so that
:tag X
will preferentially select the tablegen symbol, while
:cscope find g X
will always find the C++ symbol.
Cross-reference the helper script here.