forked from OSchip/llvm-project
f72d05bc7b
Similar to gep (r230786) and load (r230794) changes. Similar migration script can be used to update test cases, which successfully migrated all of LLVM and Polly, but about 4 test cases needed manually changes in Clang. (this script will read the contents of stdin and massage it into stdout - wrap it in the 'apply.sh' script shown in previous commits + xargs to apply it over a large set of test cases) import fileinput import sys import re rep = re.compile(r"(getelementptr(?:\s+inbounds)?\s*\()((<\d*\s+x\s+)?([^@]*?)(|\s*addrspace\(\d+\))\s*\*(?(3)>)\s*)(?=$|%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|zeroinitializer|<|\[\[[a-zA-Z]|\{\{)", re.MULTILINE | re.DOTALL) def conv(match): line = match.group(1) line += match.group(4) line += ", " line += match.group(2) return line line = sys.stdin.read() off = 0 for match in re.finditer(rep, line): sys.stdout.write(line[off:match.start()]) sys.stdout.write(conv(match)) off = match.end() sys.stdout.write(line[off:]) llvm-svn: 232184 |
||
---|---|---|
.. | ||
COFF | ||
ELF | ||
GNU.a | ||
IsNAN.o | ||
MacOSX.a | ||
SVR4.a | ||
absolute.elf-x86-64 | ||
archive-test.a-coff-i386 | ||
archive-test.a-corrupt-symbol-table | ||
archive-test.a-empty | ||
archive-test.a-gnu-minimal | ||
archive-test.a-gnu-no-symtab | ||
archive-test.a-irix6-mips64el | ||
coff_archive.lib | ||
coff_archive_short.lib | ||
common.coff-i386 | ||
corrupt-archive.a | ||
corrupt-version.elf-x86_64 | ||
corrupt.elf-x86-64 | ||
darwin-m-test1.mach0-armv7 | ||
darwin-m-test2.macho-i386 | ||
darwin-m-test3.macho-x86-64 | ||
dext-test.elf-mips64r2 | ||
elf-reloc-no-sym.x86_64 | ||
elf-versioning-test.i386 | ||
elf-versioning-test.x86_64 | ||
elfver.S | ||
elfver.script | ||
evenlen | ||
hello-world.elf-x86-64 | ||
hello-world.macho-x86_64 | ||
liblong_filenames.a | ||
libsimple_archive.a | ||
macho-archive-unsorted-x86_64.a | ||
macho-archive-x86_64.a | ||
macho-data-in-code.macho-thumbv7 | ||
macho-empty-kext-bundle-x86-64 | ||
macho-hello-g.macho-x86_64 | ||
macho-invalid-bad-symbol-index | ||
macho-invalid-getsection-index | ||
macho-invalid-no-size-for-sections | ||
macho-invalid-section-index-getSectionRawFinalSegmentName | ||
macho-invalid-section-index-getSectionRawName | ||
macho-invalid-symbol-name-past-eof | ||
macho-invalid-too-small-load-command | ||
macho-invalid-too-small-segment-load-command | ||
macho-invalid-zero-ncmds | ||
macho-no-exports.dylib | ||
macho-rpath-x86_64 | ||
macho-text-data-bss.macho-x86_64 | ||
macho-text-sections.macho-x86_64 | ||
macho-text.thumb | ||
macho-universal-archive.x86_64.i386 | ||
macho-universal.x86_64.i386 | ||
macho64-invalid-getsection-index | ||
macho64-invalid-incomplete-load-command | ||
macho64-invalid-no-size-for-sections | ||
macho64-invalid-too-small-load-command | ||
macho64-invalid-too-small-segment-load-command | ||
micro-mips.elf-mipsel | ||
mri-crlf.mri | ||
no-sections.elf-x86-64 | ||
oddlen | ||
program-headers.elf-i386 | ||
program-headers.elf-x86-64 | ||
program-headers.mips | ||
program-headers.mips64 | ||
relocatable-with-section-address.elf-x86-64 | ||
relocation-dynamic.elf-i386 | ||
relocation-relocatable.elf-i386 | ||
relocations.elf-x86-64 | ||
sectionGroup.elf.x86-64 | ||
shared-object-test.elf-i386 | ||
shared-object-test.elf-x86-64 | ||
shared.ll | ||
thin.a | ||
thumb-symbols.elf.arm | ||
trivial-executable-test.macho-x86-64 | ||
trivial-label-test.elf-x86-64 | ||
trivial-object-test.coff-i386 | ||
trivial-object-test.coff-x86-64 | ||
trivial-object-test.elf-hexagon | ||
trivial-object-test.elf-i386 | ||
trivial-object-test.elf-mips64el | ||
trivial-object-test.elf-mipsel | ||
trivial-object-test.elf-x86-64 | ||
trivial-object-test.macho-i386 | ||
trivial-object-test.macho-x86-64 | ||
trivial-object-test2.elf-x86-64 | ||
trivial.ll | ||
unwind-section.elf-x86-64 | ||
very_long_bytecode_file_name.bc | ||
weak-global-symbol.macho-i386 | ||
weak.elf-x86-64 | ||
xpg4.a |