diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-26 17:27:05 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-26 17:27:05 -0800 |
commit | 29366ab7276ccc4c49499067bfc7be932f1fe17f (patch) | |
tree | 6f2a9811baada8f05039eabe61aed05a5645e630 /tools/find_bigis.py | |
parent | 06710659a66483b5250486760adbe33515938e5e (diff) |
find_bigis tool
Diffstat (limited to 'tools/find_bigis.py')
-rw-r--r-- | tools/find_bigis.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/find_bigis.py b/tools/find_bigis.py new file mode 100644 index 00000000..d11c1a81 --- /dev/null +++ b/tools/find_bigis.py @@ -0,0 +1,18 @@ +''' +Simple tool to find big i types in an .ll file. Anything over i64 is of interest. +''' + +import os, sys, re + +filename = sys.argv[1] +data = open(filename).read() +iss = re.findall('[^%]i\d+ [^=]', data) +set_iss = set(iss) +bigs = [] +for iss in set_iss: + size = int(iss[2:-2]) + if size > 64: + bigs.append(size) +bigs.sort() +print bigs + |