Jordan Rose
0da6747901
[analyzer] isCLibraryFunction: check that the function is at TU-scope.
...
Also, Decls already carry a pointer to the ASTContext, so there's no need
to pass an extra argument to the predicate.
llvm-svn: 167337
2012-11-02 23:49:24 +00:00
David Blaikie
8ed46b9935
Emit debug info for C++ struct definitions as DW_TAG_structure_type (instead of class_type).
...
llvm-svn: 167336
2012-11-02 23:40:00 +00:00
Akira Hatanaka
654e3b40f5
[mips] Do not reserve all 64-bit registers, but only the ones which need to be
...
reserved. Without this fix, RegScavenger::getRegsAvailable incorrectly
returns an empty set of integer registers.
llvm-svn: 167335
2012-11-02 23:36:01 +00:00
David Blaikie
bc1b4e73e6
Include all the fields so we can correctly emit DW_TAG_structure_type for C++ structs.
...
llvm-svn: 167334
2012-11-02 23:33:23 +00:00
Nadav Rotem
23848f8f1d
Add a stub for the x86 cost model impl. Implement a basic cost rule for inserting/extracting from XMM registers.
...
llvm-svn: 167333
2012-11-02 23:27:16 +00:00
David Blaikie
263f6a0ffa
Avoid version skew by making ObjC strict metadata tests resilient to new field.
...
llvm-svn: 167332
2012-11-02 23:07:41 +00:00
Fariborz Jahanian
2dd7819267
objective-C mrr block. Block variable layout metadata in
...
mrr mode.
llvm-svn: 167331
2012-11-02 22:51:18 +00:00
Nadav Rotem
3b0af848d3
Remove empty directory
...
llvm-svn: 167330
2012-11-02 22:35:50 +00:00
Nadav Rotem
13da94734c
CostModel: add support for Vector Insert and Extract.
...
llvm-svn: 167329
2012-11-02 22:31:56 +00:00
Chris Lattner
6bc6621d73
remove empty directories
...
llvm-svn: 167328
2012-11-02 22:29:53 +00:00
Sean Callanan
7273e2d124
Fixed a problem where we mistook normal result
...
variables for guard variables because the current
class or method named contained the letters "GV".
llvm-svn: 167327
2012-11-02 22:28:08 +00:00
Akira Hatanaka
d0836fd20a
[mips] Fix disassembler test cases.
...
llvm-svn: 167326
2012-11-02 22:20:10 +00:00
Argyrios Kyrtzidis
870704f6ef
When code-completing don't disable the preprocessing record if modules are enabled.
...
llvm-svn: 167325
2012-11-02 22:18:44 +00:00
Nadav Rotem
a6b91ac307
Add a cost model analysis that allows us to estimate the cost of IR-level instructions.
...
llvm-svn: 167324
2012-11-02 21:48:17 +00:00
Nadav Rotem
919b5aab34
Scalar Bitcasts and Truncs are usually free
...
llvm-svn: 167323
2012-11-02 21:47:47 +00:00
Akira Hatanaka
6dcf75897c
[mips] Fix bug in test case. Disable machine LICM to prevent instruction from
...
being moved out of a basic block.
llvm-svn: 167322
2012-11-02 21:46:42 +00:00
DeLesley Hutchins
66e300e6f9
Thread safety analysis: Fixed ICE caused by double delete when late parsed
...
attributes are attached to function declarations nested inside a class method.
llvm-svn: 167321
2012-11-02 21:44:32 +00:00
Richard Trieu
7104af04ac
Fix test cases I broken when fixing grammar in diagnostic message.
...
llvm-svn: 167320
2012-11-02 21:41:42 +00:00
Richard Trieu
f19039c294
Fix grammar of diagnostic message.
...
llvm-svn: 167319
2012-11-02 21:33:17 +00:00
Quentin Colombet
8e1fe84c3c
Vext Lowering was missing opportunities
...
llvm-svn: 167318
2012-11-02 21:32:17 +00:00
Anna Zaks
69e2bf9e0c
[analyzer] Test SimpleStream on the buildbot.
...
llvm-svn: 167317
2012-11-02 21:30:07 +00:00
Anna Zaks
da27efed92
[analyzer] Factor SimpleStreamChecker pulling out isLeaked().
...
llvm-svn: 167316
2012-11-02 21:30:04 +00:00
Akira Hatanaka
949f8d890d
[mips] Use register number instead of name to print register $AT.
...
llvm-svn: 167315
2012-11-02 21:26:03 +00:00
Greg Clayton
2346fcf60c
Fixed the "--force" option for memory read.
...
llvm-svn: 167314
2012-11-02 21:14:58 +00:00
Akira Hatanaka
97b43d8bdf
[mips] Add function MipsFrameLowering::estimateStackSize.
...
This function estimates stack size and will be called before
PrologEpilogInserter scans the callee-saved registers.
llvm-svn: 167313
2012-11-02 21:10:22 +00:00
Akira Hatanaka
719df2874c
[mips] Add member field MipsFunctionInfo::IncomingArgSize which holds the size
...
of the incoming argument area.
llvm-svn: 167312
2012-11-02 21:03:58 +00:00
Rafael Espindola
7296139d5e
Fix a build problem with xlc. The error message was
...
"../llvm-git/utils/TableGen/CodeGenSchedule.cpp", line 1594.12: 1540-0218 (S) The call does not match any parameter list for "operator+".
"../llvm-git/include/llvm/ADT/STLExtras.h", line 130.1: 1540-1283 (I) "template <class _Iterator, class Func> llvm::operator+(mapped_iterator<_Iterator,Func>::difference_type, const mapped_iterator<_Iterator,Func> &)" is not a viable candidate.
Patch by Kai.
llvm-svn: 167311
2012-11-02 20:57:36 +00:00
Akira Hatanaka
0dfbf1262b
[mips] Delete MipsFunctionInfo::EmitNOAT. Unconditionally print directive
...
"set .noat" so that the assembler doesn't issue warnings when register $AT is
used.
llvm-svn: 167310
2012-11-02 20:56:25 +00:00
Rafael Espindola
2f92f61098
XLC supports the same atomic functions as GCC, use them.
...
Patch by Kai.
llvm-svn: 167309
2012-11-02 20:54:45 +00:00
David Blaikie
d37bbc3e00
Fix debug tag type of forward declarations of struct/class in C++.
...
llvm-svn: 167308
2012-11-02 20:49:01 +00:00
Rafael Espindola
7df3501b49
Improve x86 android support:
...
* -Bsymbolic must be added for x86 as well.
* Default CPU name also set to 'core2' for x86 android.
Patch by Edwin Vane.
llvm-svn: 167307
2012-11-02 20:41:30 +00:00
Richard Smith
ea6ae57485
Add test for link flags added by -fcatch-undefined-behavior.
...
llvm-svn: 167306
2012-11-02 20:34:30 +00:00
Richard Smith
437abed3ae
Add -lpthread when building with Ubsan on Linux, in preparation for making libclang-rt.ubsan pull in sanitizer_common, which in turn depends on pthreads.
...
llvm-svn: 167305
2012-11-02 20:32:19 +00:00
Andrew Kaylor
fb05a50f6b
Change resolveRelocation parameters so the relocations can find placeholder values in the original object buffer.
...
Some ELF relocations require adding the a value to the original contents of the object buffer at the specified location. In order to properly handle multiple applications of a relocation, the RuntimeDyld code should be grabbing the original value from the object buffer and writing a new value into the loaded section buffer. This patch changes the parameters passed to resolveRelocations to accommodate this need.
llvm-svn: 167304
2012-11-02 19:45:23 +00:00
Sean Callanan
84dcccd14b
Switched debugserver to use C++11/libc++.
...
<rdar://problem/12624679>
llvm-svn: 167303
2012-11-02 18:30:51 +00:00
Dmitri Gribenko
13539d1b0a
Documentation: fix typos.
...
llvm-svn: 167302
2012-11-02 18:06:51 +00:00
Ted Kremenek
0b8558da0f
Update test case.
...
llvm-svn: 167301
2012-11-02 17:50:53 +00:00
Ted Kremenek
42f704d67e
Move -Wimplicit-retain-self to be off-by-default until we can evaluate
...
more how noisy it is.
llvm-svn: 167300
2012-11-02 17:48:49 +00:00
Sean Callanan
5540094ccd
Extra safeguards to ensure that we never query
...
the runtime if we have complete debug information
for a class.
Also made the Objective-C language runtime return
NULL when asked for the complete debug information
(i.e., information from DWARF, not information from
the runtime) if that information isn't present. It
used to return a non-authoritative version, which
made it hard for clients to determine whether
complete debug information was available.
<rdar://problem/12608895>
llvm-svn: 167299
2012-11-02 17:09:58 +00:00
Alexey Samsonov
58358897a3
[Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to determine whether error reports are printed to terminal
...
llvm-svn: 167298
2012-11-02 15:18:34 +00:00
Alexey Samsonov
f7a24c4e2b
[Sanitizer] fix printf unittest on 32-bit arch
...
llvm-svn: 167297
2012-11-02 14:28:17 +00:00
Alexey Samsonov
008274440a
[Sanitizer] move unit test for Printf from tsan to sanitizer_common
...
llvm-svn: 167296
2012-11-02 12:36:11 +00:00
Alexey Samsonov
9bdb63ae0d
Fix whitespaces
...
llvm-svn: 167295
2012-11-02 12:20:34 +00:00
Alexey Samsonov
ad9d65feb8
[TSan] finally remove TsanPrintf in favor of Printf from sanitizer_common
...
llvm-svn: 167294
2012-11-02 12:17:51 +00:00
NAKAMURA Takumi
51466d7622
clang/test/CodeGen/bitfield-promote.c: Add explicit triple for now. It has been failing for big endian targets, for example, ppc.
...
llvm-svn: 167293
2012-11-02 09:59:12 +00:00
NAKAMURA Takumi
510db83782
clang/test/CodeGen/bitfield-promote.c: FileCheck-ize.
...
llvm-svn: 167292
2012-11-02 09:59:06 +00:00
Alexey Samsonov
20ba98fdb1
[Sanitizer] Use kStderrFd constant instead of hardcoded 2
...
llvm-svn: 167291
2012-11-02 09:38:47 +00:00
Alexey Samsonov
fd67c83e7e
[Sanitizer]: add __sanitizer_set_report_fd function to alter file descriptor for error reports
...
llvm-svn: 167290
2012-11-02 09:23:36 +00:00
Duncan Sands
47ef7cffb8
Enable the assertion in getIntPtrType (I've audited all users of this method and
...
they are now all correct; hopefully the buildbots will agree!).
llvm-svn: 167289
2012-11-02 09:02:37 +00:00
Chandler Carruth
b62807a95c
Add a testcase to loop-idiom to cover PR14241 when we start handling
...
strided loops again.
llvm-svn: 167287
2012-11-02 08:40:24 +00:00