NAKAMURA Takumi
e9b89b4fe5
[CMake] Add llvm-mcmarkup to check-llvm.
...
llvm-svn: 167208
2012-11-01 02:13:50 +00:00
NAKAMURA Takumi
68d1700eae
test/CodeGen/X86/fp-fast.ll: Add +avx.
...
llvm-svn: 167207
2012-11-01 02:13:45 +00:00
Jason Molenda
0b2dbe0ebe
Fix an error message in debugserver so it doesn't print "Unable to
...
launch process (null)" because we changed argv while doing argument
parsing.
llvm-svn: 167202
2012-11-01 02:02:59 +00:00
Argyrios Kyrtzidis
b26a24cca2
[libclang] Introduce clang_Cursor_getReceiverType which returns the CXType for
...
the receiver of an ObjC message expression.
rdar://12578643
llvm-svn: 167201
2012-11-01 02:01:34 +00:00
Owen Anderson
b351c8d692
Add a few more simple fast-math constant propagations and cancellations.
...
llvm-svn: 167200
2012-11-01 02:00:53 +00:00
NAKAMURA Takumi
1e5eac6dfe
clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h: Appease msvc.
...
llvm-svn: 167199
2012-11-01 01:47:02 +00:00
Jakob Stoklund Olesen
9892a4b794
Exploit the new identity composition in composeSubRegIndices().
...
The static compose() function in RegisterCoalescer was doing the exact
same thing.
llvm-svn: 167198
2012-11-01 01:15:43 +00:00
Jim Ingham
455fa5ccc6
There seems to be some odd corner case where we shut down the ProcessGDBRemote, but we haven't managed to shut down the async thread. That causes the ProcessGDBRemote::AsyncThread to crash when it wakes up. So I changed StartAsyncThread and StopAsyncThread to be callable multiple times (only the first one does anything) so that we can just shut it down unequivocally in the ProcessGDBRemote destructor.
...
<rdar://problem/12602981>
llvm-svn: 167197
2012-11-01 01:15:33 +00:00
Jakub Staszak
4e45abf0ae
Don't insert and erase load instruction. Simply create (new) and delete it.
...
llvm-svn: 167196
2012-11-01 01:10:43 +00:00
Jordan Rose
a4a9b3691d
[analyzer] Optimize assumeDual by assuming constraint managers are consistent.
...
Specifically, if adding a constraint makes the current system infeasible,
assume the constraint is false, instead of attempting to add its negation.
In +Asserts builds we will still assert that at least one state is feasible.
Patch by Ryan Govostes!
llvm-svn: 167195
2012-11-01 01:05:39 +00:00
Jim Ingham
490bccd659
Switch from using KERN_PROCARGS2 to get the path to the executed process to proc_pidpath. The former was flakey, and the whole point of libproc is to protect us from potential flakiness at that level...
...
<rdar://problem/12594781>
llvm-svn: 167194
2012-11-01 01:04:46 +00:00
Argyrios Kyrtzidis
d6bdafc858
[lit] For the "case-insensitive-filesystem" make sure to create the test temporary file
...
in the test output directory.
llvm-svn: 167193
2012-11-01 00:59:15 +00:00
Andrew Kaylor
f2c10782ce
Streamlined memory manager hierarchy for MCJIT and RuntimeDyld.
...
Patch by Ashok Thirumurthi
llvm-svn: 167192
2012-11-01 00:46:04 +00:00
Michael J. Spencer
be6f003275
[Support] Fix StrError on Windows to actually return the error string...
...
llvm-svn: 167191
2012-11-01 00:34:09 +00:00
Jakob Stoklund Olesen
366bd86335
Generate a table-driven version of TRI::composeSubRegIndices().
...
Explicitly allow composition of null sub-register indices, and handle
that common case in an inlinable stub.
Use a compressed table implementation instead of the previous nested
switches which generated pretty bad code.
llvm-svn: 167190
2012-11-01 00:32:10 +00:00
Jordan Rose
40bb1249eb
[analyzer] Fix typo in r167186.
...
llvm-svn: 167189
2012-11-01 00:25:15 +00:00
NAKAMURA Takumi
7318409802
clang/test/Index/code-completion-skip-bodies.cpp: Add XFAIL while investigating.
...
llvm-svn: 167188
2012-11-01 00:20:00 +00:00
Jordan Rose
2b213720f9
[analyzer] Minor cleanup in SimpleStreamChecker's class definition.
...
No functionality change.
llvm-svn: 167187
2012-11-01 00:18:41 +00:00
Jordan Rose
14fe9f3631
[analyzer] Rename ConditionTruthVal::isTrue to isConstrainedTrue.
...
(and the same for isFalse)
No functionality change.
llvm-svn: 167186
2012-11-01 00:18:27 +00:00
Andrew Kaylor
8565e50ad4
Fixed format strings to avoid pointer truncation during 64-bit debugging.
...
llvm-svn: 167185
2012-11-01 00:17:11 +00:00
Eli Friedman
1e95d4bb1e
Correctly reject gotos in function-level try blocks. PR14225.
...
llvm-svn: 167184
2012-10-31 23:55:28 +00:00
Greg Clayton
d9c2370b33
Added the plists to the debugserver project and fixed the labels for the new plists.
...
llvm-svn: 167183
2012-10-31 23:49:14 +00:00
Greg Clayton
e11b43bc69
More launchd style plists.
...
llvm-svn: 167182
2012-10-31 23:43:37 +00:00
Jim Grosbach
acd8801e25
MC: Simple example parser for MC assembly markup.
...
Nothing fancy, just a simple demonstration parser.
llvm-svn: 167181
2012-10-31 23:24:13 +00:00
Shuxin Yang
01efdd6c28
(For X86) Enhancement to add-carray/sub-borrow (adc/sbb) optimization.
...
The adc/sbb optimization is to able to convert following expression
into a single adc/sbb instruction:
(ult) ... = x + 1 // where the ult is unsigned-less-than comparison
(ult) ... = x - 1
This change is to flip the "x >u y" (i.e. ugt comparison) in order
to expose the adc/sbb opportunity.
llvm-svn: 167180
2012-10-31 23:11:48 +00:00
Filipe Cabecinhas
6fd25ac3e2
Use libxml2 on Mac OS X.
...
llvm-svn: 167179
2012-10-31 23:02:00 +00:00
Anna Zaks
a57e8ffdba
[analyzer] Fix a bug in SimpleStreamChecker - return after sink.
...
Thanks Ted.
llvm-svn: 167176
2012-10-31 22:17:48 +00:00
Greg Clayton
48baf7a788
Resolve any bundle paths we are given when the specified executable is a bundle.
...
llvm-svn: 167175
2012-10-31 21:44:39 +00:00
Nadav Rotem
4cb8cdab5e
LoopVectorize: Preserve NSW, NUW and IsExact flags.
...
llvm-svn: 167174
2012-10-31 21:40:39 +00:00
Chad Rosier
37756b0714
[driver] Remove an extra space with the -iprefix option, so that
...
matching works correctly.
Part of rdar://12329974
llvm-svn: 167173
2012-10-31 21:08:30 +00:00
Argyrios Kyrtzidis
d7c16b2543
[PCH] Remove the stat cache from the PCH file.
...
The stat cache became essentially useless ever since we started
validating all file entries in the PCH.
But the motivating reason for removing it now is that it also affected
correctness in this situation:
-You have a header without include guards (using "#pragma once" or #import)
-When creating the PCH:
-The same header is referenced in an #include with different filename cases.
-In the PCH, of course, we record only one file entry for the header file
-But we cache in the PCH file the stat info for both filename cases
-Then the source files are updated and the header file is updated in a way that
its size and modification time are the same but its inode changes
-When using the PCH:
-We validate the headers, we check that header file and we create a file entry with its current inode
-There's another #include with a filename with different case than the previously created file entry
-In order to get its stat info we go through the cached stat info of the PCH and we receive the old inode
-because of the different inodes, we think they are different files so we go ahead and include its contents.
Removing the stat cache will potentially break clients that are attempting to use the stat cache
as a way of avoiding having the actual input files available. If that use case is important, patches are welcome
to bring it back in a way that will actually work correctly (i.e., emit a PCH that is self-contained, coping with
literal strings, line/column computations, etc.).
This fixes rdar://5502805
llvm-svn: 167172
2012-10-31 20:59:50 +00:00
Greg Clayton
b70c2309b6
More fixes from MSVC warnings found by Carlo Kok.
...
llvm-svn: 167171
2012-10-31 20:56:43 +00:00
Nadav Rotem
6d7d39783d
Fix a bug in the cost calculation of vector casts. Detect situations where bitcasts cost zero.
...
llvm-svn: 167170
2012-10-31 20:52:26 +00:00
Greg Clayton
5d361d7e3a
Carlo Kok was compiling with MSVC, caught some more issues.
...
llvm-svn: 167168
2012-10-31 20:51:31 +00:00
Greg Clayton
26ab83d3dd
Carlo Kok found an issue where default parameters were causing the wrong argument to be passed. I got rid of the default args so we don't run into this.
...
llvm-svn: 167167
2012-10-31 20:49:04 +00:00
Michael J. Spencer
e337e60552
Fix cl brokeness.
...
cl is not attempting to complete a templated class when used in this
context. The conversion forces this to happen.
Thanks to Richard Smith for figuring this out.
llvm-svn: 167166
2012-10-31 20:47:30 +00:00
Michael J. Spencer
d2f7e50867
Add missing include.
...
llvm-svn: 167165
2012-10-31 20:47:11 +00:00
Andrew Kaylor
66ebd33bd3
Mark code, not data, as executable in lli RemoteTarget simulator.
...
llvm-svn: 167164
2012-10-31 20:37:14 +00:00
Michael Gottesman
3d423040f5
[clang tests] Added require ppc64-registered-target to Headers/altivec-header.c to ensure it only runs on ppc64.
...
llvm-svn: 167162
2012-10-31 20:20:04 +00:00
Chad Rosier
2933d05033
[driver] Remove an extra space with the -internal-externc-isystem option, so
...
that matching works correctly.
Part of rdar://12329974
llvm-svn: 167161
2012-10-31 19:28:55 +00:00
Greg Clayton
4a6591da25
Patch for issue found by Carlo Kok. Fixed a type issue where an ';' was incorrectly following an if statement. There actually isn't a need for the if statement, so it was removed.
...
llvm-svn: 167160
2012-10-31 19:05:35 +00:00
Manman Ren
b505d33a5c
ARM AAPCS-VFP: fix tracking of allocated VFP registers.
...
According to the spec, we can backfill VFP registers that were skipped due
to alignment constraints.
llvm-svn: 167159
2012-10-31 19:02:26 +00:00
Chad Rosier
bd465a9cc7
[driver] Remove the -ccc-host-triple alias. This has been replaced by the
...
-target option.
rdar://10692880
llvm-svn: 167158
2012-10-31 18:59:38 +00:00
Rafael Espindola
27783bc9c1
Remove Triple::getArchTypeForDarwinArchName. I lives on the clang driver now.
...
llvm-svn: 167157
2012-10-31 18:52:25 +00:00
Rafael Espindola
dcbf698dde
getArchTypeForDarwinArchName is only used in the clang driver, copy it there.
...
I will remove it from llvm in the next commit.
llvm-svn: 167156
2012-10-31 18:51:07 +00:00
Alexander Kornienko
0360d1edee
Fix for -ast-dump-filter
...
Summary:
-ast-dump-filter implementation used to stop AST traversal after traversing a NULL Decl node.
Added test and fixed.
Reviewers: djasper, klimek, rsmith
Reviewed By: djasper
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D93
llvm-svn: 167155
2012-10-31 18:46:31 +00:00
Akira Hatanaka
4f5ef21869
[mips] Set isAsCheapAsAMove flag on ADDiu and DADDiu, which enables
...
re-materialization of immediate loads.
llvm-svn: 167153
2012-10-31 18:37:55 +00:00
Chad Rosier
83f16bf445
[driver] Completely rework how superfluous options are stripped out of the crash
...
diagnostics script.
This addresses the FIXME pertaining to quoted arguments. We also delineate
between those flags that have an argument (e.g., -D macro, -MF file) and
those that do not (e.g., -M, -MM, -MG). Finally, we add the -dwarf-debug-flags
to the list of flags to be removed.
rdar://12329974
llvm-svn: 167152
2012-10-31 18:31:33 +00:00
Ulrich Weigand
9936f137eb
Add "static" to some functions in altivec.c where it was missing.
...
llvm-svn: 167148
2012-10-31 18:17:07 +00:00
Amara Emerson
72b86293cb
MCJIT unit test: add calls to ensure that instruction caches are properly invalidated before code execution.
...
llvm-svn: 167146
2012-10-31 17:44:16 +00:00