platform/upstream/llvm.git
12 years agoDon't offer '[[clang::fallthrough]];' fix-it when a fall-through occurs to a
Alexander Kornienko [Sat, 26 May 2012 00:49:15 +0000 (00:49 +0000)]
Don't offer '[[clang::fallthrough]];' fix-it when a fall-through occurs to a
switch label immediately followed by a 'break;'.

llvm-svn: 157508

12 years agordar://problem/11535045
Johnny Chen [Sat, 26 May 2012 00:32:39 +0000 (00:32 +0000)]
rdar://problem/11535045

Make 'help arch' return the list of supported architectures.
Add a convenience method StringList::Join(const char *separator) which is called from the help function for 'arch'.
Also add a simple test case.

llvm-svn: 157507

12 years agoFix the comments about LLDB_DISABLE_PYTHON in the python swig shell scripts to be...
Jim Ingham [Sat, 26 May 2012 00:23:52 +0000 (00:23 +0000)]
Fix the comments about LLDB_DISABLE_PYTHON in the python swig shell scripts to be more clear.

llvm-svn: 157506

12 years agoThe llvm_gcda_increment_indirect_counter function writes to the arguments that
Bill Wendling [Fri, 25 May 2012 23:55:00 +0000 (23:55 +0000)]
The llvm_gcda_increment_indirect_counter function writes to the arguments that
are passed in. However, those arguments may be in a write-protected area, as far
as the runtime library is concerned. For instance, the data could be placed into
a 'linkedit' section, which isn't writable. Emit the code from
llvm_gcda_increment_indirect_counter directly into the function instead.

Note: The code for this is ugly, and can lead to bloat. We should look into
simplifying this code instead of having all of these branches.

<rdar://problem/11181370>

llvm-svn: 157505

12 years agoFix predicate HasStandardEncoding in MipsInstrInfo.td per suggestion of
Akira Hatanaka [Fri, 25 May 2012 22:15:15 +0000 (22:15 +0000)]
Fix predicate HasStandardEncoding in MipsInstrInfo.td per suggestion of
Benjamin Kramer.

llvm-svn: 157504

12 years agoThe rules for emplace in map, multimap, unordered_map and unordered_multimap changed...
Howard Hinnant [Fri, 25 May 2012 22:04:21 +0000 (22:04 +0000)]
The rules for emplace in map, multimap, unordered_map and unordered_multimap changed a while back and I'm just now updating to these new rules.  In a nutshell, you've got to know you're emplacing to a pair and use one of pair's constructors.  I made one extension:  If you want to emplace the key and default construct the mapped_type, you can just emplace(key), as opposed to emplace(piecewise_construct, forward_as_tuple(key), forward_as_tuple()).

llvm-svn: 157503

12 years agoSmall code cleanup. No functionality change.
Bill Wendling [Fri, 25 May 2012 21:57:59 +0000 (21:57 +0000)]
Small code cleanup. No functionality change.

llvm-svn: 157502

12 years agoOpen in read/write mode, creating the file if it doesn't exist.
Bill Wendling [Fri, 25 May 2012 21:55:06 +0000 (21:55 +0000)]
Open in read/write mode, creating the file if it doesn't exist.

llvm-svn: 157501

12 years agofix codegen support for alloc_size attribute for static C++ methods
Nuno Lopes [Fri, 25 May 2012 21:45:08 +0000 (21:45 +0000)]
fix codegen support for alloc_size attribute for static C++ methods
add test case for C++ codegen

llvm-svn: 157500

12 years agobounds checking: add support for byval arguments
Nuno Lopes [Fri, 25 May 2012 21:15:17 +0000 (21:15 +0000)]
bounds checking: add support for byval arguments

llvm-svn: 157498

12 years agordar://problem/11533713
Johnny Chen [Fri, 25 May 2012 21:10:46 +0000 (21:10 +0000)]
rdar://problem/11533713

Allow setting conditions inline with breakpoints.  Add test cases.

llvm-svn: 157497

12 years agoDelete MipsExpandPseudo.cpp.
Akira Hatanaka [Fri, 25 May 2012 20:54:48 +0000 (20:54 +0000)]
Delete MipsExpandPseudo.cpp.

llvm-svn: 157496

12 years agoMove the code in MipsExpandPseudo to MipsInstrInfo::expandPostRAPseudo.
Akira Hatanaka [Fri, 25 May 2012 20:52:52 +0000 (20:52 +0000)]
Move the code in MipsExpandPseudo to MipsInstrInfo::expandPostRAPseudo.
Delete MipsExpandPseudo.

llvm-svn: 157495

12 years agoRemove the code that expands MIPS' .cpload directive.
Akira Hatanaka [Fri, 25 May 2012 20:46:52 +0000 (20:46 +0000)]
Remove the code that expands MIPS' .cpload directive.

llvm-svn: 157494

12 years agoRemove the code that emits MIPS' .cprestore directive.
Akira Hatanaka [Fri, 25 May 2012 20:42:55 +0000 (20:42 +0000)]
Remove the code that emits MIPS' .cprestore directive.

llvm-svn: 157493

12 years agoRemove pseudo instructions that are no longer used.
Akira Hatanaka [Fri, 25 May 2012 20:37:40 +0000 (20:37 +0000)]
Remove pseudo instructions that are no longer used.

llvm-svn: 157492

12 years ago[libclang] Add a test I forgot to commit for r156890.
Argyrios Kyrtzidis [Fri, 25 May 2012 20:05:57 +0000 (20:05 +0000)]
[libclang] Add a test I forgot to commit for r156890.

llvm-svn: 157491

12 years agoFixed a crash in logging when the name of an
Sean Callanan [Fri, 25 May 2012 18:12:26 +0000 (18:12 +0000)]
Fixed a crash in logging when the name of an
entity imported by the ASTImporter had a NamedDecl
with a name that wasn't a plain string (e.g., a
selector).

llvm-svn: 157488

12 years ago<rdar://problem/11535465>
Greg Clayton [Fri, 25 May 2012 18:09:55 +0000 (18:09 +0000)]
<rdar://problem/11535465>

LC_ENCRYPTION_INFO with "cryptid == 0" is not actually encrypted and LLDB fails to read memory from file.

llvm-svn: 157487

12 years agoDon't ignore linkage when ignoring visibility in the instantiation of a
Rafael Espindola [Fri, 25 May 2012 17:22:33 +0000 (17:22 +0000)]
Don't ignore linkage when ignoring visibility in the instantiation of a
method template.

llvm-svn: 157486

12 years ago[NVPTX] Add a new test case for the newly-enabled call handling
Justin Holewinski [Fri, 25 May 2012 17:20:38 +0000 (17:20 +0000)]
[NVPTX] Add a new test case for the newly-enabled call handling

NV_CONTRIB

llvm-svn: 157485

12 years ago<rdar://problem/11534686>
Greg Clayton [Fri, 25 May 2012 17:05:55 +0000 (17:05 +0000)]
<rdar://problem/11534686>

Reading memory from a file when the section is encrypted doesn't show an error. No we do.

llvm-svn: 157484

12 years agoadd CodeGen support for the alloc_size attribute
Nuno Lopes [Fri, 25 May 2012 17:04:42 +0000 (17:04 +0000)]
add CodeGen support for the alloc_size attribute

llvm-svn: 157483

12 years agoFixed an issue where we might have easy access to the string table data for a mach...
Greg Clayton [Fri, 25 May 2012 17:04:00 +0000 (17:04 +0000)]
Fixed an issue where we might have easy access to the string table data for a mach file from memory even though we have a process. So now we don't read the string table strings from memory when we don't have to.

llvm-svn: 157482

12 years agoboundschecking:
Nuno Lopes [Fri, 25 May 2012 16:54:04 +0000 (16:54 +0000)]
boundschecking:
add support for select
add experimental support for alloc_size metadata

llvm-svn: 157481

12 years agoDon't ignore linkage when ignoring visibility in the instantiation of a
Rafael Espindola [Fri, 25 May 2012 16:41:35 +0000 (16:41 +0000)]
Don't ignore linkage when ignoring visibility in the instantiation of a
function template.

llvm-svn: 157480

12 years agoChange interface for TargetLowering::LowerCallTo and TargetLowering::LowerCall
Justin Holewinski [Fri, 25 May 2012 16:35:28 +0000 (16:35 +0000)]
Change interface for TargetLowering::LowerCallTo and TargetLowering::LowerCall
to pass around a struct instead of a large set of individual values.  This
cleans up the interface and allows more information to be added to the struct
for future targets without requiring changes to each and every target.

NV_CONTRIB

llvm-svn: 157479

12 years ago[analyzer] Don't crash on LValBitCast
Anna Zaks [Fri, 25 May 2012 16:02:16 +0000 (16:02 +0000)]
[analyzer] Don't crash on LValBitCast

llvm-svn: 157478

12 years agoTypo fix.
Alexander Potapenko [Fri, 25 May 2012 15:56:40 +0000 (15:56 +0000)]
Typo fix.

llvm-svn: 157477

12 years agoFix memory corruption bug found and fixed by Andrew C. Morrow.
Howard Hinnant [Fri, 25 May 2012 15:55:46 +0000 (15:55 +0000)]
Fix memory corruption bug found and fixed by Andrew C. Morrow.

llvm-svn: 157476

12 years agoConsider the linkage for member class templates even when we have to ignore
Rafael Espindola [Fri, 25 May 2012 15:51:26 +0000 (15:51 +0000)]
Consider the linkage for member class templates even when we have to ignore
the visibility.

llvm-svn: 157475

12 years agotest/CodeGen/X86/bigstructret.ll: Suppress one test. It is msvc-incompatible. (compat...
NAKAMURA Takumi [Fri, 25 May 2012 15:40:54 +0000 (15:40 +0000)]
test/CodeGen/X86/bigstructret.ll: Suppress one test. It is msvc-incompatible. (compatible to mingw32 and netbsd, though)

llvm-svn: 157474

12 years agoFactor ParseAsanOptions outside __asan_init
Alexander Potapenko [Fri, 25 May 2012 15:37:16 +0000 (15:37 +0000)]
Factor ParseAsanOptions outside __asan_init

llvm-svn: 157473

12 years agoIntroduce the check_malloc_usable_size flag (on by default).
Alexander Potapenko [Fri, 25 May 2012 15:20:13 +0000 (15:20 +0000)]
Introduce the check_malloc_usable_size flag (on by default).
When the flag is set to zero, we do not check for errors in malloc_usable_size.
This may be useful to work around a bug in Nvidia drivers prior to 295.*

llvm-svn: 157472

12 years agotest/CodeGen/X86/bigstructret.ll: Relax stack offsets for hosts of stack-align=8...
NAKAMURA Takumi [Fri, 25 May 2012 15:12:21 +0000 (15:12 +0000)]
test/CodeGen/X86/bigstructret.ll: Relax stack offsets for hosts of stack-align=8, eg. win32 and netbsd.

llvm-svn: 157471

12 years agoWhen ignoring visibility in an instantiation, still consider the linkage.
Rafael Espindola [Fri, 25 May 2012 14:47:05 +0000 (14:47 +0000)]
When ignoring visibility in an instantiation, still consider the linkage.
Similar fixes for function and member template to follow as I write the
testcases.

llvm-svn: 157470

12 years agoWhitespace fixes.
Rafael Espindola [Fri, 25 May 2012 14:17:45 +0000 (14:17 +0000)]
Whitespace fixes.

llvm-svn: 157469

12 years agoMake the reassociation pass more powerful so that it can handle expressions
Duncan Sands [Fri, 25 May 2012 12:03:02 +0000 (12:03 +0000)]
Make the reassociation pass more powerful so that it can handle expressions
with arbitrary topologies (previously it would give up when hitting a diamond
in the use graph for example).  The testcase from PR12764 is now reduced from
a pile of additions to the optimal 1617*%x0+208.  In doing this I changed the
previous strategy of dropping all uses for expression leaves to one of dropping
all but one use.  This works out more neatly (but required a bunch of tweaks)
and is also safer: some recently fixed bugs during recursive linearization were
because the linearization code thinks it completely owns a node if it has no uses
outside the expression it is linearizing.  But if the node was also in another
expression that had been linearized (and thus all uses of the node from that
expression dropped) then the conclusion that it is completely owned by the
expression currently being linearized is wrong.  Keeping one use from within each
linearized expression avoids this kind of mistake.

llvm-svn: 157467

12 years agotsan: do not call into libc in symbolizer and in other code (this causes recursion...
Dmitry Vyukov [Fri, 25 May 2012 11:15:04 +0000 (11:15 +0000)]
tsan: do not call into libc in symbolizer and in other code (this causes recursion and crashes)

llvm-svn: 157466

12 years agotsan: output message about failure to intercept only if verbosity flag is passed
Dmitry Vyukov [Fri, 25 May 2012 09:47:18 +0000 (09:47 +0000)]
tsan: output message about failure to intercept only if verbosity flag is passed

llvm-svn: 157465

12 years agoasan: fix tests
Dmitry Vyukov [Fri, 25 May 2012 09:46:33 +0000 (09:46 +0000)]
asan: fix tests
depending on -m32/-m64 addr2line says either e.g. __xsan_strnlen or just strnlen

llvm-svn: 157464

12 years agoLinks the entry point to the tooling documentation into clang's menu bar.
Manuel Klimek [Fri, 25 May 2012 08:39:21 +0000 (08:39 +0000)]
Links the entry point to the tooling documentation into clang's menu bar.

llvm-svn: 157462

12 years agoRelease notes update for -Wsometimes-uninitialized.
Richard Smith [Fri, 25 May 2012 02:35:34 +0000 (02:35 +0000)]
Release notes update for -Wsometimes-uninitialized.

llvm-svn: 157459

12 years agoSplit a chunk of -Wconditional-uninitialized warnings out into a separate flag,
Richard Smith [Fri, 25 May 2012 02:17:09 +0000 (02:17 +0000)]
Split a chunk of -Wconditional-uninitialized warnings out into a separate flag,
-Wsometimes-uninitialized. This detects cases where an explicitly-written branch
inevitably leads to an uninitialized variable use (so either the branch is dead
code or there is an uninitialized use bug).

This chunk of warnings tentatively lives within -Wuninitialized, in order to
give it more visibility to existing Clang users.

llvm-svn: 157458

12 years agoBump to lldb 152.
Jason Molenda [Fri, 25 May 2012 02:05:58 +0000 (02:05 +0000)]
Bump to lldb 152.

llvm-svn: 157456

12 years agomisched: trace formatting
Andrew Trick [Fri, 25 May 2012 02:02:39 +0000 (02:02 +0000)]
misched: trace formatting

llvm-svn: 157455

12 years agoAdd support for function with stack frame checks added by the compiler;
Jason Molenda [Fri, 25 May 2012 01:54:06 +0000 (01:54 +0000)]
Add support for function with stack frame checks added by the compiler;
these functions will end in the sequence

  mov %rbp, %rsp
  ret
  call __stack_chk_fail

instead of the usual mov, ret.  The x86 assembly profiler only looked
for functions ending in 'ret' and added the Unwind row describing how to
set the CFA based on that -- the addition of the call insn (which is jumped
to earlier in the function body) threw off that inspection.

Resolves the need to "step" twice to get out of these functions when doing
source-level stepping.

<rdar://problem/11469705>

llvm-svn: 157454

12 years ago[analyzer] Loading external plugins with scan-build
Anna Zaks [Fri, 25 May 2012 01:13:50 +0000 (01:13 +0000)]
[analyzer] Loading external plugins with scan-build

Load custom plugins when running scan-build. This is useful when
additional static analysis Checkers must be provided via clang's plugin
interface.

Loading additional plugins can now be done via the scan-build call:
scan-build -load-plugin <plugin.so>

A patch by Thomas Hauth.

llvm-svn: 157452

12 years agoEarly-continue.Reducing indentation.
Bill Wendling [Fri, 25 May 2012 00:57:21 +0000 (00:57 +0000)]
Early-continue.Reducing indentation.

llvm-svn: 157451

12 years agoDon't call exit from a runtime.
Bill Wendling [Fri, 25 May 2012 00:55:38 +0000 (00:55 +0000)]
Don't call exit from a runtime.

llvm-svn: 157450

12 years agoCompress MCRegisterInfo register name tables.
Jakob Stoklund Olesen [Fri, 25 May 2012 00:21:41 +0000 (00:21 +0000)]
Compress MCRegisterInfo register name tables.

Store (debugging) register names as offsets into a string table instead
of as char pointers.

llvm-svn: 157449

12 years agoSimplify code for calling a function where CanLowerReturn fails, fixing a small bug...
Eli Friedman [Fri, 25 May 2012 00:09:29 +0000 (00:09 +0000)]
Simplify code for calling a function where CanLowerReturn fails, fixing a small bug in the process.

llvm-svn: 157446

12 years agoensure value passed to is space is representable as unsigned char
Seth Cantrell [Fri, 25 May 2012 00:03:29 +0000 (00:03 +0000)]
ensure value passed to is space is representable as unsigned char

if the value isn't an unsigned char or EOF behavior is undefined
(and on Windows there's an assertion)

llvm-svn: 157445

12 years agoSome cleanups around the uninitialized variables warning, and a FIXME. No functional...
Richard Smith [Thu, 24 May 2012 23:45:35 +0000 (23:45 +0000)]
Some cleanups around the uninitialized variables warning, and a FIXME. No functional change.

llvm-svn: 157440

12 years ago<rdar://problem/11529853>
Greg Clayton [Thu, 24 May 2012 23:42:14 +0000 (23:42 +0000)]
<rdar://problem/11529853>

Sending async packets can deadlock a program on darwin. We currently allow breakpoint packets and memory read/write packets (for software breakpoints) to be sent while a program is running. In the GDB remote plug-in, we will interrupt the run, send the async packet and resume (currently with the continue packet that caused the program to resume). If the GDB server supports the "vCont" packet, we might have initially continued with each thread stating it should continue. If new threads show up while we are stopped, which happend when running GCD, we can end up with new threads that we aren't mentioning in the continue list. So we start with a thread list of 1,2,3 and continue:

continue thread 1, continue thread 2, continue thread 3

Now we interrupt and set a breakpoint and we actually have threads 1,2,3,4 now when we are about to resume, yet we send:

continue thread 1, continue thread 2, continue thread 3

Any thread that isn't mentioned is currently going to stay suspended. This causes the deadlock.

llvm-svn: 157439

12 years agoSilence unused variable warnings from when assertions are disabled.
Kaelyn Uhrain [Thu, 24 May 2012 23:37:49 +0000 (23:37 +0000)]
Silence unused variable warnings from when assertions are disabled.

llvm-svn: 157438

12 years agomisched: Use the same scheduling heuristics with -misched-topdown/bottomup.
Andrew Trick [Thu, 24 May 2012 23:11:17 +0000 (23:11 +0000)]
misched: Use the same scheduling heuristics with -misched-topdown/bottomup.

(except the part about choosing direction)

llvm-svn: 157437

12 years agocleanup some code.
Fariborz Jahanian [Thu, 24 May 2012 22:59:56 +0000 (22:59 +0000)]
cleanup some code.

llvm-svn: 157436

12 years agoobjective-c: warn on use of property setters
Fariborz Jahanian [Thu, 24 May 2012 22:48:38 +0000 (22:48 +0000)]
objective-c: warn on use of property setters
backing two propeties because proprty names
match except for first letter being of different
case. // rdar://11528439, [PR12936].

llvm-svn: 157435

12 years agoGet rid of some non-ASCII en-dashes that crept in.
Eli Friedman [Thu, 24 May 2012 22:36:31 +0000 (22:36 +0000)]
Get rid of some non-ASCII en-dashes that crept in.

llvm-svn: 157434

12 years agoShrink.
Jakob Stoklund Olesen [Thu, 24 May 2012 22:17:44 +0000 (22:17 +0000)]
Shrink.

llvm-svn: 157433

12 years agoAdd support for range expressions in TableGen foreach loops.
Jakob Stoklund Olesen [Thu, 24 May 2012 22:17:39 +0000 (22:17 +0000)]
Add support for range expressions in TableGen foreach loops.

Like this:

  foreach i = 0-127 in ...

Use braces for composite ranges:

  foreach i = {0-3,9-7} in ...

llvm-svn: 157432

12 years agoDon't put TGParser scratch results in the output.
Jakob Stoklund Olesen [Thu, 24 May 2012 22:17:36 +0000 (22:17 +0000)]
Don't put TGParser scratch results in the output.

Only fully expanded Records should go into RecordKeeper.

llvm-svn: 157431

12 years agoSimplify TGParser::ProcessForEachDefs.
Jakob Stoklund Olesen [Thu, 24 May 2012 22:17:33 +0000 (22:17 +0000)]
Simplify TGParser::ProcessForEachDefs.

Use static type checking.

llvm-svn: 157430

12 years agomisched: Trace regpressure.
Andrew Trick [Thu, 24 May 2012 22:11:14 +0000 (22:11 +0000)]
misched: Trace regpressure.

llvm-svn: 157429

12 years agomisched: Give each ReadyQ a unique ID
Andrew Trick [Thu, 24 May 2012 22:11:12 +0000 (22:11 +0000)]
misched: Give each ReadyQ a unique ID

llvm-svn: 157428

12 years agomisched: Added ScoreboardHazardRecognizer.
Andrew Trick [Thu, 24 May 2012 22:11:09 +0000 (22:11 +0000)]
misched: Added ScoreboardHazardRecognizer.

The Hazard checker implements in-order contraints, or interlocked
resources. Ready instructions with hazards do not enter the available
queue and are not visible to other heuristics.

The major code change is the addition of SchedBoundary to encapsulate
the state at the top or bottom of the schedule, including both a
pending and available queue.

The scheduler now counts cycles in sync with the hazard checker. These
are minimum cycle counts based on known hazards.

Targets with no itinerary (x86_64) currently remain at cycle 0. To fix
this, we need to provide some maximum issue width for all targets. We
also need to add the concept of expected latency vs. minimum latency.

llvm-svn: 157427

12 years agomisched: Release bottom roots in reverse order.
Andrew Trick [Thu, 24 May 2012 22:11:05 +0000 (22:11 +0000)]
misched: Release bottom roots in reverse order.

llvm-svn: 157426

12 years agomisched: rename ReadyQ class
Andrew Trick [Thu, 24 May 2012 22:11:03 +0000 (22:11 +0000)]
misched: rename ReadyQ class

llvm-svn: 157425

12 years agomisched: copy comments so compareRPDelta is readable by itself.
Andrew Trick [Thu, 24 May 2012 22:11:01 +0000 (22:11 +0000)]
misched: copy comments so compareRPDelta is readable by itself.

llvm-svn: 157424

12 years agoregpressure: Added RegisterPressure::dump
Andrew Trick [Thu, 24 May 2012 22:10:59 +0000 (22:10 +0000)]
regpressure: Added RegisterPressure::dump

llvm-svn: 157423

12 years agoregpressure: physreg livein/out fix
Andrew Trick [Thu, 24 May 2012 22:10:57 +0000 (22:10 +0000)]
regpressure: physreg livein/out fix

llvm-svn: 157422

12 years agoFix for CHECK-NOT misspelling.
David Blaikie [Thu, 24 May 2012 22:08:29 +0000 (22:08 +0000)]
Fix for CHECK-NOT misspelling.

Patch by Nicklas Bo Jensen.

llvm-svn: 157421

12 years agoImplement the C++11 discarded value expression rules for volatile lvalues. <rdar...
Eli Friedman [Thu, 24 May 2012 22:04:19 +0000 (22:04 +0000)]
Implement the C++11 discarded value expression rules for volatile lvalues.  <rdar://problem/10790820>.

llvm-svn: 157420

12 years agoUn-XFAIL CodeGen/builtins-nvptx.c now that the proper changes have
Justin Holewinski [Thu, 24 May 2012 21:39:33 +0000 (21:39 +0000)]
Un-XFAIL CodeGen/builtins-nvptx.c now that the proper changes have
landed in LLVM core

llvm-svn: 157418

12 years agoRemove the PTX back-end and all of its artifacts (triple, etc.)
Justin Holewinski [Thu, 24 May 2012 21:38:21 +0000 (21:38 +0000)]
Remove the PTX back-end and all of its artifacts (triple, etc.)

This back-end was deprecated in favor of the NVPTX back-end.

NV_CONTRIB

llvm-svn: 157417

12 years agoTeach tblgen's set theory "sequence" operator to support an optional stride operand.
Owen Anderson [Thu, 24 May 2012 21:37:08 +0000 (21:37 +0000)]
Teach tblgen's set theory "sequence" operator to support an optional stride operand.

llvm-svn: 157416

12 years agoTypo. Patch by Nicklas Bo Jensen <nbjensen@gmail.com>.
Chad Rosier [Thu, 24 May 2012 21:17:47 +0000 (21:17 +0000)]
Typo. Patch by Nicklas Bo Jensen <nbjensen@gmail.com>.

llvm-svn: 157415

12 years agoA minor tweak to the new volatile lvalue warning: don't warn on "(void)x", where...
Eli Friedman [Thu, 24 May 2012 21:05:41 +0000 (21:05 +0000)]
A minor tweak to the new volatile lvalue warning: don't warn on "(void)x", where "x" refers to a local variable.  This should silence a useless warning in compiler-rt and other places.

llvm-svn: 157414

12 years agoXFAIL this test, which does not pass on trunk since the grand
John McCall [Thu, 24 May 2012 20:58:21 +0000 (20:58 +0000)]
XFAIL this test, which does not pass on trunk since the grand
renaming in r157403.

llvm-svn: 157413

12 years agoSet svn:keywords property to Id
Ted Kremenek [Thu, 24 May 2012 20:16:00 +0000 (20:16 +0000)]
Set svn:keywords property to Id

llvm-svn: 157412

12 years agoNew & improved man page attached, now with standard license added.
Ted Kremenek [Thu, 24 May 2012 20:13:47 +0000 (20:13 +0000)]
New & improved man page attached, now with standard license added.
Plus, a patch for scan-build.

* mdoc corrections
* slightly more compact output
* same license as scan-build
* DESCRIPTION describes
* Default checkers corrected & explained
* Authors credited

The patch adds support for --help-checkers.  It just lists the default
checkers by recursively invoking "scan-build -h" and looking for the
magic '+' signs.

Patch by James Lowden!

llvm-svn: 157411

12 years agoTurn on mips16 pseudo op when compiling for mips16.
Akira Hatanaka [Thu, 24 May 2012 18:37:43 +0000 (18:37 +0000)]
Turn on mips16 pseudo op when compiling for mips16.
Expand test case for this.

Patch by Reed Kotler.

llvm-svn: 157410

12 years agoEnable Mips16 compiler to compile a null program.
Akira Hatanaka [Thu, 24 May 2012 18:32:33 +0000 (18:32 +0000)]
Enable Mips16 compiler to compile a null program.
First code from the Mips16 compiler. Includes trivial test program.

Patch by Reed Kotler.

llvm-svn: 157408

12 years agoobjective-c: Fixes a corner case and interesting bug.
Fariborz Jahanian [Thu, 24 May 2012 18:29:41 +0000 (18:29 +0000)]
objective-c: Fixes a corner case and interesting bug.
Where diagnostic about unfound property is not
issued in the context where a setter is looked up
in situation in which name and property name differ
in their first letter case. // rdar://11363363

llvm-svn: 157407

12 years agoAdding back a right parenthesis that was dropped in r157388.
Meador Inge [Thu, 24 May 2012 18:16:39 +0000 (18:16 +0000)]
Adding back a right parenthesis that was dropped in r157388.

llvm-svn: 157406

12 years agoFix missing Resources/Python directory for macosx build.
Johnny Chen [Thu, 24 May 2012 18:14:18 +0000 (18:14 +0000)]
Fix missing Resources/Python directory for macosx build.

llvm-svn: 157405

12 years ago[objcmt] Add test case for r157395.
Argyrios Kyrtzidis [Thu, 24 May 2012 17:49:22 +0000 (17:49 +0000)]
[objcmt] Add test case for r157395.

llvm-svn: 157404

12 years agoReplace PTX back-end with NVPTX back-end in all places where Clang cares
Justin Holewinski [Thu, 24 May 2012 17:43:12 +0000 (17:43 +0000)]
Replace PTX back-end with NVPTX back-end in all places where Clang cares

NV_CONTRIB

llvm-svn: 157403

12 years ago[analyzer] Minor cleanup to checkers' help text.
Anna Zaks [Thu, 24 May 2012 17:31:59 +0000 (17:31 +0000)]
[analyzer] Minor cleanup to checkers' help text.

llvm-svn: 157402

12 years ago[analyzer] Treat cast of array to reference in the same way as array to
Anna Zaks [Thu, 24 May 2012 17:31:57 +0000 (17:31 +0000)]
[analyzer] Treat cast of array to reference in the same way as array to
pointer.

Fixes one of the crashes reported in PR12874.

llvm-svn: 157401

12 years ago[analyzer] Fix typo. Thanks Jordy.
Anna Zaks [Thu, 24 May 2012 17:31:54 +0000 (17:31 +0000)]
[analyzer] Fix typo. Thanks Jordy.

llvm-svn: 157400

12 years agoAdds menu sidebar to the docs.
Manuel Klimek [Thu, 24 May 2012 17:16:23 +0000 (17:16 +0000)]
Adds menu sidebar to the docs.

llvm-svn: 157399

12 years agoSilence Clang's -Wlogical-op-parentheses warning.
David Blaikie [Thu, 24 May 2012 17:11:00 +0000 (17:11 +0000)]
Silence Clang's -Wlogical-op-parentheses warning.

I'm not sure it's really worth expressing this as a range rather than 3 specific equalities, but it doesn't seem fundamentally wrong either.

llvm-svn: 157398

12 years agoUpdates the tooling docs with the links to the tutorials and
Manuel Klimek [Thu, 24 May 2012 17:09:10 +0000 (17:09 +0000)]
Updates the tooling docs with the links to the tutorials and
adds the menu include.

llvm-svn: 157397

12 years agoAdds a tutorial for how to write clang plugins.
Manuel Klimek [Thu, 24 May 2012 17:07:18 +0000 (17:07 +0000)]
Adds a tutorial for how to write clang plugins.

llvm-svn: 157396

12 years ago[objcmt] Warn when modern objc migrator does not convert a NSNumber message because...
Argyrios Kyrtzidis [Thu, 24 May 2012 16:48:23 +0000 (16:48 +0000)]
[objcmt] Warn when modern objc migrator does not convert a NSNumber message because it requires a cast.

rdar://11525138

llvm-svn: 157395

12 years agoobjc: change option to be -Wobjc-interface-ivars
Fariborz Jahanian [Thu, 24 May 2012 16:19:51 +0000 (16:19 +0000)]
objc: change option to be -Wobjc-interface-ivars

llvm-svn: 157394

12 years agoAdd half support to LLVM (for OpenCL)
Tobias Grosser [Thu, 24 May 2012 15:59:06 +0000 (15:59 +0000)]
Add half support to LLVM (for OpenCL)

Submitted by: Anton Lokhmotov  <Anton.Lokhmotov@arm.com>

Approved by: o Anton Korobeynikov
             o Micah Villmow
             o David Neto

llvm-svn: 157393

12 years agotsan: compilation of tests with newest clang
Dmitry Vyukov [Thu, 24 May 2012 14:55:12 +0000 (14:55 +0000)]
tsan: compilation of tests with newest clang

llvm-svn: 157392