Chandler Carruth
130cec21b9
Sort the #include lines for unittest/...
...
llvm-svn: 169250
2012-12-04 10:23:08 +00:00
Chandler Carruth
605e30e93c
Sort the #include lines of the examples/... tree.
...
llvm-svn: 169249
2012-12-04 10:16:57 +00:00
Chandler Carruth
c5c675d203
Teach the include sorter to quickly skip files with an extension that
...
doesn't look like it will have C++ code in it.
Suggestions on a better heuristic are welcome.
llvm-svn: 169248
2012-12-04 10:08:59 +00:00
Chandler Carruth
2aa2a9bf2b
Teach the include sorter to skip files under test trees and under INPUTS
...
trees. This allows running the input sorter on the entire clang
repository cleanly now.
llvm-svn: 169247
2012-12-04 09:59:54 +00:00
Chandler Carruth
59ff16cf74
Sort the #include lines under utils/...
...
llvm-svn: 169245
2012-12-04 09:53:39 +00:00
Chandler Carruth
fa0b3bb7ec
Really sort the #include lines in unittests/...
...
I forgot to re-sort after fixing main module headers.
llvm-svn: 169244
2012-12-04 09:53:37 +00:00
Chandler Carruth
320d9666ee
Sort the #include lines for unittests/...
...
I've tried to place sensible headers at the top as main-module headers.
llvm-svn: 169243
2012-12-04 09:45:34 +00:00
Chandler Carruth
ed09f456e7
Teach the include sorting script about the gtest headers; sort them with
...
the system headers.
llvm-svn: 169242
2012-12-04 09:44:38 +00:00
Chandler Carruth
8675b4af77
Sort the #include lines for examples/...
...
llvm-svn: 169241
2012-12-04 09:37:22 +00:00
Chandler Carruth
cc0694c8a4
Sort #include lines for tools/...
...
Completely automated with sort_includes.py
llvm-svn: 169240
2012-12-04 09:25:21 +00:00
Chandler Carruth
9b1773b517
Update the #include lines of the extra tools.
...
llvm-svn: 169239
2012-12-04 09:21:50 +00:00
Chandler Carruth
6229d9a350
Sort #include lines for all files under include/...
...
This is a simpler sort, entirely automatic with the help of
llvm/utils/sort_includes.py -- no manual edits here.
llvm-svn: 169238
2012-12-04 09:18:49 +00:00
Chandler Carruth
3a02247dc9
Sort all of Clang's files under 'lib', and fix up the broken headers
...
uncovered.
This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.
I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237
2012-12-04 09:13:33 +00:00
NAKAMURA Takumi
1f58e8e194
ASTTests, ASTMatchersTests: Move clangEdit before clangAst in USEDLIB.
...
llvm-svn: 169236
2012-12-04 08:20:41 +00:00
NAKAMURA Takumi
b25f3f7dcb
Untabify (in USEDLIBS, Makefile(s)).
...
llvm-svn: 169235
2012-12-04 08:20:35 +00:00
Kostya Serebryany
077f88045e
[tsan] refactoring and comment changes in sanitizer_common/sanitizer_allocator{,64}.h. No functionality change
...
llvm-svn: 169234
2012-12-04 07:54:41 +00:00
NAKAMURA Takumi
0e0c3aa560
clang/Lex: [CMake] Update CMakefiles since r169229.
...
llvm-svn: 169233
2012-12-04 07:40:33 +00:00
Bill Wendling
6246013f7a
Don't test for ASM output but for IR output.
...
llvm-svn: 169232
2012-12-04 07:33:40 +00:00
Dmitry Vyukov
0d677279f6
tsan: better error message if we fail to intercept some function
...
currently the message is SIGSEGV
llvm-svn: 169231
2012-12-04 07:28:25 +00:00
Dmitry Vyukov
d229abe49a
tsan: check if PWD env var is absent
...
On some programs I see:
failed to open suppressions file '<null>/testing/tsan/v2/tsan.supp'
llvm-svn: 169230
2012-12-04 07:27:32 +00:00
Argyrios Kyrtzidis
f3d587ea7c
Refactor recording the preprocessor conditional directive regions out of
...
PreprocessingRecord and into its own class, PPConditionalDirectiveRecord.
Decoupling allows a client to use the functionality of PPConditionalDirectiveRecord
without needing a PreprocessingRecord.
llvm-svn: 169229
2012-12-04 07:27:05 +00:00
Argyrios Kyrtzidis
d1c9031c91
In the PreprocessingRecord, to identify the different conditional directive regions
...
use the SourceLocation at the start of the respective region, instead of a unique integer.
llvm-svn: 169228
2012-12-04 07:26:53 +00:00
Argyrios Kyrtzidis
6a33de18a3
[libclang] Avoid copying the CompileCommand related strings when wrapping them to a CXString.
...
llvm-svn: 169227
2012-12-04 07:26:48 +00:00
Argyrios Kyrtzidis
251ad5e06b
Introduce CompilationDatabase::getAllCompileCommands() that returns all
...
compile commands of the database and expose it via the libclang API.
llvm-svn: 169226
2012-12-04 07:26:44 +00:00
NAKAMURA Takumi
0e9acc94bc
VMCoreTests/PassManagerTest.cpp: Appease msvc not to do "using llvm::Pass" in class template.
...
FIXME: I have not checked whether to be compiled on msvc11.
llvm-svn: 169225
2012-12-04 07:25:24 +00:00
Chandler Carruth
802d755533
Sort includes for all of the .h files under the 'lib' tree. These were
...
missed in the first pass because the script didn't yet handle include
guards.
Note that the script is now able to handle all of these headers without
manual edits. =]
llvm-svn: 169224
2012-12-04 07:12:27 +00:00
Nadav Rotem
07674cb566
Give scalar if-converted blocks half the score because they are not always executed due to CF.
...
llvm-svn: 169223
2012-12-04 07:11:52 +00:00
Chandler Carruth
43342d5c88
Address review comments from Matt on the sort_includes.py script.
...
1) Teach it to handle files with #include on the first line -- these do
actually exist in LLVM.
2) Support llvm-c and clang-c include projects.
3) Nuke some stail imports.
4) Switch to using os.path to split the file extension off.
5) Remove debugging leftovers.
6) Add docstring (a really puny one) for the sort function.
I'm continuing te avoid stripping the whitespace on the RHS to preserve
whatever newline characters happen to be in the original file.
llvm-svn: 169222
2012-12-04 07:04:58 +00:00
Chandler Carruth
dd7ca93abc
Add a comment about the requirement that the Windows.h header be last.
...
This comment has the dual effect of blocking reorderings with the
sort_include script.
llvm-svn: 169221
2012-12-04 07:04:57 +00:00
NAKAMURA Takumi
ecc759a684
clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp: Add explicit triple, x86_64-unknown-unknown. It was incompatible to i686.
...
llvm-svn: 169220
2012-12-04 06:58:05 +00:00
Bill Wendling
1ca9862cfb
Add a 'count' field to the DWARF subrange.
...
The count field is necessary because there isn't a difference between the 'lo'
and 'hi' attributes for a one-element array and a zero-element array. When the
count is '0', we know that this is a zero-element array. When it's >=1, then
it's a normal constant sized array. When it's -1, then the array is unbounded.
llvm-svn: 169219
2012-12-04 06:21:27 +00:00
Bill Wendling
bfc0e5725f
Add a 'count' field to the DWARF subrange.
...
The count field is necessary because there isn't a difference between the 'lo'
and 'hi' attributes for a one-element array and a zero-element array. When the
count is '0', we know that this is a zero-element array. When it's >=1, then
it's a normal constant sized array. When it's -1, then the array is unbounded.
llvm-svn: 169218
2012-12-04 06:20:49 +00:00
Nadav Rotem
628c2dba60
Add the last part that is needed for vectorization of if-converted code.
...
Added the code that actually performs the if-conversion during vectorization.
We can now vectorize this code:
for (int i=0; i<n; ++i) {
unsigned k = 0;
if (a[i] > b[i]) <------ IF inside the loop.
k = k * 5 + 3;
a[i] = k; <---- K is a phi node that becomes vector-select.
}
llvm-svn: 169217
2012-12-04 06:15:11 +00:00
Kostya Serebryany
9b65726d24
[asan] add experimental -asan-realign-stack option (true by default, which does not change the current behavior)
...
llvm-svn: 169216
2012-12-04 06:14:01 +00:00
Bill Wendling
36ed3024ed
Add a 'getCount' method to get the number of elements in the subrange.
...
llvm-svn: 169215
2012-12-04 06:12:44 +00:00
Matt Beaumont-Gay
abfc446063
Add 'using' declarations to suppress -Woverloaded-virtual warnings.
...
llvm-svn: 169214
2012-12-04 05:41:27 +00:00
Jyotsna Verma
5929cfc534
Move all operand definitions into HexagonOperands.td
...
llvm-svn: 169213
2012-12-04 05:00:31 +00:00
Jyotsna Verma
efe4f559b1
Move generic Hexagon subtarget information into Hexagon.td
...
llvm-svn: 169212
2012-12-04 04:29:16 +00:00
Sean Silva
c454f07e33
docs: Fix broken link.
...
llvm-svn: 169211
2012-12-04 03:45:27 +00:00
Sean Silva
4b587854fe
docs: Fix dead link.
...
Apparently Dinkumware are no longer hosting their nice reference
manuals. Thankfully, `cppreference.com` can fill that role well.
llvm-svn: 169210
2012-12-04 03:30:36 +00:00
Shuxin Yang
86c0e232b7
rdar://12329730 (2nd part, revised)
...
The type of shirt-right (logical or arithemetic) should remain unchanged
when transforming "X << C1 >> C2" into "X << (C1-C2)"
llvm-svn: 169209
2012-12-04 03:28:32 +00:00
Sean Silva
beb15ca8f0
docs: Convert ProgrammersManual to reST.
...
Patch by Alexander Zinenko!
llvm-svn: 169208
2012-12-04 03:20:08 +00:00
Richard Smith
35d8629906
Document the existence of -fsanitize=bounds.
...
llvm-svn: 169207
2012-12-04 02:48:16 +00:00
Alexander Potapenko
0dcd6d9468
[ASan] Do not build the interceptors that use ObjC blocks if the compiler does not support blocks.
...
Need to define MISSING_BLOCKS_SUPPORT in this case at buildtime.
Patch by Jack Howarth <howarth@bromo.med.uc.edu>
llvm-svn: 169206
2012-12-04 02:41:47 +00:00
Greg Clayton
e14e19253d
<rdar://problem/12750060>
...
Add the ability to get a symbol or symbols by name and type from a SBModule, and also the ability to get all symbols by name and type from SBTarget objects.
llvm-svn: 169205
2012-12-04 02:22:16 +00:00
Jim Ingham
15a2860b09
Missing #include to pick up def'n of TerminalState.h.
...
llvm-svn: 169203
2012-12-04 01:57:57 +00:00
Greg Clayton
12057dafea
Get rid of a warning where functions in DNB.h were extern "C" when they don't need to be anymore.
...
llvm-svn: 169202
2012-12-04 01:57:36 +00:00
Alexey Samsonov
45b6edbd1d
ASan: add new interface functions - __asan_(un)poison_stack_memory. Calls to these functions are inserted by the instrumentation pass in use-after-scope mode
...
llvm-svn: 169201
2012-12-04 01:38:15 +00:00
Alexey Samsonov
261177a1e1
ASan: add initial support for handling llvm.lifetime intrinsics in ASan - emit calls into runtime library that poison memory for local variables when their lifetime is over and unpoison memory when their lifetime begins.
...
llvm-svn: 169200
2012-12-04 01:34:23 +00:00
NAKAMURA Takumi
384a957051
clang/test/Index/comment-objc-decls.m: Try to fix r169193, to add x86_64-darwin.
...
llvm-svn: 169199
2012-12-04 01:03:31 +00:00