Bill Wendling
82aa8d4926
Revert for now:
...
--- Reverse-merging r174010 into '.':
U include/llvm/IR/Attributes.h
U lib/IR/Verifier.cpp
U lib/IR/Attributes.cpp
llvm-svn: 174012
2013-01-31 01:04:51 +00:00
Michael Gottesman
41e4ac4224
Filecheckized 2x tests in SimplifyCFG and removed their date prefix to fit with current llvm style for test names.
...
llvm-svn: 174011
2013-01-31 01:04:23 +00:00
Bill Wendling
b8b16b567c
Remove the AttrBuilder version of the Attribute::get function.
...
The AttrBuilder is there to build up multiple attributes. The Attribute class
represents only one attribute at a time. So remove this unnecessary builder
creator method.
llvm-svn: 174010
2013-01-31 00:53:21 +00:00
Eric Christopher
258c867c0b
Whitespace.
...
llvm-svn: 174009
2013-01-31 00:50:48 +00:00
Eric Christopher
4e3e94c13d
Check and allow floating point registers to select the size of the
...
register for inline asm. This conforms to how gcc allows for effective
casting of inputs into gprs (fprs is already handled).
llvm-svn: 174008
2013-01-31 00:50:46 +00:00
Andrew Trick
7e6f928a7a
LangRef: Add a Rationale for volatile rules.
...
llvm-svn: 174007
2013-01-31 00:49:39 +00:00
Eli Bendersky
6c84b90b70
Replace some more greps with FileChecks in tests
...
llvm-svn: 174006
2013-01-31 00:44:12 +00:00
Dan Gohman
0838bf7f32
Minor code simplification.
...
llvm-svn: 174005
2013-01-31 00:32:11 +00:00
Bill Wendling
8594fcbd1a
Make sure that the Attribute object represents one attribute only.
...
Several places were still treating the Attribute object as respresenting
multiple attributes. Those places now use the AttributeSet to represent
multiple attributes.
llvm-svn: 174004
2013-01-31 00:30:05 +00:00
Bill Wendling
fe0021a2f9
Make sure that the Attribute object represents one attribute only.
...
Several places were still treating the Attribute object as respresenting
multiple attributes. Those places now use the AttributeSet to represent
multiple attributes.
llvm-svn: 174003
2013-01-31 00:29:54 +00:00
Daniel Dunbar
b399246c91
[lit] Add a MANIFEST file and a script for sanity checking the source dist.
...
llvm-svn: 174002
2013-01-31 00:21:59 +00:00
Daniel Dunbar
f74e41ab47
[lit] Add a basic discovery test.
...
llvm-svn: 174001
2013-01-31 00:21:51 +00:00
Daniel Dunbar
d00a5e5455
[lit] Add a script for checking test coverage.
...
llvm-svn: 174000
2013-01-31 00:21:44 +00:00
Daniel Dunbar
40722cc9ff
[lit] Add a test suite for lit itself.
...
llvm-svn: 173999
2013-01-31 00:21:39 +00:00
Dan Gohman
ed4029bae8
stripAndComputeConstantOffsets is only called on pointers; check this
...
with an assert instead of failing and requiring callers to check for failure.
llvm-svn: 173998
2013-01-31 00:12:20 +00:00
Eli Bendersky
a320e00e74
Rewrite this test properly with a FileCheck instead of greps
...
llvm-svn: 173997
2013-01-31 00:11:52 +00:00
Matt Beaumont-Gay
efc270d5c6
Fix unused variable warnings in -asserts build
...
llvm-svn: 173996
2013-01-31 00:08:03 +00:00
Dan Gohman
6a61fccb96
Fix ConstantFold's folding of icmp instructions to recognize that,
...
for example, a one-past-the-end pointer from one global variable may
be equal to the base pointer of another global variable.
llvm-svn: 173995
2013-01-31 00:01:45 +00:00
Michael Gottesman
606acb7c85
Added a unit test for r173983 that verifies that Target.isiOS() works correctly.
...
As a bonus I put in some extra checks to make sure that we are identifying the
machine word of various Mac OS X/iOS targets appropriately.
llvm-svn: 173994
2013-01-30 23:48:13 +00:00
Hal Finkel
e1df90958d
PPC QPX requires a 32-byte aligned stack
...
On systems which support the QPX vector instructions, the stack must be
32-byte aligned.
llvm-svn: 173993
2013-01-30 23:43:27 +00:00
Bill Wendling
785afdf3a4
Remove addRetAttributes and addFnAttributes, which aren't useful abstractions.
...
llvm-svn: 173992
2013-01-30 23:40:31 +00:00
Douglas Gregor
1a347f76c2
Reinstate r173952, this time limiting it to exactly the form
...
#define X X
for which there is no point warning, ever.
llvm-svn: 173991
2013-01-30 23:10:17 +00:00
Bill Wendling
d219675c2a
Convert typeIncompatible to return an AttributeSet.
...
There are still places which treat the Attribute object as a collection of
attributes. I'm systematically removing them.
llvm-svn: 173990
2013-01-30 23:07:40 +00:00
Greg Clayton
85e62eca66
expressions + C++11 lambdas == cooooool!!!
...
C++11 lambdas that don't capture anything can be used as static callback functions!
Heavily modified this python module to be able to not require a dylib in order to traverse the heap allocations.
Re-implemented the ptr_refs, objc_refs, malloc_info and cstr_refs to use complex expressions that use lambdas to do all static callback function work.
llvm-svn: 173989
2013-01-30 22:57:34 +00:00
Evan Cheng
9449ec956f
Forgot the test case before.
...
llvm-svn: 173988
2013-01-30 22:57:00 +00:00
Evan Cheng
d2ca4e2ed9
Restrict sin/cos optimization to 64-bit only for now. 32-bit is a bit messy and less critical.
...
llvm-svn: 173987
2013-01-30 22:56:35 +00:00
Michael Gottesman
3980b8c4cc
Doxygenified some comments in IRBuilder.h.
...
llvm-svn: 173986
2013-01-30 22:56:31 +00:00
Michael Gottesman
9656405684
Removed CreateFPExtOrFPTrunc for now until I have the time to get in my vector convert patch.
...
What I thought was going to be a quick thing has extended out a little bit in
time *sigh*. So after some thought in order to not cruft up the tree I am
removing this for now since it is the right thing to do.
llvm-svn: 173985
2013-01-30 22:53:21 +00:00
Hal Finkel
b3fc509b23
Initialize hasQPX in PPCSubtarget
...
This should have gone in with r173973.
llvm-svn: 173984
2013-01-30 22:43:44 +00:00
Michael Gottesman
58d19a661d
Encapsulate testing that we have an iOS Triple in Triple.h in the method isiOS
...
so we follow the convention that all other platforms follow by having an is*
test method.
llvm-svn: 173983
2013-01-30 22:38:19 +00:00
Jason Molenda
a46db7728e
Verified that the plugin.dynamic-loader.darwin-kernel.scan-type
...
setting is working correctly now; remove the #if 0's around its
use.
llvm-svn: 173982
2013-01-30 22:19:51 +00:00
Jordan Rose
c40b0fab06
Diagnostics: Clarify name of line-length-limiting constant in r173976.
...
Thanks, Sean.
llvm-svn: 173981
2013-01-30 22:14:15 +00:00
Filipe Cabecinhas
ed4a00c3ce
Changed to static_cast, due to post-commit review.
...
llvm-svn: 173980
2013-01-30 22:03:24 +00:00
Dmitri Gribenko
6b11fca83a
TableGen backends: use emitSourceFileHeader() to emit the warning about
...
file contents being autogenerated
llvm-svn: 173979
2013-01-30 21:54:20 +00:00
Filipe Cabecinhas
ff65cbac7f
Cast to remove the narrowing conversion error in c++11.
...
llvm-svn: 173978
2013-01-30 21:50:21 +00:00
Daniel Dunbar
a495930c1d
[build/clang_darwin] Fix the case reversal in r173465.
...
- I got confused by the double negative, the test succends on 10.6, in which
case we *do* want to perform the filter-out.
llvm-svn: 173977
2013-01-30 21:45:35 +00:00
Jordan Rose
2da0d1cfd3
Diagnostics: if a line is longer than 4096 characters, don't print it.
...
Specifically, don't print snippets, caret diagnostics, or ranges for
lines over 4096 characters. We copy the line around a few times in our
diagnostics machinery, and we have to print a caret line that's just as
long. This uses a lot of memory just to create a poor user experience as
we print out a line much too long for anyone to read...or spend extra
energy trying to fit it to -fmessage-length.
<rdar://problem/13106850>
llvm-svn: 173976
2013-01-30 21:41:07 +00:00
Bill Wendling
6f18ae1ec8
Remove redundant code.
...
It was creating a new AttrBuilder when we could just fill in the AttrBuilder
we're building.
llvm-svn: 173975
2013-01-30 21:22:59 +00:00
Andrew Trick
89fc5a6627
...in light of recent activity related to llvm.memcpy flags. I want to
...
prevent an llvm developer from mistakenly thinking that just because the
intrinsic has volatile flags that volatile operations can be converted
to or folded into them.
Platforms may rely on volatile loads and stores of natively supported
data width to be executed as single instruction. When compiling
C, this expectation likely holds for l-values of volatile primitive
types with native hardware support, but not necessarily for aggregate
types. The frontend upholds these expectations, which are not
specified in the IR.
llvm-svn: 173974
2013-01-30 21:19:35 +00:00
Hal Finkel
efb305e54c
Add definitions for the PPC a2q core marked as having QPX available
...
This is the first commit of a large series which will add support for the
QPX vector instruction set to the PowerPC backend. This instruction set is
used on the IBM Blue Gene/Q supercomputers.
llvm-svn: 173973
2013-01-30 21:17:42 +00:00
Eli Bendersky
0b85ba7d9e
Remove a mention of TargetInstrDescriptor, which no longer exists in the code
...
llvm-svn: 173971
2013-01-30 20:54:21 +00:00
Argyrios Kyrtzidis
a94bd438f8
Revert "[preprocessor] Don't warn about "disabled expansion of recursive macro""
...
This reverts commit r173952
llvm-svn: 173970
2013-01-30 20:42:17 +00:00
Sean Silva
1330eccb5f
[docs] Guide prospective TableGen backend writers.
...
Boilerplate is often the hardest part of getting started with these
kinds of things, so throw them a bone.
llvm-svn: 173969
2013-01-30 20:39:46 +00:00
Michael J. Spencer
b3c04d28c8
[ELF] Fix circular initialization bug.
...
llvm-svn: 173968
2013-01-30 20:36:56 +00:00
Michael J. Spencer
901fd6a4c8
[ELF] Use the target's LayoutHandler.
...
llvm-svn: 173966
2013-01-30 20:05:27 +00:00
Richard Trieu
90c31f51c6
Handle passing non-Qualtypes to %diff better. Instead of asserting, fall back
...
to printing the default case. This is a fix for PR15023.
llvm-svn: 173965
2013-01-30 20:04:31 +00:00
Tanya Lattner
0f86433efb
Add OpenCL error that a kernel function must have void return type. Includes a test case.
...
llvm-svn: 173963
2013-01-30 19:48:52 +00:00
Bill Wendling
866fc41060
Use the number of 'slots' in the AttributeSetImpl being 0 to indicate that the AttributeSet is empty.
...
llvm-svn: 173962
2013-01-30 19:39:21 +00:00
Jordan Rose
9588a02b77
Fix comment in test/Lexer/utf8-invalid.c for updates in r173959.
...
llvm-svn: 173961
2013-01-30 19:29:14 +00:00
Eli Bendersky
faf5e3e6b0
Clean up whitespace and indentation a bit
...
llvm-svn: 173960
2013-01-30 19:24:23 +00:00