summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/constexpr.ll
Commit message (Collapse)AuthorAgeFilesLines
* Make "@name =" mandatory for globals in .ll files.Rafael Espindola2016-05-101-5/+5
| | | | | | | | | | | | | | | | | | | | | | | An oddity of the .ll syntax is that the "@var = " in @var = global i32 42 is optional. Writing just global i32 42 is equivalent to @0 = global i32 42 This means that there is a pretty big First set at the top level. The current implementation maintains it manually. I was trying to refactor it, but then started wondering why keep it a all. I personally find the above syntax confusing. It looks like something is missing. This patch removes the feature and simplifies the parser. llvm-svn: 269096
* [opaque pointer type] Add textual IR support for explicit type parameter to ↵David Blaikie2015-03-131-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove llvm-upgrade and update tests.Tanya Lattner2008-03-011-39/+36
| | | | llvm-svn: 47784
* For PR1077:Reid Spencer2007-01-051-12/+0
| | | | | | | Global variable definitions with the same name and same type are no longer valid so don't attempt to test for this "feature". llvm-svn: 32909
* Use the llvm-upgrade program to upgrade llvm assembly.Reid Spencer2006-12-021-1/+1
| | | | llvm-svn: 32115
* Fix some typos.Reid Spencer2006-11-231-3/+2
| | | | llvm-svn: 31897
* Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 andReid Spencer2006-11-231-5/+6
| | | | | | | older features will be dropped soon and these test cases must not rely on the upgrade capability. llvm-svn: 31896
* Added RUN lines and dejagnu support for Feature dir.Tanya Lattner2004-11-071-0/+4
| | | | llvm-svn: 17568
* Add a simple test for hex constant integersChris Lattner2003-04-171-0/+3
| | | | llvm-svn: 5803
* Fix testcaseChris Lattner2003-03-181-6/+6
| | | | llvm-svn: 5746
* - Cleaned up all of the test/Feature tests to not use uint's withChris Lattner2002-10-061-11/+11
| | | | | | getelementptr instructions and not to add pointers. llvm-svn: 4049
* Convert constexpr over to new syntaxChris Lattner2002-08-151-14/+14
| | | | llvm-svn: 3359
* Convert testcase to use correct syntaxChris Lattner2002-08-151-14/+16
| | | | llvm-svn: 3356
* Added duplicate constant expressions to test uniqueness support.Vikram S. Adve2002-07-151-0/+14
| | | | llvm-svn: 2908
* Test the handling of constant expressions.Vikram S. Adve2002-07-141-0/+72
llvm-svn: 2889
OpenPOWER on IntegriCloud