platform/upstream/llvm.git
12 years agoSet TLSSupported to false on Haiku.
Benjamin Kramer [Thu, 8 Nov 2012 12:59:15 +0000 (12:59 +0000)]
Set TLSSupported to false on Haiku.

Haiku does not support this (yet). Leaving it set to true leads to
configure scripts detecting __thread being available and Clang emitting
code for it, resulting in binaries the runtime_loader will refuse to
load.

Patch by Jonathan Schleifer!

llvm-svn: 167576

12 years agotsan: use GORACE env for options for Go
Dmitry Vyukov [Thu, 8 Nov 2012 11:32:40 +0000 (11:32 +0000)]
tsan: use GORACE env for options for Go

llvm-svn: 167575

12 years agoRecommit modified r167540.
Amara Emerson [Thu, 8 Nov 2012 09:51:45 +0000 (09:51 +0000)]
Recommit modified r167540.

Improve ARM build attribute emission for architectures types.
This also changes the default architecture emitted for a generic CPU to "v7".

llvm-svn: 167574

12 years agoAdd support of RTM from TSX extension
Michael Liao [Thu, 8 Nov 2012 07:28:54 +0000 (07:28 +0000)]
Add support of RTM from TSX extension

- Add RTM code generation support throught 3 X86 intrinsics:
  xbegin()/xend() to start/end a transaction region, and xabort() to abort a
  tranaction region

llvm-svn: 167573

12 years agoDriver/Darwin: The -arch argument values aren't exactly the arch names from a
Daniel Dunbar [Thu, 8 Nov 2012 03:38:26 +0000 (03:38 +0000)]
Driver/Darwin: The -arch argument values aren't exactly the arch names from a
triple.

 - Translate the special case of powerpc to its expected -arch name.

llvm-svn: 167571

12 years agoAdding support for loading the scripting resource as part of a framework, lacking...
Enrico Granata [Thu, 8 Nov 2012 02:44:10 +0000 (02:44 +0000)]
Adding support for loading the scripting resource as part of a framework, lacking the dSYM bundle, or if the bundle has no Pythonic resources whatsoever
Solving an issue where "command script import" would fail to pick the file indicated by the user as a result of something with the same name being in an earlier position in sys.path

llvm-svn: 167570

12 years ago<rdar://problem/12586350>
Enrico Granata [Thu, 8 Nov 2012 02:22:02 +0000 (02:22 +0000)]
<rdar://problem/12586350>

This commit does three things:
(a) introduces a new notification model for adding/removing/changing modules to a ModuleList, and applies it to the Target's ModuleList, so that we make sure to always trigger the right set of actions
whenever modules come and go in a target. Certain spots in the code still need to "manually" notify the Target for several reasons, so this is a work in progress
(b) adds a new capability to the Platforms: locating a scripting resources associated to a module. A scripting resource is a Python file that can load commands, formatters, ... and any other action
of interest corresponding to the loading of a module. At the moment, this is only implemented on Mac OS X and only for files inside .dSYM bundles - the next step is going to be letting
the frameworks themselves hold their scripting resources. Implementors of platforms for other systems are free to implement "the right thing" for their own worlds
(c) hooking up items (a) and (b) so that targets auto-load the scripting resources as the corresponding modules get loaded in a target. This has a few caveats at the moment:
 - the user needs to manually add the .py file to the dSYM (soon, it will also work in the framework itself)
 - if two modules with the same name show up during the lifetime of an LLDB session, the second one won't be able to load its scripting resource, but will otherwise work just fine

llvm-svn: 167569

12 years agoinstcombine: Migrate strspn optimizations
Meador Inge [Thu, 8 Nov 2012 01:33:50 +0000 (01:33 +0000)]
instcombine: Migrate strspn optimizations

This patch migrates the strspn optimizations from the simplify-libcalls
pass into the instcombine library call simplifier.

llvm-svn: 167568

12 years agoRip out a bunch of code for invoking gcc from clang.
Bob Wilson [Thu, 8 Nov 2012 01:03:34 +0000 (01:03 +0000)]
Rip out a bunch of code for invoking gcc from clang.

llvm-svn: 167567

12 years agoRemove code to fall back to llvm-gcc for i386 kexts.
Bob Wilson [Thu, 8 Nov 2012 01:03:29 +0000 (01:03 +0000)]
Remove code to fall back to llvm-gcc for i386 kexts.

More cleanups to follow in separate commits....

llvm-svn: 167566

12 years agoPR14284: crash on ext-valid returning NULL from a void function
David Blaikie [Thu, 8 Nov 2012 00:41:20 +0000 (00:41 +0000)]
PR14284: crash on ext-valid returning NULL from a void function

llvm-svn: 167565

12 years agoFix a crasher in
Jason Molenda [Thu, 8 Nov 2012 00:19:28 +0000 (00:19 +0000)]
Fix a crasher in
DynamicLoaderDarwinKernel::OSKextLoadedKextSummary::LoadImageUsingMemoryModule
where it assumed that a kernel had been found in memory, when that may not be
the case when we're attaching to a device early in the boot process.
<rdar://problem/12638140>

llvm-svn: 167564

12 years agoAdded a posix_spawn based launchd plist for always using posix_spawn to launch programs.
Greg Clayton [Thu, 8 Nov 2012 00:06:59 +0000 (00:06 +0000)]
Added a posix_spawn based launchd plist for always using posix_spawn to launch programs.

llvm-svn: 167563

12 years agoWhen deciding whether to convert an array construction loop into a memcpy, look
Richard Smith [Wed, 7 Nov 2012 23:56:21 +0000 (23:56 +0000)]
When deciding whether to convert an array construction loop into a memcpy, look
at whether the *selected* constructor would be trivial rather than considering
whether the array's element type has *any* non-trivial constructors of the
relevant kind.

llvm-svn: 167562

12 years agoForce C89 for c-index-test.c
Dmitri Gribenko [Wed, 7 Nov 2012 23:52:25 +0000 (23:52 +0000)]
Force C89 for c-index-test.c

MSVC supports only C89, so it is important to keep c-index-test.c
buildable with C89.  However, Clang defaults to C99, so while building
Clang with Clang one can introduce C99 constructs into c-index-test.c
without noticing.

Thanks to Nakamura Takumi for helping with MSVC bits.

llvm-svn: 167561

12 years agoFix up comment typo and 80-col.
Eric Christopher [Wed, 7 Nov 2012 23:38:51 +0000 (23:38 +0000)]
Fix up comment typo and 80-col.

llvm-svn: 167560

12 years ago[Driver] Fix -Wp,-MMD pr13959
Michael J. Spencer [Wed, 7 Nov 2012 23:37:14 +0000 (23:37 +0000)]
[Driver] Fix -Wp,-MMD pr13959

llvm-svn: 167559

12 years agoAdd a relocation visitor to lib object. This works via caching relocated
Eric Christopher [Wed, 7 Nov 2012 23:22:07 +0000 (23:22 +0000)]
Add a relocation visitor to lib object. This works via caching relocated
values in a map that can be passed to consumers. Add a testcase that
ensures this works for llvm-dwarfdump.

llvm-svn: 167558

12 years ago<rdar://problem/12645617>
Greg Clayton [Wed, 7 Nov 2012 23:09:32 +0000 (23:09 +0000)]
<rdar://problem/12645617>
<rdar://problem/12153915>  (partial fix)

Remove an assert and place an error message instead so we don't crash when we run into a type tag that we don't recognize. We will now emit a warning so that hopefully we can get a bug report that has example code that shows what we are missing.

Also fixed a case when trying to unique one type to another where we would confuse concrete instances of methods with their definitions and end up not correctly registering the types.

llvm-svn: 167557

12 years agoOnly do switch-to-lookup table transformation when TargetTransformInfo
Hans Wennborg [Wed, 7 Nov 2012 21:35:12 +0000 (21:35 +0000)]
Only do switch-to-lookup table transformation when TargetTransformInfo
is available.

llvm-svn: 167552

12 years agoReduce nesting. No functionality change.
Nico Weber [Wed, 7 Nov 2012 21:31:36 +0000 (21:31 +0000)]
Reduce nesting. No functionality change.

llvm-svn: 167551

12 years agoWhen template deduction fails on a derived class, try a template deduction on
Richard Trieu [Wed, 7 Nov 2012 21:17:13 +0000 (21:17 +0000)]
When template deduction fails on a derived class, try a template deduction on
the base class.  If the base class deduction succeeds, use those results.  If
it fails, keep using the results from the derived class template deduction.

This prevents an assertion later where the type of deduction failure doesn't
match up with the template deduction info.

llvm-svn: 167550

12 years agoobjective-C blocks: bring back the CharUnit patch for
Fariborz Jahanian [Wed, 7 Nov 2012 20:00:32 +0000 (20:00 +0000)]
objective-C blocks: bring back the CharUnit patch for
captured block variable layout meta-data. No intended change
in functionality.

llvm-svn: 167549

12 years ago[mips] Custom-lower ISD::FRAME_TO_ARGS_OFFSET node.
Akira Hatanaka [Wed, 7 Nov 2012 19:10:58 +0000 (19:10 +0000)]
[mips] Custom-lower ISD::FRAME_TO_ARGS_OFFSET node.

Patch by Sasa Stankovic.

llvm-svn: 167548

12 years agoPR12713 - crash on invalid due to unmatched parens in decltype
David Blaikie [Wed, 7 Nov 2012 19:08:05 +0000 (19:08 +0000)]
PR12713 - crash on invalid due to unmatched parens in decltype

llvm-svn: 167547

12 years agoDelete MipsFunctionInfo::NextStackOffset. No functionality change intended.
Akira Hatanaka [Wed, 7 Nov 2012 19:04:26 +0000 (19:04 +0000)]
Delete MipsFunctionInfo::NextStackOffset. No functionality change intended.

llvm-svn: 167546

12 years agoRevert r167540 until regression tests are updated.
Amara Emerson [Wed, 7 Nov 2012 18:57:14 +0000 (18:57 +0000)]
Revert r167540 until regression tests are updated.

llvm-svn: 167545

12 years agoRemove accidental commit.
Bill Wendling [Wed, 7 Nov 2012 18:39:32 +0000 (18:39 +0000)]
Remove accidental commit.

llvm-svn: 167544

12 years agoFix bad test IR in switch_to_lookup_table.ll
Hans Wennborg [Wed, 7 Nov 2012 18:38:24 +0000 (18:38 +0000)]
Fix bad test IR in switch_to_lookup_table.ll

llvm-svn: 167543

12 years agoobjective-C modern translator. Start the line
Fariborz Jahanian [Wed, 7 Nov 2012 18:15:53 +0000 (18:15 +0000)]
objective-C modern translator. Start the line
directive on a new line.

llvm-svn: 167542

12 years agoImprove ARM build attribute emission for architectures types.
Amara Emerson [Wed, 7 Nov 2012 18:01:03 +0000 (18:01 +0000)]
Improve ARM build attribute emission for architectures types.

This also changes the default architecture emitted for a generic CPU to "v7".

llvm-svn: 167540

12 years agoWhen loading a module fails because it is out of date, rebuild that
Douglas Gregor [Wed, 7 Nov 2012 17:46:15 +0000 (17:46 +0000)]
When loading a module fails because it is out of date, rebuild that
module in place. <rdar://problem/10138913>

llvm-svn: 167539

12 years agoTest for source location range of new expressions fixed in r167507.
David Blaikie [Wed, 7 Nov 2012 17:17:07 +0000 (17:17 +0000)]
Test for source location range of new expressions fixed in r167507.

Patch by Philip Craig.

llvm-svn: 167538

12 years ago[analyzer] Check that the argument to CFMakeCollectable is non-NULL.
Jordan Rose [Wed, 7 Nov 2012 17:12:37 +0000 (17:12 +0000)]
[analyzer] Check that the argument to CFMakeCollectable is non-NULL.

Patch by Sean McBride!

llvm-svn: 167537

12 years agofix typo PR1476
Pawel Wodnicki [Wed, 7 Nov 2012 17:00:18 +0000 (17:00 +0000)]
fix typo PR1476

llvm-svn: 167536

12 years agofix for PR1476
Pawel Wodnicki [Wed, 7 Nov 2012 16:56:52 +0000 (16:56 +0000)]
fix for PR1476

llvm-svn: 167535

12 years agoFix the Objective-C exception rethrow from cleanups (GNU runtimes). Note that
David Chisnall [Wed, 7 Nov 2012 16:50:40 +0000 (16:50 +0000)]
Fix the Objective-C exception rethrow from cleanups (GNU runtimes).  Note that
a bug in the inliner still causes the wrong thing to happen at -O2 and above
(PR14116).

llvm-svn: 167534

12 years agotsan: do not sleep at exit if there are no other threads
Dmitry Vyukov [Wed, 7 Nov 2012 16:41:57 +0000 (16:41 +0000)]
tsan: do not sleep at exit if there are no other threads

llvm-svn: 167533

12 years agotsan: add flag to suppress all reports (useful for benchmarking)
Dmitry Vyukov [Wed, 7 Nov 2012 16:14:12 +0000 (16:14 +0000)]
tsan: add flag to suppress all reports (useful for benchmarking)

llvm-svn: 167532

12 years agotsan: more precise handling of finalizers
Dmitry Vyukov [Wed, 7 Nov 2012 15:08:20 +0000 (15:08 +0000)]
tsan: more precise handling of finalizers

llvm-svn: 167530

12 years ago[asan] fix bug 14277 (asan needs to fail with fata error if an __asan interface funct...
Kostya Serebryany [Wed, 7 Nov 2012 12:42:18 +0000 (12:42 +0000)]
[asan] fix bug 14277 (asan needs to fail with fata error if an __asan interface function is being redefined. Before this fix asan asserts)

llvm-svn: 167529

12 years agomisched: Heuristics based on the machine model.
Andrew Trick [Wed, 7 Nov 2012 07:05:09 +0000 (07:05 +0000)]
misched: Heuristics based on the machine model.

misched is disabled by default. With -enable-misched, these heuristics
balance the schedule to simultaneously avoid saturating processor
resources, expose ILP, and minimize register pressure. I've been
analyzing the performance of these heuristics on everything in the
llvm test suite in addition to a few other benchmarks. I would like
each heuristic check to be verified by a unit test, but I'm still
trying to figure out the best way to do that. The heuristics are still
in considerable flux, but as they are refined we should be rigorous
about unit testing the improvements.

llvm-svn: 167527

12 years agomisched: handle on-the-fly regpressure queries better for 2-addr
Andrew Trick [Wed, 7 Nov 2012 07:05:05 +0000 (07:05 +0000)]
misched: handle on-the-fly regpressure queries better for 2-addr
instructions without relying on liveintervals.

llvm-svn: 167526

12 years agoAdd comment describing what's going on here.
Bill Wendling [Wed, 7 Nov 2012 05:19:04 +0000 (05:19 +0000)]
Add comment describing what's going on here.

llvm-svn: 167525

12 years agoWhen we're updating the subprogram scope DIE, we want to determine if we're
Bill Wendling [Wed, 7 Nov 2012 04:42:18 +0000 (04:42 +0000)]
When we're updating the subprogram scope DIE, we want to determine if we're
updating an abstract DIE or not. If we are, then we use that. Its children will
be added on later, as well as the object pointer attribute. Otherwise, this
function may be called with a concrete DIE twice and adding the children and
object pointer attribute to it twice.
<rdar://problem/12401423&12600340>

llvm-svn: 167524

12 years ago[analyzer] Add some examples for the common REGISTER_*_WITH_PROGRAMSTATEs.
Jordan Rose [Wed, 7 Nov 2012 02:35:33 +0000 (02:35 +0000)]
[analyzer] Add some examples for the common REGISTER_*_WITH_PROGRAMSTATEs.

No functionality change (doc comments only).

llvm-svn: 167523

12 years ago[analyzer] Enhance docs for checker callbacks (esp. processRegionChanges).
Jordan Rose [Wed, 7 Nov 2012 02:35:02 +0000 (02:35 +0000)]
[analyzer] Enhance docs for checker callbacks (esp. processRegionChanges).

No functionality change; this checker is only used for documentation.

llvm-svn: 167522

12 years agoFix a broken sentence
Eli Bendersky [Wed, 7 Nov 2012 01:52:41 +0000 (01:52 +0000)]
Fix a broken sentence

llvm-svn: 167521

12 years agoWhen we were calculating the max byte size of ONE instruction to handle something...
Jim Ingham [Wed, 7 Nov 2012 01:52:04 +0000 (01:52 +0000)]
When we were calculating the max byte size of ONE instruction to handle something like

x/9i

we actually calculated the size of 9 instructions.  Then we multiplied it by the count again
to get the total amount we should fetch, so we thought 9 x86_64 instructions took over 1K
to fetch...

<rdar://problem/12649027>

llvm-svn: 167520

12 years agoAdd -Wmismatched-return-types flag for existing warning on conflicting return types.
Ted Kremenek [Wed, 7 Nov 2012 01:43:44 +0000 (01:43 +0000)]
Add -Wmismatched-return-types flag for existing warning on conflicting return types.

llvm-svn: 167518

12 years agoDocument the -input-file option of FileCheck
Eli Bendersky [Wed, 7 Nov 2012 01:41:30 +0000 (01:41 +0000)]
Document the -input-file option of FileCheck

llvm-svn: 167517

12 years agoLogging improvements for the Objective-C runtime.
Sean Callanan [Wed, 7 Nov 2012 01:27:50 +0000 (01:27 +0000)]
Logging improvements for the Objective-C runtime.
Also fixed a bug where the Objective-C runtime
would not properly report that it found a class if
(a) it had to build the ObjCInterfaceDecl for the
class and (b) logging was enabled.

<rdar://problem/12641180>

llvm-svn: 167516

12 years agoAdd -Wmismatched-parameter-types flag for existing warning on conflicting parameter...
Ted Kremenek [Wed, 7 Nov 2012 01:25:56 +0000 (01:25 +0000)]
Add -Wmismatched-parameter-types flag for existing warning on conflicting parameter types.

llvm-svn: 167515

12 years agoPR11851 (and duplicates): Whenever a constexpr function is referenced,
Richard Smith [Wed, 7 Nov 2012 01:14:25 +0000 (01:14 +0000)]
PR11851 (and duplicates): Whenever a constexpr function is referenced,
instantiate it if it can be instantiated and implicitly define it if it can be
implicitly defined. This matches g++'s approach. Remove some cases from
SemaOverload which were marking functions as referenced when just planning how
overload resolution would proceed; such cases are not actually references.

llvm-svn: 167514

12 years agomodern ObjC translator. Insert line number for @synchronized statements.
Fariborz Jahanian [Wed, 7 Nov 2012 00:43:05 +0000 (00:43 +0000)]
modern ObjC translator. Insert line number for @synchronized statements.

llvm-svn: 167511

12 years agoAdd missing check to warning for packed attribute. PR14259.
Eli Friedman [Wed, 7 Nov 2012 00:35:20 +0000 (00:35 +0000)]
Add missing check to warning for packed attribute.  PR14259.

llvm-svn: 167510

12 years agoCreate helper functions in StmtDumper for outputting the indentation, newlines, and...
Manuel Klimek [Wed, 7 Nov 2012 00:33:12 +0000 (00:33 +0000)]
Create helper functions in StmtDumper for outputting the indentation, newlines, and brackets.

This is preparation for adding Decl dumping.

Patch by Philip Craig.

llvm-svn: 167509

12 years ago[arm fast-isel] Appease the machine verifier by using the proper register
Chad Rosier [Wed, 7 Nov 2012 00:13:01 +0000 (00:13 +0000)]
[arm fast-isel] Appease the machine verifier by using the proper register
classes.  For my test case the number of errors drop from 356 to 21.
Part of rdar://12594152

llvm-svn: 167508

12 years agoPR13552: Fix the end location of a CXXNewExpr.
David Blaikie [Wed, 7 Nov 2012 00:12:38 +0000 (00:12 +0000)]
PR13552: Fix the end location of a CXXNewExpr.

Spent longer than reasonable looking for a nice way to test this & decided to
give up for now. Open to suggestions/requests. Richard Smith suggested adding
something to ASTMatchers but it wasn't readily apparent how to test this with
that.

llvm-svn: 167507

12 years agoFix assertion failure with auto and nested initializer list; PR14272.
Eli Friedman [Tue, 6 Nov 2012 23:56:42 +0000 (23:56 +0000)]
Fix assertion failure with auto and nested initializer list; PR14272.

llvm-svn: 167506

12 years agoSimplify code. No functionality change.
Jakub Staszak [Tue, 6 Nov 2012 23:52:19 +0000 (23:52 +0000)]
Simplify code. No functionality change.

llvm-svn: 167505

12 years agoTease out the routine that reads the control block of an AST file from
Douglas Gregor [Tue, 6 Nov 2012 23:40:54 +0000 (23:40 +0000)]
Tease out the routine that reads the control block of an AST file from
the validation of an AST file against a specific set of options.

llvm-svn: 167504

12 years agoPut something sane in the DWARF offset field for bitfield ObjC ivars.
Eli Friedman [Tue, 6 Nov 2012 23:40:48 +0000 (23:40 +0000)]
Put something sane in the DWARF offset field for bitfield ObjC ivars.
This is useful because unnamed bitfields can have effects on the
offsets which are not otherwise reflected in the DWARF information.

<rdar://problem/12629719>

llvm-svn: 167503

12 years ago<rdar://problem/12647273>
Greg Clayton [Tue, 6 Nov 2012 23:36:26 +0000 (23:36 +0000)]
<rdar://problem/12647273>

Added the ability to get the full process list when using the --applist option in debugserver.

llvm-svn: 167502

12 years agoMake the helper functions static. No functional change.
Nadav Rotem [Tue, 6 Nov 2012 23:36:00 +0000 (23:36 +0000)]
Make the helper functions static. No functional change.

llvm-svn: 167501

12 years agoobjective-C modern rewriter. Insert line numbers in
Fariborz Jahanian [Tue, 6 Nov 2012 23:25:49 +0000 (23:25 +0000)]
objective-C modern rewriter. Insert line numbers in
translated code where new code makes the lines be off.
This is wip.

llvm-svn: 167500

12 years agoMark the Int_eh_sjlj_dispatchsetup pseudo instruction as clobbering all
Chad Rosier [Tue, 6 Nov 2012 23:05:24 +0000 (23:05 +0000)]
Mark the Int_eh_sjlj_dispatchsetup pseudo instruction as clobbering all
registers.  Previously, the register we being marked as implicitly defined, but
not killed.  In some cases this would cause the register scavenger to spill a
dead register.

Also, use an empty register mask to simplify the logic and to reduce the memory
footprint.
rdar://12592448

llvm-svn: 167499

12 years ago[regallocfast] Make sure the MachineRegisterInfo is aware of clobbers from a
Chad Rosier [Tue, 6 Nov 2012 22:52:42 +0000 (22:52 +0000)]
[regallocfast] Make sure the MachineRegisterInfo is aware of clobbers from a
register masks.  This is an obvious and necessary fix for a soon to be committed
patch.  No test case possible at this time.  Reviewed by Jakob.

llvm-svn: 167498

12 years agoRewriteModernObjC.cpp: Use Lexer::Stringify() on the file name of #line directive...
NAKAMURA Takumi [Tue, 6 Nov 2012 22:45:31 +0000 (22:45 +0000)]
RewriteModernObjC.cpp: Use Lexer::Stringify() on the file name of #line directive to escape Win32 path separator '\\'.

llvm-svn: 167497

12 years agoImplement codegen for init_priority attribute properly - make sure it
Anton Korobeynikov [Tue, 6 Nov 2012 22:44:45 +0000 (22:44 +0000)]
Implement codegen for init_priority attribute properly - make sure it
works between the modules.
No functionality change on Darwin/Windows.
This fixes PR11480.

llvm-svn: 167496

12 years agoBack out 167431+167437+167487; I didn't realize how incomplete our test
Eli Friedman [Tue, 6 Nov 2012 22:15:52 +0000 (22:15 +0000)]
Back out 167431+167437+167487; I didn't realize how incomplete our test
coverage of this code is.

llvm-svn: 167495

12 years agoclang/lib/Driver/Tools.cpp: Fix abuse of StringRef.
NAKAMURA Takumi [Tue, 6 Nov 2012 22:02:00 +0000 (22:02 +0000)]
clang/lib/Driver/Tools.cpp: Fix abuse of StringRef.

llvm-svn: 167494

12 years agoDimitry Andric: Silence some miscellaneous warnings.
Howard Hinnant [Tue, 6 Nov 2012 21:55:44 +0000 (21:55 +0000)]
Dimitry Andric:  Silence some miscellaneous warnings.

llvm-svn: 167493

12 years agoDimitry Andric: Silence some warnings in <locale>.
Howard Hinnant [Tue, 6 Nov 2012 21:48:33 +0000 (21:48 +0000)]
Dimitry Andric:  Silence some warnings in <locale>.

llvm-svn: 167492

12 years agoEnable the tuple interface of pair in C++03 mode.
Howard Hinnant [Tue, 6 Nov 2012 21:42:45 +0000 (21:42 +0000)]
Enable the tuple interface of pair in C++03 mode.

llvm-svn: 167491

12 years agoUpdate instructions for building and using libc++ on Mac OS
Howard Hinnant [Tue, 6 Nov 2012 21:31:37 +0000 (21:31 +0000)]
Update instructions for building and using libc++ on Mac OS

llvm-svn: 167490

12 years ago[libclang] Add some comments about the version constants for the libclang API.
Argyrios Kyrtzidis [Tue, 6 Nov 2012 21:21:49 +0000 (21:21 +0000)]
[libclang] Add some comments about the version constants for the libclang API.

llvm-svn: 167489

12 years agoCostModel: add another known vector trunc optimization.
Nadav Rotem [Tue, 6 Nov 2012 21:17:17 +0000 (21:17 +0000)]
CostModel: add another known vector trunc optimization.

llvm-svn: 167488

12 years agoFix a silly mistake in r167437.
Eli Friedman [Tue, 6 Nov 2012 21:10:22 +0000 (21:10 +0000)]
Fix a silly mistake in r167437.

llvm-svn: 167487

12 years agoProvide a way to disable use of extern templates in libc++. This is intended for...
Howard Hinnant [Tue, 6 Nov 2012 21:08:48 +0000 (21:08 +0000)]
Provide a way to disable use of extern templates in libc++.  This is intended for the clients of libc++, not the libc++ build.  The dylib should always contain the extern templates.  To disable the client needs to put -D'_LIBCPP_EXTERN_TEMPLATE(...)=' on the command line.

llvm-svn: 167486

12 years agoclang/test/Driver/fsanitize.c: Speculative fix to improve test on win32, not to mix...
NAKAMURA Takumi [Tue, 6 Nov 2012 20:44:29 +0000 (20:44 +0000)]
clang/test/Driver/fsanitize.c: Speculative fix to improve test on win32, not to mix emissions into stdout.

llvm-svn: 167485

12 years ago[c-index-test] When building with BUILD_CLANG_ONLY=YES, include c-index-test.
Argyrios Kyrtzidis [Tue, 6 Nov 2012 19:54:46 +0000 (19:54 +0000)]
[c-index-test] When building with BUILD_CLANG_ONLY=YES, include c-index-test.
It is part of libclang and has other uses besides running the clang tests.

llvm-svn: 167484

12 years agoRemove C++11-isms I just introduced in r167482
Douglas Gregor [Tue, 6 Nov 2012 19:41:11 +0000 (19:41 +0000)]
Remove C++11-isms I just introduced in r167482

llvm-svn: 167483

12 years agoIntroduce inferred framework modules into the module map file,
Douglas Gregor [Tue, 6 Nov 2012 19:39:40 +0000 (19:39 +0000)]
Introduce inferred framework modules into the module map file,
allowing a module map to be placed one level above the '.framework'
directories to specify that all .frameworks within that directory can
be inferred as framework modules. One can also specifically exclude
frameworks known not to work.

This makes explicit (and more restricted) behavior modules have had
"forever", where *any* .framework was assumed to be able to be built
as a module. That's not necessarily true, so we white-list directories
(with exclusions) when those directories have been audited.

llvm-svn: 167482

12 years agoTeach Clang parser to reject C++11 attributes that appertain to declaration specifiers.
Michael Han [Tue, 6 Nov 2012 19:34:54 +0000 (19:34 +0000)]
Teach Clang parser to reject C++11 attributes that appertain to declaration specifiers.

We don't support any C++11 attributes that appertain to declaration specifiers so reject
the attributes in parser until we support them; this also conforms to what g++ 4.8 is doing.

llvm-svn: 167481

12 years agoCost Model: add tables for some avx type-conversion hacks.
Nadav Rotem [Tue, 6 Nov 2012 19:33:53 +0000 (19:33 +0000)]
Cost Model: add tables for some avx type-conversion hacks.

llvm-svn: 167480

12 years agoUpdates to user's manual and release notes for -fsanitize= options.
Richard Smith [Tue, 6 Nov 2012 19:23:14 +0000 (19:23 +0000)]
Updates to user's manual and release notes for -fsanitize= options.

llvm-svn: 167479

12 years ago[c-index-test] When building with BUILD_CLANG_ONLY=YES, include c-index-test.
Argyrios Kyrtzidis [Tue, 6 Nov 2012 19:14:25 +0000 (19:14 +0000)]
[c-index-test] When building with BUILD_CLANG_ONLY=YES, include c-index-test.
It is part of libclang and has other uses besides running the clang tests.

llvm-svn: 167478

12 years agoFix build error from previous commit.
Andrew Kaylor [Tue, 6 Nov 2012 19:06:46 +0000 (19:06 +0000)]
Fix build error from previous commit.

llvm-svn: 167477

12 years agoCleanup: 80-column violation
Manman Ren [Tue, 6 Nov 2012 19:05:29 +0000 (19:05 +0000)]
Cleanup: 80-column violation

llvm-svn: 167476

12 years agoAdd interface for object-based JIT events.
Andrew Kaylor [Tue, 6 Nov 2012 18:51:59 +0000 (18:51 +0000)]
Add interface for object-based JIT events.

This patch adds the interface to expose events from MCJIT when an object is emitted or freed and implements the MCJIT functionality to send those events.  The IntelJITEventListener implementation is left empty for now.  It will be fleshed out in a future patch.

llvm-svn: 167475

12 years agoAdded unnamed bitfields to our bitfield test.
Greg Clayton [Tue, 6 Nov 2012 18:22:59 +0000 (18:22 +0000)]
Added unnamed bitfields to our bitfield test.

llvm-svn: 167473

12 years agoUse the -fsanitize=thread flag to unbreak buildbot.
Chad Rosier [Tue, 6 Nov 2012 18:16:37 +0000 (18:16 +0000)]
Use the -fsanitize=thread flag to unbreak buildbot.

llvm-svn: 167472

12 years agoMake sure to check the module is valid after trying to find a shared module.
Greg Clayton [Tue, 6 Nov 2012 17:50:15 +0000 (17:50 +0000)]
Make sure to check the module is valid after trying to find a shared module.

llvm-svn: 167471

12 years agoAdd unit tests for source locations of AST nodes.
Manuel Klimek [Tue, 6 Nov 2012 17:31:40 +0000 (17:31 +0000)]
Add unit tests for source locations of AST nodes.

Patch by Philip Craig.

llvm-svn: 167470

12 years agoModern objective-C translator: Start adding line info to the
Fariborz Jahanian [Tue, 6 Nov 2012 17:30:23 +0000 (17:30 +0000)]
Modern objective-C translator: Start adding line info to the
translated source where it is needed. wip.

llvm-svn: 167469

12 years agoBasic: Windows doesn't define S_IFIFO.
Daniel Dunbar [Tue, 6 Nov 2012 17:08:24 +0000 (17:08 +0000)]
Basic: Windows doesn't define S_IFIFO.

llvm-svn: 167468

12 years agoMemoryBuffer: Windows doesn't define S_IFIFO.
Daniel Dunbar [Tue, 6 Nov 2012 17:08:09 +0000 (17:08 +0000)]
MemoryBuffer: Windows doesn't define S_IFIFO.

llvm-svn: 167467

12 years agotsan: slightly relax requirements for lazy shadow memory (can overlap and may not...
Dmitry Vyukov [Tue, 6 Nov 2012 16:48:46 +0000 (16:48 +0000)]
tsan: slightly relax requirements for lazy shadow memory (can overlap and may not be properly aligned)
it's problematic on windows where allocation granularity is much larger than page size

llvm-svn: 167466

12 years agoUse -fsanitize= flag in docs for ASan/TSan
Alexey Samsonov [Tue, 6 Nov 2012 16:19:11 +0000 (16:19 +0000)]
Use -fsanitize= flag in docs for ASan/TSan

llvm-svn: 167465