Nadav Rotem
9f20781bad
Docs: mention that we support float reductions when -ffast-math is used.
...
llvm-svn: 171873
2013-01-08 17:46:30 +00:00
Eli Bendersky
0652dfd40c
Rename statistic for instruction fragments -> relaxable
...
llvm-svn: 171872
2013-01-08 17:41:59 +00:00
Nadav Rotem
3c352c0f4a
Code cleanup: refactor the switch statements in the generation of reduction variables into an IR builder call.
...
llvm-svn: 171871
2013-01-08 17:37:45 +00:00
Ted Kremenek
0ab78e622f
Repost checker-270, which for some reason got deleted.
...
llvm-svn: 171870
2013-01-08 17:33:58 +00:00
Matt Kopec
0ac31ac380
Add test to check the number of threads.
...
llvm-svn: 171869
2013-01-08 17:29:00 +00:00
Nadav Rotem
6f6d21a17b
Rename the enum members to match the LLVM coding style.
...
llvm-svn: 171868
2013-01-08 17:23:17 +00:00
Tim Northover
4bf47bc9d7
Add fp128 rtlib function names to LLVM
...
llvm-svn: 171867
2013-01-08 17:09:59 +00:00
Tim Northover
7bb9992cce
Allow the asm printer to print fp128 values properly.
...
llvm-svn: 171866
2013-01-08 16:56:23 +00:00
Manuel Klimek
6e67bed48c
clang-format can now format #defines.
...
llvm-svn: 171865
2013-01-08 16:33:20 +00:00
Matt Kopec
650648fa57
Add initial support to trace spawned threads in a process on Linux.
...
llvm-svn: 171864
2013-01-08 16:30:18 +00:00
Joel Jones
08e2394dfd
Add highlighting for "int" keyword
...
llvm-svn: 171863
2013-01-08 16:23:02 +00:00
Daniel Jasper
4f397156c4
Don't put spaces around ##.
...
In Clang/LLVM this seems to be the more common formatting for ##s. There
might still be case that we miss, but we'll fix those as we go along.
Before:
#define A(X)
void function ## X();
After:
#define A(X)
void function##X();
llvm-svn: 171862
2013-01-08 16:17:54 +00:00
Rafael Espindola
c8c61895be
Add missing spaces. This doesn't cause problems in practice because we only warn
...
about _Static_assert with -pedantic.
llvm-svn: 171860
2013-01-08 16:09:04 +00:00
Manuel Klimek
3a449891ba
Implements the features requested in PR14679.
...
- adds '-h' as an alias for '-help'.
- adds an optional <file> argument
- adds an option -i to in-place edit the given file
- adds a help text to explain what the tool does
llvm-svn: 171858
2013-01-08 15:19:57 +00:00
Rafael Espindola
ef5ea1df4e
Clear the LV cache when setting the instantiated from link.
...
Fixes pr14835.
llvm-svn: 171857
2013-01-08 14:58:32 +00:00
Daniel Jasper
7c85fde500
Change the data structure used in clang-format.
...
This is a first step towards supporting more complex structures such
as #ifs inside unwrapped lines. This patch mostly converts the array-based
UnwrappedLine into a linked-list-based UnwrappedLine. Future changes will
allow multiple children for each Token turning the UnwrappedLine into a
tree.
No functional changes intended.
llvm-svn: 171856
2013-01-08 14:56:18 +00:00
Daniel Malea
97059d4377
Enable ProcessGDBRemote plugin on Linux
...
- Fixes test case TestConnectRemote
llvm-svn: 171855
2013-01-08 14:55:36 +00:00
Daniel Malea
6217d2ae37
Implement -w flag to process launch (allow launching inferior process in different working directory) on Linux/FreeBSD
...
- fixes test case TestProcessLaunch
llvm-svn: 171854
2013-01-08 14:49:22 +00:00
Dmitri Gribenko
7daa1a2201
CodeGen/compound-assign-overflow.c: include stdint.h in freestanding mode
...
This hopefully fixes the ARM buildbot.
llvm-svn: 171853
2013-01-08 14:47:41 +00:00
Edwin Vane
31896624da
Transferred loop-convert tests to cpp11-migrate
...
- Turned off -count-only tests as they aren't supported in cpp11-migrate
yet.
- Updated tests to use new binary name and options to access
loop-convert transform.
- Fixed header guards to not use restricted names.
Reviewers: klimek, gribozavr
llvm-svn: 171852
2013-01-08 14:36:29 +00:00
Bill Wendling
76c6521ba1
Make sure we don't emit instructions before a landingpad instruction.
...
PR14782
llvm-svn: 171846
2013-01-08 10:51:32 +00:00
Tim Northover
a269c29e7f
Allow ELF64 relocation type to be more than 8 bits.
...
Current targets don't have more than 256 relocations so they don't hit this
limit, but ELF64 actually allows more than 8 bits for a relocation type. These
were being truncated on AArch64.
llvm-svn: 171845
2013-01-08 10:12:09 +00:00
Tobias Grosser
b1304ba9b2
Dead code elimination: Make variable names uppercase
...
llvm-svn: 171844
2013-01-08 08:53:58 +00:00
Tobias Grosser
184e2fcd9c
clang-format the dead code elimination pass
...
llvm-svn: 171843
2013-01-08 08:27:46 +00:00
Chandler Carruth
a7c44e6ec6
Sink a function that refers to the SelectionDAG into that library in the
...
one file where it is called as a static function. Nuke the declaration
and the definition in lib/CodeGen, along with the include of
SelectionDAG.h from this file.
There is no dependency edge from lib/CodeGen to
lib/CodeGen/SelectionDAG, so it isn't valid for a routine in lib/CodeGen
to reference the DAG. There is a dependency from
lib/CodeGen/SelectionDAG on lib/CodeGen. This breaks one violation of
this layering.
llvm-svn: 171842
2013-01-08 05:11:57 +00:00
Sean Silva
3703823b89
docs: "clang tools" are not a different interface.
...
I spotted someone confused about this, so remove the heading to make it
clear that they really are a part of Tooling.
llvm-svn: 171841
2013-01-08 04:42:09 +00:00
Rafael Espindola
9a5a6dddf9
Clear the LV cache when merging the availability attribute.
...
The availability implies default visibility, so it can change the computed
visibility.
llvm-svn: 171840
2013-01-08 04:04:30 +00:00
Eric Christopher
95de6bd469
Add the C testcase to this file.
...
Suggested by Dave Blaikie.
llvm-svn: 171839
2013-01-08 03:03:14 +00:00
Enrico Granata
d994540259
<rdar://problem/12968925>
...
Ensuring that the Module's FileSpec is not NULL before attempting to deref it for loading the python scripting resource
llvm-svn: 171838
2013-01-08 02:36:54 +00:00
Sean Silva
8a9980b4d8
Update README.txt to more accurately reflect reality.
...
This closes PR14709 and hopefully is a small step towards preventing
similar issues in the future.
llvm-svn: 171837
2013-01-08 02:35:15 +00:00
Michael J. Spencer
d2a4ccf8f9
[ELF] Add R_X86_64_64 relocation.
...
llvm-svn: 171836
2013-01-08 02:12:15 +00:00
Michael J. Spencer
8f80cd92d9
[lld] Add and ignore some flags for ld compat.
...
llvm-svn: 171835
2013-01-08 02:12:01 +00:00
Eric Christopher
9cf4480392
Add a test to make sure that vector output happens for debug info.
...
llvm-svn: 171834
2013-01-08 01:54:13 +00:00
Eric Christopher
72a529566c
Remove the llvm-local DW_TAG_vector_type tag and add a test to
...
make sure that vector types do work.
llvm-svn: 171833
2013-01-08 01:53:52 +00:00
Eric Christopher
9bd3609a08
Fix comment.
...
llvm-svn: 171832
2013-01-08 01:53:42 +00:00
Ted Kremenek
a046169000
Don't warn about undefined varargs argument behavior in unreachable code.
...
Fixes <rdar://problem/12322000>.
llvm-svn: 171831
2013-01-08 01:50:40 +00:00
David Blaikie
f7e654e3a7
Add [artificial] debug info annotation to test matching r171826
...
llvm-svn: 171830
2013-01-08 01:12:59 +00:00
Lenny Maiorani
fc5496823c
Split changeset_ty using iterators instead of loops.
...
llvm-svn: 171829
2013-01-08 01:08:52 +00:00
Argyrios Kyrtzidis
08281fa337
[arcmt] Follow-up for r171484; make sure when adding brackets enclosing case statements,
...
that the case does not "contain" a declaration that is referenced "outside" of it,
otherwise we will emit un-compilable code.
llvm-svn: 171828
2013-01-08 00:58:25 +00:00
Richard Smith
1ecd564487
Move ref qualifiers from Type bitfields into FunctionProtoType, stealing two
...
bits from the number of parameters. This brings the bitfields down from 33 bits
to 32 bits, reducing the size of Types by 4 bytes on 32-bit systems.
llvm-svn: 171827
2013-01-08 00:50:27 +00:00
David Blaikie
5c0b298b91
Mark artificial types as such in the annotated debug output.
...
llvm-svn: 171826
2013-01-08 00:31:02 +00:00
Anna Zaks
a043d0cef2
[analyzer] Include the bug uniqueing location in the issue_hash.
...
The issue here is that if we have 2 leaks reported at the same line for
which we cannot print the corresponding region info, they will get
treated as the same by issue_hash+description. We need to AUGMENT the
issue_hash with the allocation info to differentiate the two issues.
Add the "hash" (offset from the beginning of a function) representing
allocation site to solve the issue.
We might want to generalize solution in the future when we decide to
track more than just the 2 locations from the diagnostics.
llvm-svn: 171825
2013-01-08 00:25:29 +00:00
Anna Zaks
58b961d176
[analyzer] Plist: change the type of issue_hash from int to string.
...
This gives more flexibility to what could be stored as issue_hash.
llvm-svn: 171824
2013-01-08 00:25:22 +00:00
Anna Zaks
af48a938e3
[analyzer] Extend the Representing Values section of the dev manual.
...
llvm-svn: 171823
2013-01-08 00:25:14 +00:00
Eli Bendersky
4d9ada036c
Renamed MCInstFragment to MCRelaxableFragment and added some comments.
...
No change in functionality.
llvm-svn: 171822
2013-01-08 00:22:56 +00:00
Eric Christopher
9948d5eb6f
Remove what appears to be a dead llvm-specific debug tag.
...
llvm-svn: 171821
2013-01-08 00:16:33 +00:00
NAKAMURA Takumi
160087b1f6
clang/test/CodeGenOpenCL/shifts.cl: Fixup for -Asserts.
...
llvm-svn: 171820
2013-01-08 00:15:53 +00:00
Matt Kopec
845d7d8302
Fix TestSendSignals.py on Linux. The wrong stop reason was being set when stopping for a received signal.
...
llvm-svn: 171819
2013-01-08 00:13:33 +00:00
Richard Smith
27874d603b
PR14838: When a member reference is bound to a temporary, don't forget to
...
perform the semantic checks associated with the destruction of that temporary.
It'll be destroyed at the end of the constructor.
llvm-svn: 171818
2013-01-08 00:08:23 +00:00
Douglas Gregor
21444b96c8
Back out my no-op change from r171783.
...
llvm-svn: 171817
2013-01-08 00:01:45 +00:00