Lang Hames
d8bcb2b808
Test case for fix committed in r145441.
...
llvm-svn: 145534
2011-11-30 23:03:25 +00:00
Kostya Serebryany
f318e29102
test asan at -O0
...
llvm-svn: 145532
2011-11-30 22:27:30 +00:00
Kostya Serebryany
d47685769e
make asan work at -O0, clang part. Patch by glider@google.com
...
llvm-svn: 145531
2011-11-30 22:20:21 +00:00
Kostya Serebryany
dc436f95d2
make asan work at -O0, llvm part. Patch by glider@google.com
...
llvm-svn: 145530
2011-11-30 22:19:26 +00:00
Greg Clayton
e54399dbdf
Bumped Xcode project versions for lldb-90 and debugserver-154
...
llvm-svn: 145528
2011-11-30 22:18:41 +00:00
Sean Callanan
09ab4b777c
Added support to the Objective-C language runtime
...
to find Objective-C class types by looking in the
symbol tables for the individual object files.
I did this as follows:
- I added code to SymbolFileSymtab that vends
Clang types for symbols matching the pattern
"_OBJC_CLASS_$_NSMyClassName," making them
appear as Objective-C classes. This only occurs
in modules that do not have debug information,
since otherwise SymbolFileDWARF would be in
charge of looking up types.
- I made a new SymbolVendor subclass for the
Apple Objective-C runtime that is in charge of
making global lookups of Objective-C types. It
currently just sends out type lookup requests to
the appropriate SymbolFiles, but in the future we
will probably extend it to query the runtime more
completely.
I also modified a testcase whose behavior is changed
by the fact that we now actually return an Objective-C
type for __NSCFString.
llvm-svn: 145526
2011-11-30 22:11:59 +00:00
Jan Sjödin
9430e284a9
Support for encoding all FMA4 instructions and tablegen patterns for all
...
remaining FMA4 instructions and intrinsics with tests.
llvm-svn: 145525
2011-11-30 22:09:42 +00:00
Ted Kremenek
f551f326fc
Per an offline conversation with John McCall, have StmtPrinter actually print out the source expression for OpaqueValueExpr.
...
llvm-svn: 145524
2011-11-30 22:08:08 +00:00
Eli Friedman
6cff9df298
Make GlobalMerge honor the preferred alignment on globals without an explicitly specified alignment.
...
<rdar://problem/10497732>.
llvm-svn: 145523
2011-11-30 21:54:15 +00:00
Bill Wendling
ad8b58b2ac
More cleanups. No content change.
...
llvm-svn: 145522
2011-11-30 21:52:43 +00:00
Bill Wendling
b6c2220600
Minor cleanup. No content change.
...
llvm-svn: 145521
2011-11-30 21:43:43 +00:00
Ted Kremenek
7f770032c7
Don't run -Wunreachable-code on template instantiations. Different instantiations may produce different unreachable code results, and it is very difficult for us to prove that ALL instantiations of a template have specific unreachable code. If we come up with a better solution, then we can revisit this, but this approach will at least greatly reduce the noise of this warning for code that makes use of templates.
...
llvm-svn: 145520
2011-11-30 21:22:09 +00:00
Bob Wilson
a0c69014f8
Remove the install-clang-c makefile target.
...
When I did this before it broke a buildbot that was testing that target, but
we've removed that buildbot now.
llvm-svn: 145519
2011-11-30 21:06:12 +00:00
Bill Wendling
3eb84cc75b
Remove an XXX which hasn't been fixed yet. It's too late now.
...
llvm-svn: 145518
2011-11-30 20:53:52 +00:00
Matt Beaumont-Gay
23c30b90e3
Remove unused variable
...
llvm-svn: 145517
2011-11-30 19:53:11 +00:00
Johnny Chen
442b57c64d
Add processing of '-help' option.
...
llvm-svn: 145516
2011-11-30 19:46:37 +00:00
Matt Beaumont-Gay
eb44edad6d
Don't collide loop variable names (to appease GCC)
...
llvm-svn: 145515
2011-11-30 19:41:21 +00:00
Douglas Gregor
c3312fab71
Note that we'll need to handle __include_macros specially in the module loader
...
llvm-svn: 145514
2011-11-30 19:39:08 +00:00
Jim Grosbach
7d8517b1d4
Add some tests for all-lanes VLD1 parsing.
...
llvm-svn: 145512
2011-11-30 19:37:38 +00:00
Greg Clayton
1bba2bedde
Make sure that we print out function or symbol information. If we disassembled
...
a symbol, were weren't showing the "<module>`<symbol>" header.
llvm-svn: 145511
2011-11-30 19:36:42 +00:00
Jim Grosbach
a68c9a847e
ARM parsing for VLD1 all lanes, with writeback.
...
llvm-svn: 145510
2011-11-30 19:35:44 +00:00
Akira Hatanaka
5e9dde3782
Get the -march argument based on the target MIPS architecture or cpu and pass
...
it to GNU assembler. In addition, change function getMipsArchFromCPU() so that
it can be reused in ConstructJob().
Patch by Simon Atanasyan.
llvm-svn: 145509
2011-11-30 19:31:38 +00:00
Chad Rosier
738da252ab
Add a few functions to TargetLibraryInfo.
...
llvm-svn: 145508
2011-11-30 19:19:00 +00:00
Johnny Chen
d0cff1ea9b
I broke the test suite (4 failures) with r145459 check-in.
...
Fix the breakage by properly setting the result status before returning.
llvm-svn: 145507
2011-11-30 19:09:20 +00:00
Benjamin Kramer
9ce686e25f
Update CMake build.
...
llvm-svn: 145506
2011-11-30 18:56:24 +00:00
Kostya Serebryany
15dd3f2500
Refactor shadow poisoning done by asan-rt, no funtionality changes; patch by samsonov@google.com
...
llvm-svn: 145505
2011-11-30 18:50:23 +00:00
Jim Grosbach
3ecf976ca9
ARM parsing for VLD1 two register all lanes, no writeback.
...
llvm-svn: 145504
2011-11-30 18:21:25 +00:00
Douglas Gregor
11729f01f9
Move the module auto-import logic after the logic that allows a
...
callback client to suggest an alternative search path and after we
complain when the included file can't be found. The former can't be
tested in isolation, the latter doesn't actually matter (because we
won't make a module suggestion if no header is available). However,
the flow is better this way.
llvm-svn: 145502
2011-11-30 18:12:06 +00:00
Douglas Gregor
4401fbee56
Trivial indentation fix for the code I just committed
...
llvm-svn: 145501
2011-11-30 18:03:26 +00:00
Douglas Gregor
41e115a81a
Introduce an opt-in warning indicating when the compiler is treating
...
an #include/#import as a module import.
llvm-svn: 145500
2011-11-30 18:02:36 +00:00
Nadav Rotem
0a1801015c
Add test arch to make it pass on non x86 targets
...
llvm-svn: 145498
2011-11-30 17:34:28 +00:00
Douglas Gregor
6902197407
Implement (de-)serialization of the description of a module and its
...
submodules. This information will eventually be used for name hiding
when dealing with submodules. For now, we only use it to ensure that
the module "key" returned when loading a module will always be a
module (rather than occasionally being a FileEntry).
llvm-svn: 145497
2011-11-30 17:33:56 +00:00
Kostya Serebryany
9d1eee9e2a
fix asan-rt build on Mac. Patch by glider@google.com
...
llvm-svn: 145496
2011-11-30 17:33:13 +00:00
Anna Zaks
92297f9dcc
[analyzer] Add checker callback documentation.
...
llvm-svn: 145495
2011-11-30 17:12:52 +00:00
Benjamin Kramer
5feb3dab79
X86: Turns out bulldozer also supports sse42 and lzcnt.
...
While at it remove the barcelona/instanbul/shanghai subtargets, they're
unsupported by GCC and look pretty broken.
llvm-svn: 145494
2011-11-30 15:48:16 +00:00
Benjamin Kramer
981f32327d
X86: Add subtargets for AMD's bulldozer.
...
llvm-svn: 145493
2011-11-30 15:27:46 +00:00
Benjamin Kramer
382eaadaa5
Use raw_ostream::indent.
...
llvm-svn: 145492
2011-11-30 15:07:30 +00:00
Douglas Gregor
4f3fa713bf
Switch the module map printer over to
...
raw_ostream::write_escaped. Thanks, Benjamin!
llvm-svn: 145491
2011-11-30 15:00:49 +00:00
Douglas Gregor
36b7f115e4
Add preprocessor-only test for submodule imports
...
llvm-svn: 145490
2011-11-30 14:57:39 +00:00
Nadav Rotem
66427bcce9
Add a tripple to the test
...
llvm-svn: 145489
2011-11-30 11:20:56 +00:00
Nadav Rotem
96923cc2bb
X86: PerformOrCombine introduced a vselect node with a wrong order of operands. This bug was introduced when a dedicated blend sdnode was replaced with the vselect node (in 139479).
...
llvm-svn: 145488
2011-11-30 10:13:37 +00:00
Craig Topper
c4977ba413
Add instruction selection support for AVX2 horizontal add/sub instructions.
...
llvm-svn: 145487
2011-11-30 09:10:50 +00:00
Duncan Sands
e9adf5c860
Mention that -O4 does result in more optimization when used with
...
-fplugin-arg-dragonegg-enable-gcc-optzns, though it usually isn't
a win.
llvm-svn: 145486
2011-11-30 08:46:05 +00:00
Craig Topper
0a672eaf9e
Merge VPERM2F128/VPERM2I128 ISD node types.
...
llvm-svn: 145485
2011-11-30 07:47:51 +00:00
Andrew Trick
613c67e475
Better test case found in duplicate PR10570.
...
llvm-svn: 145484
2011-11-30 06:26:42 +00:00
Craig Topper
bafd224c8b
Merge decoding of VPERMILPD and VPERMILPS shuffle masks. Merge X86ISD node type for VPERMILPD/PS. Add instruction selection support for VINSERTI128/VEXTRACTI128.
...
llvm-svn: 145483
2011-11-30 06:25:25 +00:00
Andrew Trick
ceafa2c746
LSR: handle the expansion of phi operands that use postinc forms of the IV.
...
Fixes PR11431: SCEVExpander::expandAddRecExprLiterally(const llvm::SCEVAddRecExpr*): Assertion `(!isa<Instruction>(Result) || SE.DT->dominates(cast<Instruction>(Result), Builder.GetInsertPoint())) && "postinc expansion does not dominate use"' failed.
llvm-svn: 145482
2011-11-30 06:07:54 +00:00
John McCall
e929082806
Fix the instantiation of pseudo-object expressions. This is a
...
really bad way to go about this, but I'm not sure there's a better
choice without substantial changes to TreeTransform --- most
notably, preserving implicit semantic nodes instead of discarding
and rebuilding them.
llvm-svn: 145480
2011-11-30 04:42:31 +00:00
Douglas Gregor
f7a700fd01
When writing a module file, pass the module through to the AST
...
writer. No functionality change.
llvm-svn: 145479
2011-11-30 04:39:39 +00:00
Douglas Gregor
1805b8a42f
Teach the preprocessor how to handle module import declarations that
...
involve submodules (e.g., importing std.vector), rather than always
importing the top-level module.
llvm-svn: 145478
2011-11-30 04:26:53 +00:00