platform/upstream/llvm.git
11 years agoAdd CMake option LLVM_USE_SANITIZER={Address,Memory,MemoryWithOrigins} to simplify...
Alexey Samsonov [Tue, 26 Mar 2013 07:49:46 +0000 (07:49 +0000)]
Add CMake option LLVM_USE_SANITIZER={Address,Memory,MemoryWithOrigins} to simplify bootstrap of LLVM/Clang under ASan/MSan

llvm-svn: 177992

11 years ago[ELF][Hexagon] Fixing failing test on Bots, few symbol names are available only in...
Shankar Easwaran [Tue, 26 Mar 2013 04:01:26 +0000 (04:01 +0000)]
[ELF][Hexagon] Fixing failing test on Bots, few symbol names are available only in debug builds, dont check the symbol names

llvm-svn: 177991

11 years ago[ELF] no change in functionality, add functions to symbol table so that they can...
Shankar Easwaran [Tue, 26 Mar 2013 03:53:33 +0000 (03:53 +0000)]
[ELF] no change in functionality, add functions to symbol table so that they can be overridden by derived classes

llvm-svn: 177990

11 years agoManually specify the link dependencies. Turns out that all the work on
Chandler Carruth [Tue, 26 Mar 2013 03:45:48 +0000 (03:45 +0000)]
Manually specify the link dependencies. Turns out that all the work on
LLVMBuild stuff didn't actually provide a single place for dependencies,
it just added a third place.

llvm-svn: 177989

11 years agoManually update the dependencies in the Makefiles. It turns out that all
Chandler Carruth [Tue, 26 Mar 2013 03:45:47 +0000 (03:45 +0000)]
Manually update the dependencies in the Makefiles. It turns out that all
that work on the LLVMBuild based dependency specification didn't
actually work, we just now maintain dependencies in *3* places instead
of 2. Yay.

There may still be some missing dependencies, I'm still sifting through
the bots and my builds, but this is a step in the right direction.

llvm-svn: 177988

11 years agoHandle CXXOperatorCallExpr when checking self referrnce during initialization of
Richard Trieu [Tue, 26 Mar 2013 03:41:40 +0000 (03:41 +0000)]
Handle CXXOperatorCallExpr when checking self referrnce during initialization of
class types.

llvm-svn: 177987

11 years agoFix SCEV forgetMemoizedResults should search and destroy backedge exprs.
Andrew Trick [Tue, 26 Mar 2013 03:14:53 +0000 (03:14 +0000)]
Fix SCEV forgetMemoizedResults should search and destroy backedge exprs.

Fixes PR15570: SEGV: SCEV back-edge info invalid after dead code removal.

Indvars creates a SCEV expression for the loop's back edge taken
count, then determines that the comparison is always true and
removes it.

When loop-unroll asks for the expression, it contains a NULL
SCEVUnknkown (as a CallbackVH).

forgetMemoizedResults should invalidate the loop back edges expression.

llvm-svn: 177986

11 years agoThe IRReader header is now part of its own library. Update the include
Chandler Carruth [Tue, 26 Mar 2013 02:25:54 +0000 (02:25 +0000)]
The IRReader header is now part of its own library. Update the include
line and the library dependencies to reflect this.

llvm-svn: 177972

11 years agoSplit out the IRReader header and the utility functions it provides into
Chandler Carruth [Tue, 26 Mar 2013 02:25:37 +0000 (02:25 +0000)]
Split out the IRReader header and the utility functions it provides into
its own library. These functions are bridging between the bitcode reader
and the ll parser which are in different libraries. Previously we didn't
have any good library to do this, and instead played fast and loose with
a "header only" set of interfaces in the Support library. This really
doesn't work well as evidenced by the recent attempt to add timing logic
to the these routines.

As part of this, make them normal functions rather than weird inline
functions, and sink the implementation into the library. Also clean up
the header to be nice and minimal.

This requires updating lots of build system dependencies to specify that
the IRReader library is needed, and several source files to not
implicitly rely upon the header file to transitively include all manner
of other headers.

If you are using IRReader.h, this commit will break you (the header
moved) and you'll need to also update your library usage to include
'irreader'. I will commit the corresponding change to Clang momentarily.

llvm-svn: 177971

11 years ago[ELF][Hexagon] add GOTREL/GOT relocations
Shankar Easwaran [Tue, 26 Mar 2013 02:20:56 +0000 (02:20 +0000)]
[ELF][Hexagon] add GOTREL/GOT relocations

llvm-svn: 177970

11 years ago[ELF] order rela.dyn/rela.plt properly
Shankar Easwaran [Tue, 26 Mar 2013 02:20:08 +0000 (02:20 +0000)]
[ELF] order rela.dyn/rela.plt properly

llvm-svn: 177969

11 years agoARM Scheduler Model: Add resources instructions, map resources in subtargets
Arnold Schwaighofer [Tue, 26 Mar 2013 02:01:42 +0000 (02:01 +0000)]
ARM Scheduler Model: Add resources instructions, map resources in subtargets

Move the CortexA9 resources into the CortexA9 SchedModel namespace. Define
resource mappings under the CortexA9 SchedModel. Define resources and mappings
for the SwiftModel.

llvm-svn: 177968

11 years agoARM Scheduler Model: Partial implementation of the new machine scheduler model
Arnold Schwaighofer [Tue, 26 Mar 2013 02:01:39 +0000 (02:01 +0000)]
ARM Scheduler Model: Partial implementation of the new machine scheduler model

This is very much work in progress. Please send me a note if you start to depend
on the added abstract read/write resources. They are subject to change until
further notice.

The old itinerary is still the default.

llvm-svn: 177967

11 years ago<rdar://problem/13502196>
Greg Clayton [Tue, 26 Mar 2013 01:51:59 +0000 (01:51 +0000)]
<rdar://problem/13502196>

We have the tag when figuring out the fully qualified name, append a suitable name for other types of tags when no name is available.

llvm-svn: 177966

11 years ago<rdar://problem/13502196>
Greg Clayton [Tue, 26 Mar 2013 01:45:43 +0000 (01:45 +0000)]
<rdar://problem/13502196>

Functions in "(anonymous namespace)" was causing LLDB to crash when trying to complete a type and it would also cause functions arguments to appear in wrong place in frame display when showing function arguments.

llvm-svn: 177965

11 years agoMake the stepping perf test case actually work.
Jim Ingham [Tue, 26 Mar 2013 01:43:36 +0000 (01:43 +0000)]
Make the stepping perf test case actually work.

llvm-svn: 177964

11 years agoAdd missing file to cmake build.
Nick Lewycky [Tue, 26 Mar 2013 01:29:15 +0000 (01:29 +0000)]
Add missing file to cmake build.

llvm-svn: 177963

11 years agoAdd a new watchdog timer interface. The interface does not permit handling timeouts, so
Nick Lewycky [Tue, 26 Mar 2013 01:27:52 +0000 (01:27 +0000)]
Add a new watchdog timer interface. The interface does not permit handling timeouts, so
it's only really useful if you're going to crash anyways. Use it in the pretty stack trace
printer to kill the compiler if we hang while printing the stack trace.

llvm-svn: 177962

11 years ago<rdar://problem/13221060>
Enrico Granata [Tue, 26 Mar 2013 01:27:04 +0000 (01:27 +0000)]
<rdar://problem/13221060>

Make register read and write accept $<regname> as valid.
This allows:
(lldb) reg read rbx
     rbx = 0x0000000000000000
(lldb) reg read $rbx
     rbx = 0x0000000000000000
(lldb) reg write $rbx 1
(lldb) reg read $rbx
     rbx = 0x0000000000000001

to function correctly

It is not done at the RegisterContext level because we should keep the internal API clean of this user-friendly behavior and name registers appropriately.
If this ends up being needed in more places we can reconsider.

llvm-svn: 177961

11 years agoAdded simple regression test for modularize.
John Thompson [Tue, 26 Mar 2013 01:18:28 +0000 (01:18 +0000)]
Added simple regression test for modularize.

llvm-svn: 177960

11 years agoRevised to use file list path as reference path, or path provide by new -prefix optio...
John Thompson [Tue, 26 Mar 2013 01:17:48 +0000 (01:17 +0000)]
Revised to use file list path as reference path, or path provide by new -prefix option.  Revised to use LLVM option parser.

llvm-svn: 177959

11 years agoRemove FIXMEs: these are covered by a core issue which we don't yet implement
Richard Smith [Tue, 26 Mar 2013 01:17:18 +0000 (01:17 +0000)]
Remove FIXMEs: these are covered by a core issue which we don't yet implement
(but we happen to get this part right).

llvm-svn: 177958

11 years agoImplement special-case name lookup for inheriting constructors: member
Richard Smith [Tue, 26 Mar 2013 01:15:19 +0000 (01:15 +0000)]
Implement special-case name lookup for inheriting constructors: member
using-declarations with names which look constructor-like are interpreted as
constructor names.

llvm-svn: 177957

11 years agoRemove testcase. It's failing on some platforms but not others.
Bill Wendling [Tue, 26 Mar 2013 01:10:03 +0000 (01:10 +0000)]
Remove testcase. It's failing on some platforms but not others.

llvm-svn: 177956

11 years agoHmm...not failing...odd
Bill Wendling [Tue, 26 Mar 2013 01:08:02 +0000 (01:08 +0000)]
Hmm...not failing...odd

llvm-svn: 177955

11 years agoRemove some no-op static_casts.
Richard Smith [Tue, 26 Mar 2013 00:54:11 +0000 (00:54 +0000)]
Remove some no-op static_casts.

llvm-svn: 177954

11 years agoTemporarily XFAIL this test until Michael can look at it.
Bill Wendling [Tue, 26 Mar 2013 00:46:31 +0000 (00:46 +0000)]
Temporarily XFAIL this test until Michael can look at it.

llvm-svn: 177953

11 years ago[ObjCARC Annotations] Added support for displaying the state of pointers at the botto...
Michael Gottesman [Tue, 26 Mar 2013 00:42:09 +0000 (00:42 +0000)]
[ObjCARC Annotations] Added support for displaying the state of pointers at the bottom/top of BBs of the ARC dataflow analysis for both bottomup and topdown analyses.

This will allow for verification and analysis of the merge function of
the data flow analyses in the ARC optimizer.

The actual implementation of this feature is by introducing calls to
the functions llvm.arc.annotation.{bottomup,topdown}.{bbstart,bbend}
which are only declared. Each such call takes in a pointer to a global
with the same name as the pointer whose provenance is being tracked and
a pointer whose name is one of our Sequence states and points to a
string that contains the same name.

To ensure that the optimizer does not consider these annotations in any
way, I made it so that the annotations are considered to be of IC_None
type.

A test case is included for this commit and the previous
ObjCARCAnnotation commit.

llvm-svn: 177952

11 years ago[ObjCARC Annotations] Implemented ARC annotation metadata to expose the ARC data...
Michael Gottesman [Tue, 26 Mar 2013 00:42:04 +0000 (00:42 +0000)]
[ObjCARC Annotations] Implemented ARC annotation metadata to expose the ARC data flow analysis state in the IR via metadata.

Previously the inner works of the data flow analysis in ObjCARCOpts was hard to
get out of the optimizer for analysis of bugs or testing. All of the current ARC
unit tests are based off of testing the effect of the data flow
analysis (i.e. what statements are removed or moved, etc.). This creates
weakness in the current unit testing regimem since we are not actually testing
what effects various instructions have on the modeled pointer state.
Additionally in order to analyze a bug in the optimizer, one would need to track
by hand what the optimizer was actually doing either through use of DEBUG
statements or through the usage of a debugger, both yielding large loses in
developer productivity.

This patch deals with these two issues by providing ARC annotation
metadata that annotates instructions with the state changes that they cause in
various pointers as well as provides metadata to annotate provenance sources.

Specifically, we introduce the following metadata types:

1. llvm.arc.annotation.bottomup.
2. llvm.arc.annotation.topdown.
3. llvm.arc.annotation.provenancesource.

llvm.arc.annotation.{bottomup,topdown}: These annotations describes a state
change in a pointer when we are visiting instructions bottomup/topdown
respectively. The output format for both is the same:

  !1 = metadata !{metadata !"(test,%x)", metadata !"S_Release", metadata !"S_Use"}

The first element is a string tuple with the following format:

  (function,variable name)

The second two elements of the metadata show the previous state of the
pointer (in this case S_Release) and the new state of the pointer (S_Use). We
write the metadata in such a manner to ensure that it is easy for outside tools
to parse. This is important since I am currently working on a tool for taking
this information and pretty printing it besides the IR and that can be used for
LIT style testing via the generation of an index.

llvm.arc.annotation.provenancesource: This metadata is used to annotate
instructions which act as provenance sources, i.e. ones that introduce a
new (from the optimizer's perspective) non-argument pointer to track. This
enables cross-referencing in between provenance sources and the state changes
that occur to them.

This is still a work in progress. Additionally I plan on committing
later today additions to the annotations that annotate at the top/bottom
of basic blocks the state of the various pointers being tracked.

*NOTE* The metadata support is conditionally compiled into libObjCARCOpts only
when we are producing a debug build of llvm/clang and even so are
disabled by default. To enable the annotation metadata, pass in
-enable-objc-arc-annotations to opt.

llvm-svn: 177951

11 years agoAdded documentation to LangRef for the intrinsic llvm.ptr.annotation.* which for...
Michael Gottesman [Tue, 26 Mar 2013 00:34:27 +0000 (00:34 +0000)]
Added documentation to LangRef for the intrinsic llvm.ptr.annotation.* which for some reason was never written.

llvm-svn: 177950

11 years agoChecking that the wrong syntax does not give a correct summary after clearing the...
Enrico Granata [Tue, 26 Mar 2013 00:24:27 +0000 (00:24 +0000)]
Checking that the wrong syntax does not give a correct summary after clearing the error messages here

llvm-svn: 177949

11 years agoObjective-C: Property declaration overiding one in
Fariborz Jahanian [Mon, 25 Mar 2013 23:59:42 +0000 (23:59 +0000)]
Objective-C: Property declaration overiding one in
its super class or protocols inherit their
availability/deprecated attribute. // rdar://13467644

llvm-svn: 177948

11 years agoRevise alignment checking/calculation on 256-bit unaligned memory access
Michael Liao [Mon, 25 Mar 2013 23:50:10 +0000 (23:50 +0000)]
Revise alignment checking/calculation on 256-bit unaligned memory access

- It's still considered aligned when the specified alignment is larger
  than the natural alignment;
- The new alignment for the high 128-bit vector should be min(16,
  alignment) as the pointer is advanced by 16, a power-of-2 offset.

llvm-svn: 177947

11 years agoclang/test/Index/crash-recovery-code-complete.c: Mark it as XFAIL:win32 for now.
NAKAMURA Takumi [Mon, 25 Mar 2013 23:49:11 +0000 (23:49 +0000)]
clang/test/Index/crash-recovery-code-complete.c: Mark it as XFAIL:win32 for now.

I know MemoryBuffer might affect this. Still investigating.

llvm-svn: 177946

11 years agoEnhance folding of (extract_subvec (insert_subvec V1, V2, IIdx), EIdx)
Michael Liao [Mon, 25 Mar 2013 23:47:35 +0000 (23:47 +0000)]
Enhance folding of (extract_subvec (insert_subvec V1, V2, IIdx), EIdx)

- Handle the case where the result of 'insert_subvect' is bitcasted
  before 'extract_subvec'. This removes the redundant insertf128/extractf128
  pair on unaligned 256-bit vector load/store on vectors of non 64-bit integer.

llvm-svn: 177945

11 years ago<rdar://problem/13395022> Strip references when extracting an initializer_list's...
Douglas Gregor [Mon, 25 Mar 2013 23:47:01 +0000 (23:47 +0000)]
<rdar://problem/13395022> Strip references when extracting an initializer_list's element type during application of an initialization sequence.

llvm-svn: 177944

11 years agoAdd an -mcpu option to a test that is apparently scheduler-sensitive.
Jakob Stoklund Olesen [Mon, 25 Mar 2013 23:43:23 +0000 (23:43 +0000)]
Add an -mcpu option to a test that is apparently scheduler-sensitive.

This should fix the clang-atom-d2700-ubuntu-rel buildbot.

llvm-svn: 177943

11 years agoAdd a scheduling model for Intel Sandy Bridge microarchitecture.
Jakob Stoklund Olesen [Mon, 25 Mar 2013 23:37:17 +0000 (23:37 +0000)]
Add a scheduling model for Intel Sandy Bridge microarchitecture.

The model isn't hooked up by this patch because the instruction set
isn't fully annotated yet.

llvm-svn: 177942

11 years ago<rdar://problem/13185264> Don't crash when attempting to redundantly initialize a...
Douglas Gregor [Mon, 25 Mar 2013 23:28:23 +0000 (23:28 +0000)]
<rdar://problem/13185264> Don't crash when attempting to redundantly initialize a member of an anonymous union.

llvm-svn: 177941

11 years agoFix layering violation harder.
Matt Beaumont-Gay [Mon, 25 Mar 2013 23:19:32 +0000 (23:19 +0000)]
Fix layering violation harder.

llvm-svn: 177940

11 years ago<rdar://problem/13358795> Teach CMake to check Subversion version information at...
Douglas Gregor [Mon, 25 Mar 2013 23:16:38 +0000 (23:16 +0000)]
<rdar://problem/13358795> Teach CMake to check Subversion version information at build time, not configure time.

llvm-svn: 177939

11 years agoIntroduce a tiny CMake project to gather Subversion revision information and place...
Douglas Gregor [Mon, 25 Mar 2013 23:14:19 +0000 (23:14 +0000)]
Introduce a tiny CMake project to gather Subversion revision information and place it into a header.

llvm-svn: 177938

11 years agoRemove IIC_DEFAULT from X86Schedule.td
Jakob Stoklund Olesen [Mon, 25 Mar 2013 23:12:41 +0000 (23:12 +0000)]
Remove IIC_DEFAULT from X86Schedule.td

All the instructions tagged with IIC_DEFAULT had nothing in common, and
we already have a NoItineraries class to represent untagged
instructions.

llvm-svn: 177937

11 years agoAnnotate X86InstrCompiler.td with SchedRW lists.
Jakob Stoklund Olesen [Mon, 25 Mar 2013 23:07:35 +0000 (23:07 +0000)]
Annotate X86InstrCompiler.td with SchedRW lists.

llvm-svn: 177936

11 years agoAnnotate shifts and rotates with SchedRW lists.
Jakob Stoklund Olesen [Mon, 25 Mar 2013 23:07:32 +0000 (23:07 +0000)]
Annotate shifts and rotates with SchedRW lists.

llvm-svn: 177935

11 years agoFix testcase.
Ted Kremenek [Mon, 25 Mar 2013 23:05:40 +0000 (23:05 +0000)]
Fix testcase.

llvm-svn: 177934

11 years agoDisable some unsafe-fp-math DAG-combine transformation after legalization.
Shuxin Yang [Mon, 25 Mar 2013 22:52:29 +0000 (22:52 +0000)]
Disable some unsafe-fp-math DAG-combine transformation after legalization.
For instance, following transformation will be disabled:
    x + x + x => 3.0f * x;

The problem of these transformations is that it introduces a FP constant, which
following Instruction-Selection pass cannot handle.

Reviewed by Nadav, thanks a lot!

rdar://13445387

llvm-svn: 177933

11 years agoModified patch from Prabhat Verma to enable loading core files through the SBTarget...
Greg Clayton [Mon, 25 Mar 2013 22:40:51 +0000 (22:40 +0000)]
Modified patch from Prabhat Verma to enable loading core files through the SBTarget API.

llvm-svn: 177932

11 years agoFor printf checking, handle nested typedefs for darwin-specific checking.
Ted Kremenek [Mon, 25 Mar 2013 22:28:37 +0000 (22:28 +0000)]
For printf checking, handle nested typedefs for darwin-specific checking.

Fixes <rdar://problem/13491605>.

llvm-svn: 177931

11 years ago<rdar://problem/13459871> Allow forward declaration of enums with a fixed underlying...
Douglas Gregor [Mon, 25 Mar 2013 22:22:35 +0000 (22:22 +0000)]
<rdar://problem/13459871> Allow forward declaration of enums with a fixed underlying type in Objective-C (as well as C++11).

llvm-svn: 177930

11 years agoAdded debug tests for indexing, pop_back and both forms of erase. Added an improved...
Howard Hinnant [Mon, 25 Mar 2013 22:12:26 +0000 (22:12 +0000)]
Added debug tests for indexing, pop_back and both forms of erase.  Added an improved error message for erasing a single element with end().

llvm-svn: 177929

11 years agoAdd an optimizer-side test case for ARC bug <rdar://13195034>, fixed
John McCall [Mon, 25 Mar 2013 22:09:52 +0000 (22:09 +0000)]
Add an optimizer-side test case for ARC bug <rdar://13195034>, fixed
in the frontend with @clang.arc.use.

llvm-svn: 177928

11 years agoAdd a GetTid() implementation for Windows
Timur Iskhodzhanov [Mon, 25 Mar 2013 22:04:29 +0000 (22:04 +0000)]
Add a GetTid() implementation for Windows

llvm-svn: 177927

11 years agoFix the buildbot so a LLDB test doesn't fail looking for "<invalid usage of pointer...
Greg Clayton [Mon, 25 Mar 2013 22:04:11 +0000 (22:04 +0000)]
Fix the buildbot so a LLDB test doesn't fail looking for "<invalid usage of pointer value as object>".

llvm-svn: 177926

11 years agoRemove local path from test.
Douglas Gregor [Mon, 25 Mar 2013 21:52:42 +0000 (21:52 +0000)]
Remove local path from test.

llvm-svn: 177925

11 years agoUse <time.h> rather than <sys/time.h>
Douglas Gregor [Mon, 25 Mar 2013 21:51:16 +0000 (21:51 +0000)]
Use <time.h> rather than <sys/time.h>

llvm-svn: 177924

11 years agoUse xargs rather than
Douglas Gregor [Mon, 25 Mar 2013 21:49:54 +0000 (21:49 +0000)]
Use xargs rather than

llvm-svn: 177923

11 years agoFix a layering violation introduced in r177705.
Matt Beaumont-Gay [Mon, 25 Mar 2013 21:32:02 +0000 (21:32 +0000)]
Fix a layering violation introduced in r177705.

llvm-svn: 177922

11 years agoUse 'touch -t', which both BSD and Linux support.
Douglas Gregor [Mon, 25 Mar 2013 21:27:57 +0000 (21:27 +0000)]
Use 'touch -t', which both BSD and Linux support.

llvm-svn: 177921

11 years agoCouple more sets of tidying.
Eric Christopher [Mon, 25 Mar 2013 21:26:36 +0000 (21:26 +0000)]
Couple more sets of tidying.

llvm-svn: 177920

11 years agoTry harder to be signal-safe inside our signal handler. The most prominent behavioural
Nick Lewycky [Mon, 25 Mar 2013 21:24:30 +0000 (21:24 +0000)]
Try harder to be signal-safe inside our signal handler. The most prominent behavioural
difference is that we no longer clean the token before emitting it. This fixes a bug where
clang hangs in the middle of crashing because the crash handler calls malloc from inside
a crash that happened inside of free.

llvm-svn: 177919

11 years ago<rdar://problem/13434605> Periodically prune the module cache so that it does not...
Douglas Gregor [Mon, 25 Mar 2013 21:19:16 +0000 (21:19 +0000)]
<rdar://problem/13434605> Periodically prune the module cache so that it does not grow forever.

llvm-svn: 177918

11 years agoDisable profiling tests for Hexagon since it doesn't support JIT.
Jyotsna Verma [Mon, 25 Mar 2013 21:15:11 +0000 (21:15 +0000)]
Disable profiling tests for Hexagon since it doesn't support JIT.

llvm-svn: 177917

11 years agoCorrect indentation. No functionality change.
Nick Lewycky [Mon, 25 Mar 2013 21:10:14 +0000 (21:10 +0000)]
Correct indentation. No functionality change.

llvm-svn: 177916

11 years agoEmit an error message instead of crashing when dereferencing an incomplete pointer...
Bill Wendling [Mon, 25 Mar 2013 21:09:49 +0000 (21:09 +0000)]
Emit an error message instead of crashing when dereferencing an incomplete pointer type.

If the ASM statement is dereferencing an incomplete pointer type, issue an error
instead of crashing.
<rdar://problem/12700799>

llvm-svn: 177915

11 years agollvm/test/CodeGen/X86/atomic{32|64}.ll: Unmark them out of XFAIL:win32.
NAKAMURA Takumi [Mon, 25 Mar 2013 21:07:53 +0000 (21:07 +0000)]
llvm/test/CodeGen/X86/atomic{32|64}.ll: Unmark them out of XFAIL:win32.

I know it is incorrect and they'd fail with +Asserts for win32 targets, though.
I'll try to fix them tonight.

llvm-svn: 177914

11 years ago<rdar://problem/13498879>
Greg Clayton [Mon, 25 Mar 2013 21:06:13 +0000 (21:06 +0000)]
<rdar://problem/13498879>

C String summary is emitting "<invalid usage of pointer value as object>" for bad pointers. Now it doesn't emit anything.

llvm-svn: 177913

11 years agoXFAIL some of the generic CodeGen tests for Hexagon.
Jyotsna Verma [Mon, 25 Mar 2013 21:04:16 +0000 (21:04 +0000)]
XFAIL some of the generic CodeGen tests for Hexagon.

test/CodeGen/Generic/2008-02-20-MatchingMem.ll: Test contains inline assembly not supported by Hexagon.

Following tests are XFAILed due to multiple return values which Hexagon doesn't support.

test/CodeGen/Generic/multiple-return-values-cross-block-with-invoke.ll
test/CodeGen/Generic/select-cc.ll
test/CodeGen/Generic/vector.ll

llvm-svn: 177912

11 years agoIR-gen should not generate an MMX types unless the code is explicitly using MMX
Chad Rosier [Mon, 25 Mar 2013 21:00:27 +0000 (21:00 +0000)]
IR-gen should not generate an MMX types unless the code is explicitly using MMX
intrinsics.
rdar://13213542

llvm-svn: 177911

11 years agoX86DisassemblerDecoder.c: Make this C89-compliant.
NAKAMURA Takumi [Mon, 25 Mar 2013 20:55:49 +0000 (20:55 +0000)]
X86DisassemblerDecoder.c: Make this C89-compliant.

llvm-svn: 177910

11 years agoWhitespace.
NAKAMURA Takumi [Mon, 25 Mar 2013 20:55:43 +0000 (20:55 +0000)]
Whitespace.

llvm-svn: 177909

11 years agoRemove some erroneous code I was using to debug debug mode.
Howard Hinnant [Mon, 25 Mar 2013 20:46:07 +0000 (20:46 +0000)]
Remove some erroneous code I was using to debug debug mode.

llvm-svn: 177908

11 years ago<rdar://problem/13498504>
Han Ming Ong [Mon, 25 Mar 2013 20:44:40 +0000 (20:44 +0000)]
<rdar://problem/13498504>

 Don't hard code vm page size in profiling code

llvm-svn: 177907

11 years agoFix a bug in fast-math fadd/fsub simplification.
Shuxin Yang [Mon, 25 Mar 2013 20:43:41 +0000 (20:43 +0000)]
Fix a bug in fast-math fadd/fsub simplification.

The problem is that the code mistakenly took for granted that following constructor
is able to create an APFloat from a *SIGNED* integer:

  APFloat::APFloat(const fltSemantics &ourSemantics, integerPart value)

rdar://13486998

llvm-svn: 177906

11 years ago[analyzer] Set concrete offset bindings to UnknownVal when processing symbolic offset...
Anna Zaks [Mon, 25 Mar 2013 20:43:24 +0000 (20:43 +0000)]
[analyzer] Set concrete offset bindings to UnknownVal when processing symbolic offset binding, even if no bindings are present.

This addresses an undefined value false positive from concreteOffsetBindingIsInvalidatedBySymbolicOffsetAssignment.

Fixes PR14877; radar://12991168.

llvm-svn: 177905

11 years agoDebug mode tests for vector::front and back.
Howard Hinnant [Mon, 25 Mar 2013 20:31:25 +0000 (20:31 +0000)]
Debug mode tests for vector::front and back.

llvm-svn: 177904

11 years ago[ELF] dont compute symbolname size in every loop
Shankar Easwaran [Mon, 25 Mar 2013 20:26:47 +0000 (20:26 +0000)]
[ELF] dont compute symbolname size in every loop

llvm-svn: 177903

11 years agoXFAIL DebugInfo tests for Hexagon.
Jyotsna Verma [Mon, 25 Mar 2013 20:20:34 +0000 (20:20 +0000)]
XFAIL DebugInfo tests for Hexagon.

Hexagon does not support -filetype=obj(direct object generation) flag. Therefore,
the following tests are being XFAILed:

test/DebugInfo/dwarf-public-names.ll
test/DebugInfo/member-pointers.ll
test/DebugInfo/two-cus-from-same-file.ll

llvm-svn: 177901

11 years ago<rdar://problem/13404009>
Han Ming Ong [Mon, 25 Mar 2013 20:11:18 +0000 (20:11 +0000)]
<rdar://problem/13404009>

Only get the attach_info's user ID if the supplied user info is invalid.

llvm-svn: 177900

11 years agoFix comment.
Akira Hatanaka [Mon, 25 Mar 2013 20:11:16 +0000 (20:11 +0000)]
Fix comment.

llvm-svn: 177899

11 years agoFormatting.
Eric Christopher [Mon, 25 Mar 2013 20:05:35 +0000 (20:05 +0000)]
Formatting.

llvm-svn: 177898

11 years agoMore vector::iterator debug mode tests. Run by adding to OPTIONS -D_LIBCPP_DEBUG2=1.
Howard Hinnant [Mon, 25 Mar 2013 20:03:19 +0000 (20:03 +0000)]
More vector::iterator debug mode tests.  Run by adding to OPTIONS -D_LIBCPP_DEBUG2=1.

llvm-svn: 177897

11 years agoDisable Execution Engine tests not supported by Hexagon.
Jyotsna Verma [Mon, 25 Mar 2013 20:02:14 +0000 (20:02 +0000)]
Disable Execution Engine tests not supported by Hexagon.

llvm-svn: 177896

11 years agoreflect comment to the official reference
Shankar Easwaran [Mon, 25 Mar 2013 19:50:40 +0000 (19:50 +0000)]
reflect comment to the official reference

llvm-svn: 177895

11 years agoDisable, for now, llvm/test/Transforms/GCOVProfiling on win32. I'll investigate them...
NAKAMURA Takumi [Mon, 25 Mar 2013 19:47:20 +0000 (19:47 +0000)]
Disable, for now, llvm/test/Transforms/GCOVProfiling on win32. I'll investigate them later.

llvm-svn: 177894

11 years ago<rdar://problem/13365424>
Enrico Granata [Mon, 25 Mar 2013 19:46:48 +0000 (19:46 +0000)]
<rdar://problem/13365424>

Ensure that option -Y also works for expression as it does for frame variable
Also, if the user passes an explicit format specifier when printing a variable, override the summary's decision to hide the value.

This is required for scenarios like this to work:
(lldb) p/x c
(Class) $0 = 0x0000000100adb7f8 NSObject

Previously this would say:
(lldb) p/x c
(Class) $0 = NSObject

ignoring the explicit format specifier

llvm-svn: 177893

11 years agoDebug mode: learning to crawl. I need to set up some tests that actually test that...
Howard Hinnant [Mon, 25 Mar 2013 19:29:35 +0000 (19:29 +0000)]
Debug mode: learning to crawl.  I need to set up some tests that actually test that the debug mode is working, but that won't cause problems when debug mode isn't on.  This is my first prototype of such a test.  It should call std::terminate() because it's comparing iterators from different containers.  And std::terminate() is rigged up to exit normally.  If debug mode fails, and doesn't call terminate, then the program asserts.  The test is a no-op if _LIBCPP_DEBUG2 is not defined or is defined to be 0.

llvm-svn: 177892

11 years agoAdding a failing test case for cpp11-migrate's Loop Convert Transform
Edwin Vane [Mon, 25 Mar 2013 19:24:24 +0000 (19:24 +0000)]
Adding a failing test case for cpp11-migrate's Loop Convert Transform

Related to PR15589.

llvm-svn: 177891

11 years agoUse direct types in PowerPC instruction patterns.
Ulrich Weigand [Mon, 25 Mar 2013 19:05:30 +0000 (19:05 +0000)]
Use direct types in PowerPC instruction patterns.

This commit updates the PowerPC back-end (PPCInstrInfo.td and
PPCInstr64Bit.td) to use types instead of register classes in
instruction patterns, along the lines of Jakob Stoklund Olesen's
changes in r177835 for Sparc.

llvm-svn: 177890

11 years agoUse direct types in PowerPC Pat patterns.
Ulrich Weigand [Mon, 25 Mar 2013 19:04:58 +0000 (19:04 +0000)]
Use direct types in PowerPC Pat patterns.

This commit updates the PowerPC back-end (PPCInstrInfo.td and
PPCInstr64Bit.td) to use types instead of register classes in
Pat patterns, along the lines of Jakob Stoklund Olesen's
changes in r177829 for Sparc.

llvm-svn: 177889

11 years agox86 -- add the XTEST instruction
Dave Zarzycki [Mon, 25 Mar 2013 18:59:43 +0000 (18:59 +0000)]
x86 -- add the XTEST instruction

llvm-svn: 177888

11 years agox86 -- disassemble the REP/REPNE prefix when needed
Dave Zarzycki [Mon, 25 Mar 2013 18:59:38 +0000 (18:59 +0000)]
x86 -- disassemble the REP/REPNE prefix when needed

This fixes Apple bug: 13493622

llvm-svn: 177887

11 years agoAdded PR number for failing win64 tests.
Fariborz Jahanian [Mon, 25 Mar 2013 18:56:45 +0000 (18:56 +0000)]
Added PR number for failing win64 tests.

llvm-svn: 177886

11 years ago<rdar://problem/13434476>
Enrico Granata [Mon, 25 Mar 2013 18:53:07 +0000 (18:53 +0000)]
<rdar://problem/13434476>

Making value objects properly iterable in constructs of the form
[ x for x in value_with_children ]

This would previously cause an endless loop because lacking a proper iterator object, Python will keep calling __getitem__() with increasing values of the index until it gets an IndexError
since SBValue::GetValueForExpressionPath() supports synthetic array members, no array index will ever really cause an IndexError to be raised, hence the endless iteration

class value_iter is an implementation of __iter__() that provides a terminating iterator over a value

llvm-svn: 177885

11 years agoRemove unnecessary attributes from test case.
Chad Rosier [Mon, 25 Mar 2013 18:36:19 +0000 (18:36 +0000)]
Remove unnecessary attributes from test case.

llvm-svn: 177882

11 years agoFixed a potential crash if layout for a structure
Sean Callanan [Mon, 25 Mar 2013 18:27:07 +0000 (18:27 +0000)]
Fixed a potential crash if layout for a structure
went wrong and we tried to get layout information
that wasn't there.

<rdar://problem/13490170>

llvm-svn: 177880

11 years agoThese test cases fail on the buildbot - skip on Linux for now, will figure out why
Enrico Granata [Mon, 25 Mar 2013 17:51:58 +0000 (17:51 +0000)]
These test cases fail on the buildbot - skip on Linux for now, will figure out why

llvm-svn: 177879

11 years agoRemove assert. There may be target-dependent attributes left.
Bill Wendling [Mon, 25 Mar 2013 17:42:20 +0000 (17:42 +0000)]
Remove assert. There may be target-dependent attributes left.

llvm-svn: 177878

11 years ago- Masking out SBCommandReturnObject::Printf() from the Python layer because SWIG...
Enrico Granata [Mon, 25 Mar 2013 17:37:39 +0000 (17:37 +0000)]
- Masking out SBCommandReturnObject::Printf() from the Python layer because SWIG and varargs do not get along well.
It is replaced by a Print("str") call which is equivalent to Printf("%s","str")
- Providing file-like behavior for SBStream with appropriate extension write() and flush() calls, plus documenting that these are only meant and only exist for Python
Documenting the file-like behavior on our website

llvm-svn: 177877

11 years agoDocumentation: Replace dead link for binfmt_misc
Dmitri Gribenko [Mon, 25 Mar 2013 17:08:25 +0000 (17:08 +0000)]
Documentation: Replace dead link for binfmt_misc

Patch by Thomas Schwinge.

llvm-svn: 177876