mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
3ea2df7c7b
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 |
||
---|---|---|
.. | ||
Inputs | ||
remote | ||
2002-12-16-ArgTest.ll | ||
2003-01-04-ArgumentBug.ll | ||
2003-01-04-LoopTest.ll | ||
2003-01-04-PhiTest.ll | ||
2003-01-09-SARTest.ll | ||
2003-01-10-FUCOM.ll | ||
2003-01-15-AlignmentTest.ll | ||
2003-05-06-LivenessClobber.ll | ||
2003-05-07-ArgumentTest.ll | ||
2003-05-11-PHIRegAllocBug.ll | ||
2003-06-04-bzip2-bug.ll | ||
2003-06-05-PHIBug.ll | ||
2003-08-15-AllocaAssertion.ll | ||
2003-08-21-EnvironmentTest.ll | ||
2003-08-23-RegisterAllocatePhysReg.ll | ||
2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll | ||
2005-12-02-TailCallBug.ll | ||
2007-12-10-APIntLoadStore.ll | ||
2008-06-05-APInt-OverAShr.ll | ||
2013-04-04-RelocAddend.ll | ||
cross-module-a.ll | ||
cross-module-sm-pic-a.ll | ||
eh-lg-pic.ll | ||
eh-sm-pic.ll | ||
eh.ll | ||
fpbitcast.ll | ||
hello2.ll | ||
hello-sm-pic.ll | ||
hello.ll | ||
lit.local.cfg | ||
load-object-a.ll | ||
multi-module-a.ll | ||
multi-module-eh-a.ll | ||
multi-module-sm-pic-a.ll | ||
non-extern-addend.ll | ||
pr13727.ll | ||
simplesttest.ll | ||
simpletest.ll | ||
stubs-sm-pic.ll | ||
stubs.ll | ||
test-arith.ll | ||
test-branch.ll | ||
test-call-no-external-funcs.ll | ||
test-call.ll | ||
test-cast.ll | ||
test-common-symbols-alignment.ll | ||
test-common-symbols.ll | ||
test-constantexpr.ll | ||
test-data-align.ll | ||
test-fp-no-external-funcs.ll | ||
test-fp.ll | ||
test-global-ctors.ll | ||
test-global-init-nonzero-sm-pic.ll | ||
test-global-init-nonzero.ll | ||
test-global.ll | ||
test-loadstore.ll | ||
test-local.ll | ||
test-logical.ll | ||
test-loop.ll | ||
test-phi.ll | ||
test-ptr-reloc-sm-pic.ll | ||
test-ptr-reloc.ll | ||
test-ret.ll | ||
test-return.ll | ||
test-setcond-fp.ll | ||
test-setcond-int.ll | ||
test-shift.ll |