llvm-project/llvm/test/Object/Inputs
David Blaikie f72d05bc7b [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:])

llvm-svn: 232184
2015-03-13 18:20:45 +00:00
..
COFF Add tests for r219479. 2014-10-10 06:59:05 +00:00
ELF
GNU.a
IsNAN.o
MacOSX.a
SVR4.a
absolute.elf-x86-64 Add a test for printing absolute symbols in ELF. 2014-02-05 04:36:47 +00:00
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 [Object] Support reading 64-bit MIPS ELF archives 2015-02-17 18:54:22 +00:00
coff_archive.lib
coff_archive_short.lib
common.coff-i386 Add a test for common symbols in coff. 2014-02-04 23:18:52 +00:00
corrupt-archive.a Fix pr17056. 2014-06-16 16:41:00 +00:00
corrupt-version.elf-x86_64
corrupt.elf-x86-64
darwin-m-test1.mach0-armv7 Add "-format darwin" to llvm-nm to be like darwin's nm(1) -m output. 2014-06-05 21:21:57 +00:00
darwin-m-test2.macho-i386 Add "-format darwin" to llvm-nm to be like darwin's nm(1) -m output. 2014-06-05 21:21:57 +00:00
darwin-m-test3.macho-x86-64 Add "-format darwin" to llvm-nm to be like darwin's nm(1) -m output. 2014-06-05 21:21:57 +00:00
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 Add "-format darwin" to llvm-size to be like darwin's size(1) -m output, and 2014-06-17 17:54:13 +00:00
liblong_filenames.a
libsimple_archive.a
macho-archive-unsorted-x86_64.a Object, support both mach-o archive t.o.c file names 2014-11-12 01:37:45 +00:00
macho-archive-x86_64.a Add "-format darwin" to llvm-size to be like darwin's size(1) -m output, and 2014-06-17 17:54:13 +00:00
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 Add printing of Mach-O stabs in llvm-nm. 2014-07-17 22:47:16 +00:00
macho-invalid-bad-symbol-index Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-invalid-getsection-index Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-invalid-no-size-for-sections Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-invalid-section-index-getSectionRawFinalSegmentName Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-invalid-section-index-getSectionRawName Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-invalid-symbol-name-past-eof Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-invalid-too-small-load-command Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-invalid-too-small-segment-load-command Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-invalid-zero-ncmds Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho-no-exports.dylib [Object] Don't crash on empty export lists. 2014-12-19 02:31:01 +00:00
macho-rpath-x86_64 Add missing test file 2014-12-04 09:20:13 +00:00
macho-text-data-bss.macho-x86_64 Implement MachOObjectFile::isSectionData() and MachOObjectFile::isSectionBSS 2014-05-19 20:36:02 +00:00
macho-text-sections.macho-x86_64
macho-text.thumb
macho-universal-archive.x86_64.i386 Teach llvm-nm to know about fat archives (aka MachOUniversal files 2014-05-14 21:18:50 +00:00
macho-universal.x86_64.i386
macho64-invalid-getsection-index Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho64-invalid-incomplete-load-command Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho64-invalid-no-size-for-sections Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho64-invalid-too-small-load-command Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
macho64-invalid-too-small-segment-load-command Report fatal errors instead of segfaulting/asserting on a few invalid accesses while reading MachO files. 2015-01-15 22:52:38 +00:00
micro-mips.elf-mipsel [Object][Mips] Return address of MIPS symbol with cleared microMIPS indicator bit 2014-11-25 05:57:55 +00:00
mri-crlf.mri Add CRLF support to LineIterator. 2014-11-03 14:09:47 +00:00
no-sections.elf-x86-64 objdump: Add test for ELF file with no section table 2014-06-30 20:03:02 +00:00
oddlen
program-headers.elf-i386
program-headers.elf-x86-64
program-headers.mips [Mips] Teach llvm-readobj to print MIPS-specific ELF program headers. 2013-10-07 08:58:27 +00:00
program-headers.mips64 [ELF][Mips] Fix recognition of MIPS 64-bit arch in the ELFObjectFile:getArch() method. 2014-06-27 11:36:45 +00:00
relocatable-with-section-address.elf-x86-64 Revert "Fix a nomenclature error in llvm-nm." 2014-04-03 00:19:35 +00:00
relocation-dynamic.elf-i386 Implement getRelocationAddress for MachO and ET_REL elf files. 2014-04-03 23:54:35 +00:00
relocation-relocatable.elf-i386 Implement getRelocationAddress for MachO and ET_REL elf files. 2014-04-03 23:54:35 +00:00
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
thin.a Start adding thin archive support. 2014-12-16 01:43:41 +00:00
thumb-symbols.elf.arm Only clear the thumb bit from function addresses. 2014-04-03 02:20:43 +00:00
trivial-executable-test.macho-x86-64
trivial-label-test.elf-x86-64 Fix an off-by-one bug in the target independent llvm-objdump. 2014-08-17 16:31:39 +00:00
trivial-object-test.coff-i386
trivial-object-test.coff-x86-64 obj2yaml: Use the correct relocation type for different machine types 2014-04-07 23:12:20 +00:00
trivial-object-test.elf-hexagon
trivial-object-test.elf-i386
trivial-object-test.elf-mips64el
trivial-object-test.elf-mipsel [Mips] Support SHT_MIPS_ABIFLAGS section type flag in the llvm-readobj, 2014-07-13 15:28:54 +00:00
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 [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 [ELFYAML] Group ELF section type flags to target specific blocks. 2014-07-12 18:25:08 +00:00
very_long_bytecode_file_name.bc
weak-global-symbol.macho-i386 Fix llvm-nm to mach OS X's nm on some tests. 2013-11-02 05:03:24 +00:00
weak.elf-x86-64 Small fix for llvm-nm handling of weak symbols on ELF (print 'v'). 2014-02-04 23:53:15 +00:00
xpg4.a