Erik Pilkington
de98cf92e3
[CodeGen] Add an alignment attribute to all sret parameters
...
This fixes a miscompile when the parameter is actually underaligned.
rdar://58316406
Differential revision: https://reviews.llvm.org/D74183
2020-03-24 15:31:57 -04:00
Tim Northover
c46827c7ed
LLVM IR: Generate new-style byval-with-Type from Clang
...
LLVM IR recently added a Type parameter to the byval Attribute, so that
when pointers become opaque and no longer have an element type the
information will still be present in IR.
For now the Type parameter is optional (which is why Clang didn't need
this change at the time), but it will become mandatory soon.
llvm-svn: 362652
2019-06-05 21:12:14 +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
48939ced20
Update testcases due to Attribute sorting improvements.
...
llvm-svn: 175253
2013-02-15 05:25:49 +00:00
Bill Wendling
85ab57ac5d
Update the tests.
...
This update coincides with r174110. That change ordered the attributes
alphabetically.
llvm-svn: 174111
2013-01-31 23:17:12 +00:00
Eric Christopher
bf005ecd9c
'pure' and 'const' functions should also be marked nounwind. Migrate
...
test over from llvm/test/FrontendC++ and update others to account for
the change.
llvm-svn: 137669
2011-08-15 22:38:22 +00:00
Chris Lattner
e76b95ae15
make the x86-32 backend specify a byval alignment, even when the
...
code generator will do it. With this patch, clang compiles the example
in PR9794 to not have an alloca temporary.
llvm-svn: 131881
2011-05-22 23:35:00 +00:00
Michael J. Spencer
8d3f5db7e5
test: FileCheck'ize and document test.
...
llvm-svn: 116799
2010-10-19 06:39:49 +00:00
Chris Lattner
369721a16e
stop looking for #uses comments.
...
llvm-svn: 112898
2010-09-02 22:48:26 +00:00
Duncan Sands
7f1982731e
Correct this test for the fact that the number of uses is now printed
...
in a comment.
llvm-svn: 112813
2010-09-02 08:52:56 +00:00
Chris Lattner
9cffdf1331
don't slap noalias attribute on stret result arguments.
...
This mirror's Dan's patch for llvm-gcc in r97989, and
fixes the miscompilation in PR6525. There is some contention
over whether this is the right thing to do, but it is the
conservative answer and demonstrably fixes a miscompilation.
llvm-svn: 101877
2010-04-20 05:44:43 +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
34546ce43d
Remove RUN: true lines.
...
llvm-svn: 86432
2009-11-08 01:47:25 +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
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
Daniel Dunbar
c230443178
PR3835: Interaction with ABI structure passing can inhibit
...
readnone/readonly attributes.
llvm-svn: 67224
2009-03-18 19:51:01 +00:00