5dda592643 
								
							 
						 
						
							
							
								
								Sort the enums in Attributes.h in case insensitive alphabetical order.  
							
							... 
							
							
							
							Sort the enums in preparation for moving the attributes to a table-gen
file.
rdar://problem/19836465
llvm-svn: 252692 
							
						 
						
							2015-11-11 02:11:46 +00:00  
				
					
						
							
							
								 
						
							
								9fde8d6027 
								
							 
						 
						
							
							
								
								[Bitcode] Fix accidental syntax errors in compatibility tests  
							
							... 
							
							
							
							We used automated tools to update our IR to its current syntax in commit
21f77df7(r247378). While it correctly updated the CHECK lines in our
compatibility tests, the IR should have remained untouched.  This commit
fixes the syntax errors.
llvm-svn: 251458 
							
						 
						
							2015-10-27 22:10:17 +00:00  
				
					
						
							
							
								 
						
							
								ad6d6e7423 
								
							 
						 
						
							
							
								
								[IR] Limit bits used for CallingConv::ID, update tests  
							
							... 
							
							
							
							Use 10 bits to represent calling convention ID's instead of 13, and
update the bitcode compatibility tests accordingly. We now error-out in
the bitcode reader when we see bad calling conv ID's.
Thanks to rnk and dexonsmith for feedback!
Differential Revision: http://reviews.llvm.org/D13826 
llvm-svn: 251452 
							
						 
						
							2015-10-27 21:17:06 +00:00  
				
					
						
							
							
								 
						
							
								2f40830dde 
								
							 
						 
						
							
							
								
								[opaque pointer type] Add textual IR support for explicit type parameter for global aliases  
							
							... 
							
							
							
							update.py:
import fileinput
import sys
import re
alias_match_prefix = r"(.*(?:=|:|^)\s*(?:external |)(?:(?:private|internal|linkonce|linkonce_odr|weak|weak_odr|common|appending|extern_weak|available_externally) )?(?:default |hidden |protected )?(?:dllimport |dllexport )?(?:unnamed_addr |)(?:thread_local(?:\([a-z]*\))? )?alias"
plain = re.compile(alias_match_prefix + r" (.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|addrspacecast|\[\[[a-zA-Z]|\{\{).*$)")
cast  = re.compile(alias_match_prefix + r") ((?:bitcast|inttoptr|addrspacecast)\s*\(.* to (.*?)(| addrspace\(\d+\) *)\*\)\s*(?:;.*)?$)")
gep   = re.compile(alias_match_prefix + r") ((?:getelementptr)\s*(?:inbounds)?\s*\((?P<type>.*), (?P=type)(?:\s*addrspace\(\d+\)\s*)?\* .*\)\s*(?:;.*)?$)")
def conv(line):
  m = re.match(cast, line)
  if m:
    return m.group(1) + " " + m.group(3) + ", " + m.group(2)
  m = re.match(gep, line)
  if m:
    return m.group(1) + " " + m.group(3) + ", " + m.group(2)
  m = re.match(plain, line)
  if m:
    return m.group(1) + ", " + m.group(2) + m.group(3) + "*" + m.group(4) + "\n"
  return line
for line in sys.stdin:
  sys.stdout.write(conv(line))
apply.sh:
for name in "$@"
do
  python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
  rm -f "$name.tmp"
done
The actual commands:
From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh
llvm-svn: 247378 
							
						 
						
							2015-09-11 03:22:04 +00:00  
				
					
						
							
							
								 
						
							
								52cd4eecac 
								
							 
						 
						
							
							
								
								[Bitcode] Add compatibility test for llvm 3.7.0  
							
							... 
							
							
							
							This patch adds llvm-3.7 IR and generated bitcode for our compatibility
test (in accordance with the developer policy).
llvm-svn: 247031 
							
						 
						
							2015-09-08 17:39:21 +00:00