Douglas Gregor
5196bc6b39
When loading a module that involves submodules (e.g., std.vector),
...
check whether the named submodules themselves are actually
valid, and drill down to the named submodule (although we don't do
anything with it yet). Perform typo correction on the submodule names
when possible.
llvm-svn: 145477
2011-11-30 04:03:44 +00:00
Jim Ingham
5a14c543c7
Turn off the resolver detection till we find a better method to do so.
...
llvm-svn: 145472
2011-11-30 03:15:08 +00:00
Greg Clayton
3a5f29a073
Add a work around to deal with incorrect forward class definitions in
...
objective C DWARF emitted by clang.
llvm-svn: 145471
2011-11-30 02:48:28 +00:00
Chad Rosier
385d9f6c24
Whitespace.
...
llvm-svn: 145470
2011-11-30 01:59:59 +00:00
Bob Wilson
5f4e3a780f
Add bigger method type encodings to protocol objects. <rdar://problem/10492418>
...
The new metadata are method @encode strings with additional data.
1. Each Objective-C object is marked with its class name and protocol names.
The same is done for property @encode already.
2. Each block object is marked with its function prototype's @encoding. For
example, a method parameter that is a block object that itself returns void
and takes an int would look like:
@?<v@?i>
These new method @encode strings are stored in a single array pointed to by structs protocol_t and objc_protocol_ext.
Patch provided by Greg Parker!
llvm-svn: 145469
2011-11-30 01:57:58 +00:00
Chad Rosier
abba0947db
Alphabetize TargetLibraryInfo enum and fix doxygen comments. No functional
...
change intended.
llvm-svn: 145468
2011-11-30 01:51:49 +00:00
Kostya Serebryany
7bca6c24ec
when -faddress-sanitizer is present, add required flags to the linker command (linux-only)
...
llvm-svn: 145467
2011-11-30 01:39:16 +00:00
Johnny Chen
99bb50c10d
rdar://problem/9211445
...
Fix wrong test logic in test_modules_search_paths(). Add additional exercising of 'target modules search-paths list/query".
There is a reproducible crash if 'target modules search-paths clear' is exercised during test teardown.
So we currently comment out the stmt as follows:
# Add teardown hook to clear image-search-paths after the test.
# rdar://problem/10501020
# Uncomment the following to reproduce 10501020.
#self.addTearDownHook(lambda: self.runCmd("target modules search-paths clear"))
llvm-svn: 145466
2011-11-30 01:33:59 +00:00
Jim Grosbach
f09b1c46cf
llvm_unreachable() is not for user diagnostics....
...
llvm-svn: 145465
2011-11-30 01:15:55 +00:00
Jim Grosbach
cd6f5e757c
ARM parsing aliases for VLD1 single register all lanes.
...
llvm-svn: 145464
2011-11-30 01:09:44 +00:00
Kostya Serebryany
019b76f5fd
AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt
...
llvm-svn: 145463
2011-11-30 01:07:02 +00:00
Douglas Gregor
71944203de
Switch the module-loading interfaces and parser from a simple
...
top-level module name to a module path (e.g., std.vector). We're still
missing a number of pieces for this actually to do something.
llvm-svn: 145462
2011-11-30 00:36:36 +00:00
Eric Christopher
607fb70750
Make sure that forward declarations are marked as such in the debug info
...
for the structure type.
rdar://10499337
llvm-svn: 145461
2011-11-29 23:57:40 +00:00
Chad Rosier
82e1bd8e94
Add support for sqrt, sqrtl, and sqrtf in TargetLibraryInfo. Disable
...
(fptrunc (sqrt (fpext x))) -> (sqrtf x) transformation if -fno-builtin is
specified.
rdar://10466410
llvm-svn: 145460
2011-11-29 23:57:10 +00:00
Johnny Chen
faa5c13d8f
Remove possible cut-and-paste code which doesn't belong.
...
llvm-svn: 145459
2011-11-29 23:56:14 +00:00
Jim Grosbach
182b6a077e
Tidy up a bit.
...
llvm-svn: 145458
2011-11-29 23:51:09 +00:00
Greg Clayton
187748456a
<rdar://problem/10500242>
...
Find the one true objective C type definition if there is one within a module.
llvm-svn: 145457
2011-11-29 23:40:34 +00:00
Jim Grosbach
ae672f8118
Add comment.
...
llvm-svn: 145456
2011-11-29 23:33:40 +00:00
Argyrios Kyrtzidis
ebbb20628a
[libclang] Do the ConcurrencyCheck at the beginning of clang_findReferencesInFile.
...
llvm-svn: 145455
2011-11-29 23:21:50 +00:00
Jim Grosbach
e1154eef0b
ARM parsing aliases for data-size suffices on VST1.
...
llvm-svn: 145454
2011-11-29 23:21:31 +00:00
Akira Hatanaka
a21f5dab3c
Change processor names. Patch by Simon Atanasyan.
...
llvm-svn: 145453
2011-11-29 23:09:24 +00:00
Jakob Stoklund Olesen
f50d2eafdb
FileCheckize.
...
llvm-svn: 145452
2011-11-29 23:09:16 +00:00
Akira Hatanaka
dc25f9f38a
Change names for MIPS "generic" processors defined in Mips.td to match what GNU
...
tools use. Patch by Simon Atanasyan.
"mips32r1" => "mips32"
"4ke" => mips32r2"
"mips64r1" => "mips64"
llvm-svn: 145451
2011-11-29 23:08:41 +00:00
Jim Grosbach
5ee209ce3a
ARM assembly parsing and encoding for four-register VST1.
...
llvm-svn: 145450
2011-11-29 22:58:48 +00:00
Daniel Dunbar
8d5cc33ad8
llvm-config: Replace with C++ version (was llvm-config-2).
...
- Reapply of r144300, with lots of fixes/migration easement in between.
llvm-svn: 145449
2011-11-29 22:56:31 +00:00
Evan Cheng
648e48d02e
Add another missing pattern. llvm-gcc likes f64 but clang likes i64 so it was generating poor code for some SSE builtins.
...
llvm-svn: 145448
2011-11-29 22:48:34 +00:00
Richard Smith
507840dbff
Revert r145244. It causes us to create broken ASTs with missing type information
...
for some cast expressions.
Original commit message:
Removed useless ImplicitCast nodes in explicit cstyle and static casts
llvm-svn: 145447
2011-11-29 22:48:16 +00:00
Sean Callanan
8b9ccfe270
Added #ifdef wrappers around the contents of
...
ASTDumper.h.
llvm-svn: 145446
2011-11-29 22:47:44 +00:00
Matt Beaumont-Gay
c93b489138
Suppress -Warray-bounds for classes (not just structs) where the last field is
...
a 1-length character array.
llvm-svn: 145445
2011-11-29 22:43:53 +00:00
Douglas Gregor
70db54f18d
Eliminate the -emit-module option, which emitted a module by parsing a
...
source file (e.g., a header). Immediately steal this useful option
name for building modules from a module map file.
llvm-svn: 145444
2011-11-29 22:42:06 +00:00
Jim Grosbach
2a9c43649a
Enable some VST1 tests and add a few more.
...
llvm-svn: 145443
2011-11-29 22:40:32 +00:00
Jim Grosbach
98d032fd67
ARM assembly parsing and encoding for three-register VST1.
...
llvm-svn: 145442
2011-11-29 22:38:04 +00:00
Lang Hames
c8c3b403c5
Test isa<FunctionDecl> to exclude objective-C methods. This ensures the following cast will never fail.
...
llvm-svn: 145441
2011-11-29 22:37:13 +00:00
Jakob Stoklund Olesen
bde32d36bb
Make X86::FsFLD0SS / FsFLD0SD real pseudo-instructions.
...
Like V_SET0, these instructions are expanded by ExpandPostRA to xorps /
vxorps so they can participate in execution domain swizzling.
This also makes the AVX variants redundant.
llvm-svn: 145440
2011-11-29 22:27:25 +00:00
Douglas Gregor
fe96ee0307
Escape strings when printing module maps, for silly operating systems
...
that use \ as a separator.
llvm-svn: 145439
2011-11-29 22:27:12 +00:00
Sean Callanan
0712f46f4f
Modified ClangExpressionDeclMap to use existing
...
ValueObjects when creating variables referring to
live data rather than constructing
ValueObjectConstResults.
llvm-svn: 145437
2011-11-29 22:03:21 +00:00
Douglas Gregor
f545f67de3
Switch on-demand module building over to use module maps, always. When
...
we infer the module map, we'll just print the module map to a
temporary file and generate the module using that.
llvm-svn: 145436
2011-11-29 21:59:16 +00:00
Jim Ingham
9c97844404
Missing return in error handling for "source list".
...
llvm-svn: 145435
2011-11-29 21:21:26 +00:00
Jim Ingham
e309e75d5a
Typo in error string.
...
llvm-svn: 145434
2011-11-29 21:16:36 +00:00
Greg Clayton
28041352cb
Patch from Dawn that fixes up linux debugging and a first passs at an
...
implementation of the linux platform.
llvm-svn: 145433
2011-11-29 20:50:10 +00:00
Stepan Dyatkovskiy
31798ef3c0
Potential bug in RewriteLoopBodyWithConditionConstant: use iterator should not be changed inside the uses enumeration loop.
...
llvm-svn: 145432
2011-11-29 20:34:39 +00:00
Daniel Dunbar
e2ed5fb636
lib/int_util: My refactoring to allow shared utility code had a fatal flaw when
...
multiple .a files would end up with duplicate strong definitions. This could
cause link failures in certain scenarios when both definitions got loaded.
- The best solution I see for this (aside from not factoring out the utility
code) is to mark the definitions weak. Better solutions appreciated!
llvm-svn: 145427
2011-11-29 19:44:14 +00:00
Eric Christopher
b2d03a6d00
Update the docs for some of the test-suite configure changes and
...
be more clear about what to do and how to do it.
llvm-svn: 145426
2011-11-29 19:40:56 +00:00
Chad Rosier
46addb9e07
If fast-isel fails, remove dead instructions generated during the failed
...
attempt.
llvm-svn: 145425
2011-11-29 19:40:47 +00:00
Ted Kremenek
cfe4ff9725
Relax RegionStore to allow loads from CodeTextRegions. Apparently you can actually write code that does this. This seems worthy of a checker, but the StoreManager should handle the memory abstraction without crashing. Fixes PR 11450.
...
llvm-svn: 145424
2011-11-29 19:39:29 +00:00
Rafael Espindola
b61cc44265
grammar.
...
llvm-svn: 145423
2011-11-29 19:38:09 +00:00
Andrew Trick
312b97c267
comment.
...
llvm-svn: 145422
2011-11-29 19:33:49 +00:00
Matt Beaumont-Gay
b2339826e6
Merge branch 'yo-dawg-i-herd-u-like-arrays'
...
llvm-svn: 145421
2011-11-29 19:27:11 +00:00
Daniel Dunbar
539d0a8a09
build/CMake: Finish removal of add_llvm_library_dependencies.
...
llvm-svn: 145420
2011-11-29 19:25:30 +00:00
Benjamin Kramer
098c1d9680
Add a link to Bill's blog post.
...
llvm-svn: 145419
2011-11-29 19:24:11 +00:00