llvm-6502/test/Object/Inputs
David Blaikie 5a70dd1d82 [opaque pointer type] Add textual IR support for explicit type parameter to gep operator
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:])

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232184 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-13 18:20:45 +00:00
..
COFF
ELF
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_short.lib
coff_archive.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
GNU.a
hello-world.elf-x86-64
hello-world.macho-x86_64
IsNAN.o
liblong_filenames.a
libsimple_archive.a
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
macho-archive-unsorted-x86_64.a
macho-archive-x86_64.a
macho-data-in-code.macho-thumbv7
macho-empty-kext-bundle-x86-64 Object: Test for reading kext bundles 2015-02-27 18:58:23 +00:00
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
MacOSX.a
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 [obj2yaml/yaml2obj] Add SHT_GROUP support. 2015-02-21 04:28:26 +00:00
shared-object-test.elf-i386
shared-object-test.elf-x86-64
shared.ll
SVR4.a
thin.a
thumb-symbols.elf.arm
trivial-executable-test.macho-x86-64
trivial-label-test.elf-x86-64
trivial-object-test2.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.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
unwind-section.elf-x86-64
very_long_bytecode_file_name.bc
weak-global-symbol.macho-i386
weak.elf-x86-64
xpg4.a