Tom Stellard
91336f7259
R600: Fold clamp, neg, abs
...
Patch by: Vincent Lejeune
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 174099
2013-01-31 22:11:54 +00:00
Tom Stellard
fe5c14ff9a
R600: Consider bitcast when folding const_address node.
...
Patch by: Vincent Lejeune
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 174098
2013-01-31 22:11:53 +00:00
Tom Stellard
585a9178bf
R600: Make store_dummy intrinsic more general by passing export type
...
Patch by: Vincent Lejeune
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 174097
2013-01-31 22:11:46 +00:00
Chad Rosier
ae7fb3bcb7
Remove unused variable, which should have been removed with r174083.
...
llvm-svn: 174094
2013-01-31 21:23:44 +00:00
Manman Ren
e0deec7fe0
Linker: correctly link in dbg.declare
...
This is a re-worked version of r174048.
Given source IR:
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !14 ), !dbg !15
we used to generate
call void @llvm.dbg.declare(metadata !27 , metadata !28 ), !dbg !29
!27 = metadata !{null}
With this patch, we will correctly generate
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !27 ), !dbg !28
Looking up %argc.addr in ValueMap will return null, since %argc.addr is already
correctly set up, we can use identity mapping.
rdar://problem/13089880
llvm-svn: 174093
2013-01-31 21:19:18 +00:00
Bill Wendling
0b0b695442
Add support for emitting a string attribute.
...
Attributes that are strings are typically target-dependent attributes. They are
of this form in the IR:
"attr"
"attr" = "val"
llvm-svn: 174090
2013-01-31 20:59:05 +00:00
Daniel Dunbar
f0b8d0bee5
[lit] Fix bug where InternalShellError messages were discarded.
...
- Also, change the exit code to match 'sh'.
llvm-svn: 174089
2013-01-31 20:58:16 +00:00
Chad Rosier
797c35aba9
Add braces, so my head doesn't explode.
...
llvm-svn: 174088
2013-01-31 20:57:50 +00:00
Daniel Dunbar
9974bc4dd7
[lit] Fix a shell parsing bug with ';' not separated by whitespace.
...
- Testing finds bugs, who knew.
llvm-svn: 174087
2013-01-31 20:51:17 +00:00
Tim Northover
3d8039e3f0
Update AArch64 backend to changed eliminateFrameIndex interface.
...
llvm-svn: 174086
2013-01-31 20:46:53 +00:00
Lang Hames
ff8ee44f3a
When lowering memcpys to loads and stores, make sure we don't promote alignments
...
past the natural stack alignment.
llvm-svn: 174085
2013-01-31 20:23:43 +00:00
Manman Ren
f01539f6a1
[Dwarf] early exit to avoid creating dangling DIEs
...
We used to create children DIEs for a scope, then check whether ScopeDIE is
null. If ScopeDIE is null, the children DIEs will be dangling. Other DIEs can
link to those dangling DIEs, which are not emitted at all, causing dwarf error.
The current testing case is 4k lines, from MultiSource/BenchMark/McCat/09-vor.
rdar://problem/13071959
llvm-svn: 174084
2013-01-31 20:05:14 +00:00
Chad Rosier
ebbd4433e6
[PEI] Pass the frame index operand number to the eliminateFrameIndex function.
...
Each target implementation was needlessly recomputing the index.
Part of rdar://13076458
llvm-svn: 174083
2013-01-31 20:02:54 +00:00
Jim Grosbach
24ae32bc2f
interpreter: Fix errant fallthrough.
...
llvm-svn: 174080
2013-01-31 19:46:59 +00:00
Jim Grosbach
3ea2e57843
Object: Fix errant fallthrough.
...
llvm-svn: 174079
2013-01-31 19:46:57 +00:00
Jim Grosbach
8035e3683d
RuntimeDyld: Fix errant fallthrough.
...
llvm-svn: 174078
2013-01-31 19:46:28 +00:00
Edwin Vane
d8f4b59584
Turn off missing field initializer warnings for gcc
...
gcc produces false positives for empty braces so turning the warning off.
Instead, turning the warning on for clang so proper warnings aren't missed.
Reviewers: dblaikie, chandlerc
llvm-svn: 174073
2013-01-31 18:05:54 +00:00
Daniel Dunbar
b1cf0346bf
[lit] Add a test for the various ShTest format features.
...
llvm-svn: 174072
2013-01-31 18:05:01 +00:00
Daniel Dunbar
6da49ae5e5
[lit] TestRunner: Eliminate failDueToStderr argument, which is now unused.
...
llvm-svn: 174071
2013-01-31 18:04:45 +00:00
Daniel Dunbar
68b35e0a6d
[lit] Delete the now-unused SyntaxCheckTest format.
...
- Also, kill the pointless LitFormats module.
llvm-svn: 174070
2013-01-31 18:04:38 +00:00
Jakob Stoklund Olesen
71dc1e3b47
Clarify intent.
...
llvm-svn: 174068
2013-01-31 17:56:23 +00:00
Derek Schuff
ef8694af28
[MC] bundle alignment: prevent padding instructions from crossing bundle boundaries
...
llvm-svn: 174067
2013-01-31 17:00:03 +00:00
Tim Northover
0d625b1a2c
Add myself as code owner of AArch64 backend.
...
llvm-svn: 174056
2013-01-31 12:51:16 +00:00
Tim Northover
e2b0519ed8
Add AArch64 as an experimental target.
...
This patch adds support for AArch64 (ARM's 64-bit architecture) to
LLVM in the "experimental" category. Currently, it won't be built
unless requested explicitly.
This initial commit should have support for:
+ Assembly of all scalar (i.e. non-NEON, non-Crypto) instructions
(except the late addition CRC instructions).
+ CodeGen features required for C++03 and C99.
+ Compilation for the "small" memory model: code+static data <
4GB.
+ Absolute and position-independent code.
+ GNU-style (i.e. "__thread") TLS.
+ Debugging information.
The principal omission, currently, is performance tuning.
This patch excludes the NEON support also reviewed due to an outbreak of
batshit insanity in our legal department. That will be committed soon bringing
the changes to precisely what has been approved.
Further reviews would be gratefully received.
llvm-svn: 174054
2013-01-31 12:12:40 +00:00
Pekka Jaaskelainen
433a41f8f3
Made the min-trip-count-switch test X86-specific to avoid
...
breakage with builds without X86-support.
llvm-svn: 174052
2013-01-31 10:33:22 +00:00
Evgeniy Stepanov
51eee1f016
Annotate BumpPtrAllocator for MemorySanitizer.
...
This change adds MemorySanitizer annotations to BumpPtrAllocator to
improve report quality.
llvm-svn: 174051
2013-01-31 09:58:59 +00:00
Alexey Samsonov
365f5a5d7b
Revert r173946. This breaks compilation of googletest with Clang
...
llvm-svn: 174048
2013-01-31 08:02:11 +00:00
Bill Wendling
2fe5911bfe
Remove the Attribute::hasAttributes() function.
...
That function doesn't make sense anymore because there's only one attribute per
Attribute object now.
llvm-svn: 174044
2013-01-31 06:22:35 +00:00
Michael Gottesman
6223b4bbb2
Fixed a mistake in my previous commit where I changed the wording slightly and forgot to undo the change after changing my mind and deciding to only commit the style changes.
...
llvm-svn: 174041
2013-01-31 05:48:48 +00:00
Michael Gottesman
960bb82c24
Formatting Fix. Changed " to `` around the word 'constant' in the Lang Ref
...
section Global Variable so that the style matches the other keywords in
said section.
llvm-svn: 174040
2013-01-31 05:44:04 +00:00
NAKAMURA Takumi
ad566655e3
Revert r174026, "Remove Attribute::hasAttributes() and make Attribute::hasAttribute() private."
...
It broke many hosts to crash.
llvm-svn: 174035
2013-01-31 03:47:28 +00:00
Dan Gohman
eabc737422
Change stripAndComputeConstantOffsets to accept a NULL DataLayout pointer
...
as well.
llvm-svn: 174030
2013-01-31 02:50:36 +00:00
Dan Gohman
c75c606cf7
Add a comment.
...
llvm-svn: 174028
2013-01-31 02:45:26 +00:00
Dan Gohman
6968f40e37
Move isKnownNonNull out of AliasAnalysis.h and into ValueTracking.cpp since
...
it isn't really an AliasAnalysis concept, and ValueTracking has similar things
that it could plausibly share code with some day.
llvm-svn: 174027
2013-01-31 02:40:59 +00:00
Bill Wendling
37dbbd1577
Remove Attribute::hasAttributes() and make Attribute::hasAttribute() private.
...
The Attribute::hasAttributes() is kind of meaningless since an Attribute can
have only one attribute. And we would rather people use the 'operator=='
instead of Attribute::hasAttribute().
llvm-svn: 174026
2013-01-31 02:18:19 +00:00
Dan Gohman
7eac0c2694
Change GetPointerBaseWithConstantOffset's DataLayout argument from a
...
reference to a pointer, so that it can handle the case where DataLayout
is not available and behave conservatively.
llvm-svn: 174024
2013-01-31 02:00:45 +00:00
Bill Wendling
967a150cda
Make the AttrBuilder creation method of Attribute private so that people won't use it.
...
llvm-svn: 174023
2013-01-31 01:51:27 +00:00
Saleem Abdulrasool
2ed4285578
build: @ENABLE_THREADS@ => @LLVM_ENABLE_THREADS@
...
Makefile.config does not have the value for ENABLE_THREADS substituted as the
variable is called LLVM_ENABLE_THREADS within configure.ac. This was pointed
out by zygoloid over IRC.
llvm-svn: 174021
2013-01-31 01:34:59 +00:00
Daniel Dunbar
6acef346f3
[lit] Move unittest adaptor code into discovery module.
...
- Also, add a test for it.
llvm-svn: 174019
2013-01-31 01:23:39 +00:00
Daniel Dunbar
29c19beaa9
[lit] Run the ShUtil tests as part of the test suite.
...
llvm-svn: 174018
2013-01-31 01:23:26 +00:00
Daniel Dunbar
78d1ba3a49
[lit] Set parallel mode for coverage tests.
...
llvm-svn: 174017
2013-01-31 01:23:18 +00:00
Daniel Dunbar
5bab9b90e8
[lit] Move discovery code into its own module.
...
llvm-svn: 174014
2013-01-31 01:14:01 +00:00
Bill Wendling
bc16a254b0
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
bb4501dec6
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
d1d96ba2d8
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
44ea43314a
Whitespace.
...
llvm-svn: 174009
2013-01-31 00:50:48 +00:00
Eric Christopher
ae708feb79
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
74ca4e1a3a
LangRef: Add a Rationale for volatile rules.
...
llvm-svn: 174007
2013-01-31 00:49:39 +00:00
Eli Bendersky
18a780aca3
Replace some more greps with FileChecks in tests
...
llvm-svn: 174006
2013-01-31 00:44:12 +00:00
Dan Gohman
157c7b338a
Minor code simplification.
...
llvm-svn: 174005
2013-01-31 00:32:11 +00:00