Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1034)

Unified Diff: szdiff.py

Issue 358013003: Subzero: Partial implementation of global initializers. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: After rebasing from laster master Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/llvm2ice.cpp ('k') | tests_lit/llvm2ice_tests/convert.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: szdiff.py
diff --git a/szdiff.py b/szdiff.py
index 046982ea2b87b540b3213e3f03ff8d6bbaecb2a0..b25681f33cb2ad9ee25619dd9e81d868652fff8f 100755
--- a/szdiff.py
+++ b/szdiff.py
@@ -42,7 +42,12 @@ if __name__ == '__main__':
llc_out = []
tail_call = re.compile(' tail call ');
trailing_comment = re.compile(';.*')
- ignore_pattern = re.compile('^ *$|^declare|^@')
+ ignore_pattern = re.compile('|'.join([
+ '^ *$', # all-whitespace lines
+ '^declare', # declarations without definitions
+ '^@.*\]$' # PNaCl global declarations like:
+ # @v = external global [4 x i8]
+ ]))
prev_line = None
for line in bitcode:
if prev_line:
« no previous file with comments | « src/llvm2ice.cpp ('k') | tests_lit/llvm2ice_tests/convert.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698