Generates conditional branch instead of fake ones for Select instruction in some...
[oota-llvm.git] / make-tags.sh
1 #!/bin/bash -e
2
3 SrcDirs=(
4     lib/Analysis/
5     lib/AsmParser/
6     lib/Bitcode/
7     lib/CodeGen/
8     lib/DebugInfo
9     lib/ExecutionEngine
10     lib/Fuzzer
11     lib/IR
12     lib/IRReader
13     lib/LibDriver
14     lib/LineEditor
15     lib/Linker
16     lib/LTO
17     lib/MC
18     lib/Object
19     lib/Option
20     lib/Passes
21     lib/Support
22     lib/TableGen
23     lib/Target/*.cpp
24     lib/Transforms
25     include/llvm
26     lib/Target/AArch64
27     #lib/Target/X86
28 )
29
30 AllGenDirs=(
31     build/lib/Target/AArch64
32     #build/lib/Target/X86
33 )
34
35 SrcFiles=src_directory.txt
36 echo "" > $SrcFiles
37 for dir in ${SrcDirs[@]}; do
38   find $dir -type f -print >> $SrcFiles
39 done
40 # llvm-tblgen generated code
41 for GenDirs in ${AllGenDirs[@]}; do
42   for dir in $GenDirs; do
43     for incFile in $(ls ${GenDirs}/*.inc); do
44       echo $incFile >> $SrcFiles
45     done
46   done
47 done
48
49 # Make Gtags
50 gtags -f $SrcFiles
51
52 # Make Ctags
53 ctags -R ${SrcDirs[@]}