Paul Robinson
65ab102be3
Fix Clang tests that used CHECK-NEXT-NOT and CHECK-DAG-NOT.
...
FileCheck actually doesn't support combo suffixes.
Differential Revision: http://reviews.llvm.org/D17589
llvm-svn: 262052
2016-02-26 19:34:01 +00:00
David Blaikie
fc473554a6
[opaque pointer type] update test cases for explicit pointee types on global aliases
...
llvm-svn: 247380
2015-09-11 03:22:18 +00:00
John Brawn
2106b7525c
The alias.c test now requires arm-registered-target
...
This should fix a buildbot failure
llvm-svn: 244760
2015-08-12 15:55:55 +00:00
John Brawn
495008edde
Add test for PR24379
...
The fix for this is in LLVM but it depends on how clang handles the alias
attribute, so add a test to the clang tests to make sure everything works
together as expected.
Differential Revision: http://reviews.llvm.org/D11980
llvm-svn: 244756
2015-08-12 15:15:27 +00:00
David Majnemer
bb525f7c20
CodeGen: Don't drop thread_local when emitting __thread aliases
...
CodeGen wouldn't mark the aliasee as thread_local if the aliasee was a
tentative definition.
Even if the definition was already emitted, it would never mark the
alias as thread_local.
This fixes PR21288.
llvm-svn: 219859
2014-10-15 22:38:23 +00:00
Rafael Espindola
42affc2db6
Update for llvm change.
...
llvm-svn: 214356
2014-07-30 22:52:16 +00:00
Rafael Espindola
27c60b512a
Update for llvm API change.
...
Aliases in llvm now hold an arbitrary expression.
llvm-svn: 210063
2014-06-03 02:42:01 +00:00
Rafael Espindola
b2633b9793
Update for llvm api change.
...
Now that llvm cannot represent alias cycles, we have to diagnose erros just
before trying to close the cycle. This degrades the errors a bit. The real
solution is what it was before: if we want to provide good errors for these
cases, we have to be able to find a clang level decl given a mangled name
and produce the error from Sema.
llvm-svn: 209008
2014-05-16 19:35:48 +00:00
Rafael Espindola
502f65ae54
Fix pr19653.
...
Warn if an alias requests a section other than the aliasee section.
llvm-svn: 207997
2014-05-05 20:21:03 +00:00
Rafael Espindola
a39fc6dd2a
Handle and warn on aliases to weak aliases.
...
This produces valid IR now that llvm rejects aliases to weak aliases and warns
the user that the resolution is not changed if the weak alias is overridden.
llvm-svn: 204935
2014-03-27 15:27:20 +00:00
Rafael Espindola
3efc492092
Also don't hardcode the order on this test.
...
llvm-svn: 192603
2013-10-14 16:18:39 +00:00
Stephen Lin
4362261b00
CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail.
...
llvm-svn: 188447
2013-08-15 06:47:53 +00:00
Bill Wendling
d02fd83182
Fix testcases to not rely upon target-* attributes.
...
llvm-svn: 176135
2013-02-26 23:08:48 +00:00
Anna Zaks
0f424b029b
Revert "Add more attributes from the command line to functions."
...
This reverts commit 176009.
The commit is a likely cause of several buildbot failures.
llvm-svn: 176044
2013-02-25 19:51:03 +00:00
Bill Wendling
87869db5f5
Add more attributes from the command line to functions.
...
This is an ongoing process. Any command line option which a back-end cares about
should be added here.
llvm-svn: 176009
2013-02-25 07:15:16 +00:00
Bill Wendling
c33fc4c004
Modify the tests to use attribute group references instead of listing the
...
function attributes.
llvm-svn: 175606
2013-02-20 07:22:19 +00:00
Bill Wendling
985d1c5d15
Add the 'target-cpu' and 'target-features' attributes to functions.
...
The back-end will use these values to reconfigure code generation for different
features.
llvm-svn: 175308
2013-02-15 21:30:01 +00:00
Alex Rosenberg
6a41c3c005
Fix another spot where this test varied for a Release build.
...
llvm-svn: 165347
2012-10-05 23:56:20 +00:00
Alex Rosenberg
17710a3b9a
Make test resilient to Release build temp names.
...
llvm-svn: 165345
2012-10-05 23:33:39 +00:00
Alex Rosenberg
ba036126cf
Propagate calling convention for aliases and weakrefs.
...
llvm-svn: 165343
2012-10-05 23:12:53 +00:00
Alex Rosenberg
eba9c5c259
FileCheckize test
...
llvm-svn: 165342
2012-10-05 23:12:48 +00:00
Daniel Dunbar
8fbe78f6fc
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
...
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
llvm-svn: 91446
2009-12-15 20:14:24 +00:00
Daniel Dunbar
8b57697954
Eliminate &&s in tests.
...
- 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious.
llvm-svn: 86430
2009-11-08 01:45:36 +00:00
Eli Friedman
574c745370
Diagnose uses of function specifiers on declarations which don't declare
...
functions. Fixes PR3941.
llvm-svn: 68541
2009-04-07 19:37:57 +00:00
Daniel Dunbar
a45cf5b6b0
Rename clang to clang-cc.
...
Tests and drivers updated, still need to shuffle dirs.
llvm-svn: 67602
2009-03-24 02:24:46 +00:00
Chris Lattner
827a3552a4
make alias definition logic more similar to functions/globals.
...
llvm-svn: 67481
2009-03-22 21:39:12 +00:00
Chris Lattner
a5ae54acc4
fix PR3200 by making alias emission use the new infrastructure. Fold
...
some tests into the alias.c file.
llvm-svn: 67479
2009-03-22 21:21:57 +00:00
Daniel Dunbar
4e004ed124
IRgen support for alias of global variable.
...
- PR3818.
llvm-svn: 67297
2009-03-19 08:27:24 +00:00