mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
5a70dd1d82
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 |
||
---|---|---|
.. | ||
AArch64 | ||
ARM | ||
absolute.s | ||
absolutize.s | ||
bad-darwin-x86_64-32-bit-abs-addr.s | ||
bad-darwin-x86_64-diff-relocs.s | ||
bad-darwin-x86_64-reloc-expr1.s | ||
bad-darwin-x86_64-reloc-expr2.s | ||
bad-darwin-x86_64-reloc-expr.s | ||
bad-dollar.s | ||
bad-indirect-symbols.s | ||
bad-macro.s | ||
bss.s | ||
comm-1.s | ||
cstexpr-gotpcrel-32.ll | ||
cstexpr-gotpcrel-64.ll | ||
darwin-complex-difference.s | ||
darwin-x86_64-diff-reloc-assign-2.s | ||
darwin-x86_64-diff-reloc-assign.s | ||
darwin-x86_64-diff-relocs.s | ||
darwin-x86_64-nobase-relocs.s | ||
darwin-x86_64-reloc-offsets.s | ||
darwin-x86_64-reloc.s | ||
data.s | ||
debug_frame.s | ||
diff-with-two-sections.s | ||
direction_labels.s | ||
eh_symbol.s | ||
eh-frame-reloc.s | ||
file.s | ||
gen-dwarf-cpp.s | ||
gen-dwarf-macro-cpp.s | ||
gen-dwarf-producer.s | ||
gen-dwarf.s | ||
i386-large-relocations.s | ||
indirect-symbols.s | ||
jcc.s | ||
lcomm-attributes.s | ||
linker-option-1.s | ||
linker-option-2.s | ||
linker-options.ll | ||
lit.local.cfg | ||
loc.s | ||
osx-version-min-load-command.s | ||
pcrel-to-other-section.s | ||
pr19185.s | ||
previous.s | ||
pushsection.s | ||
relax-jumps.s | ||
relax-recompute-align.s | ||
reloc-diff.s | ||
reloc-pcrel-offset.s | ||
reloc-pcrel.s | ||
reloc.s | ||
section-align-1.s | ||
section-align-2.s | ||
section-attributes.s | ||
section-flags.s | ||
string-table.s | ||
symbol-diff.s | ||
symbol-flags.s | ||
symbol-indirect.s | ||
symbols-1.s | ||
tbss.s | ||
tdata.s | ||
temp-labels.s | ||
thread_init_func.s | ||
tls.s | ||
tlv-bss.ll | ||
tlv-reloc.s | ||
tlv.s | ||
values.s | ||
variable-errors.s | ||
variable-exprs.s | ||
weakdef.s | ||
x86_32-optimal_nop.s | ||
x86_32-scattered-reloc-fallback.s | ||
x86_32-sections.s | ||
x86_32-symbols.s | ||
x86_64-mergeable.s | ||
x86_64-reloc-arithmetic.s | ||
x86_64-sections.s | ||
x86_64-symbols.s | ||
x86-data-in-code.ll | ||
zerofill-1.s | ||
zerofill-2.s | ||
zerofill-3.s | ||
zerofill-4.s | ||
zerofill-5.s | ||
zerofill-sect-align.s |