~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tools/find_bigis.py

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''
 
2
Simple tool to find big i types in an .ll file. Anything over i64 is of interest.
 
3
'''
 
4
 
 
5
import os, sys, re
 
6
 
 
7
filename = sys.argv[1]
 
8
data = open(filename).read()
 
9
iss = re.findall('[^%]i\d+ [^=]', data)
 
10
set_iss = set(iss)
 
11
bigs = []
 
12
for iss in set_iss:
 
13
  size = int(iss[2:-2])
 
14
  if size > 64:
 
15
    bigs.append(size)
 
16
bigs.sort()
 
17
print bigs
 
18