[llvm] r230794 - [opaque pointer type] Add textual IR support for explicit type parameter to load instruction

Duncan P. N. Exon Smith dexonsmith at apple.com
Mon Mar 2 14:26:01 PST 2015


> On 2015-Feb-27, at 13:18, David Blaikie <dblaikie at gmail.com> wrote:
> 
> Author: dblaikie
> Date: Fri Feb 27 15:17:42 2015
> New Revision: 230794
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=230794&view=rev
> Log:
> [opaque pointer type] Add textual IR support for explicit type parameter to load instruction
> 
> Essentially the same as the GEP change in r230786.
> 
> A similar migration script can be used to update test cases, though a few more
> test case improvements/changes were required this time around: (r229269-r229278)
> 
> import fileinput
> import sys
> import re
> 
> pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)")
> 
> for line in sys.stdin:
>  sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line))
> 
> Reviewers: rafael, dexonsmith, grosser
> 
> Differential Revision: http://reviews.llvm.org/D7649
> 
> Added:
>    llvm/trunk/test/Assembler/invalid-load-mismatched-explicit-type.ll
>    llvm/trunk/test/Assembler/invalid-load-missing-explicit-type.ll
> Modified:

I just noticed this didn't update docs/LangRef.rst [1].  Can you
update it for this and the GEP change?

[1]: http://llvm.org/docs/LangRef.html


>    llvm/trunk/lib/AsmParser/LLParser.cpp
>    llvm/trunk/lib/IR/AsmWriter.cpp
>    llvm/trunk/test/Analysis/BasicAA/2003-02-26-AccessSizeTest.ll
>    llvm/trunk/test/Analysis/BasicAA/2003-04-22-GEPProblem.ll
>    llvm/trunk/test/Analysis/BasicAA/2003-05-21-GEP-Problem.ll





More information about the llvm-commits mailing list