Matt Beaumont-Gay
1571652af9
Only print a semicolon after "no known conversion for Nth argument" if there
...
is a following clause.
llvm-svn: 159369
2012-06-28 19:20:41 +00:00
Benjamin Kramer
8652ca8a6a
Now that we use the GCC builtin <-> llvm intrinsic, dead code eliminate the handwritten emitter.
...
The generated code uncovered an invalid prototype for __builtin_mips_shilo, fix it along the way.
llvm-svn: 159368
2012-06-28 19:10:01 +00:00
Benjamin Kramer
ae3c300625
Enable automatic GCC<->LLVM intrinsic translation for mips.
...
llvm-svn: 159367
2012-06-28 19:09:53 +00:00
Simon Atanasyan
07ce7d8fb5
Support MIPS DSP Rev1 intrinsics.
...
This patch was reviewed in the llvm-commits list by Jim Grosbach.
llvm-svn: 159366
2012-06-28 18:23:16 +00:00
Dmitry Vyukov
a932bdfc1e
tsan: clear shadow for ucontext, because it's visible to user
...
llvm-svn: 159365
2012-06-28 18:20:50 +00:00
Simon Atanasyan
7f3bdb37da
Define MIPS DSP Rev1 intrinsics. That allows frontend to emit a correct IR.
...
This patch was reviewed in the llvm-commits list by Jim Grosbach.
llvm-svn: 159364
2012-06-28 18:20:28 +00:00
Greg Clayton
a7fb1dcd4b
Listen to the "--verbose" flag when running "crashlog" and if verbose is enabled, then dump full paths to source files and modules.
...
Changed much of the output that was coming out with "--verbose" over to use the new "--debug" flag.
llvm-svn: 159363
2012-06-28 18:10:14 +00:00
Greg Clayton
20351ea310
Fixed a logic error which stopped paths from being properly remapped.
...
llvm-svn: 159362
2012-06-28 18:09:12 +00:00
Dmitry Vyukov
fa985a02ef
tsan: fix crashes if signal is caught during thread bootstrap or shutdown
...
llvm-svn: 159361
2012-06-28 18:07:46 +00:00
Rafael Espindola
b27564af76
Compare the canonical types and document why we give up on the covariant case.
...
llvm-svn: 159360
2012-06-28 17:57:36 +00:00
Nuno Lopes
6317bfb26a
mark operator new(std::nothrow) as noalias (aka __attribute__((malloc))
...
llvm-svn: 159359
2012-06-28 16:47:34 +00:00
Jordan Rose
ee3d99f6be
Warn on weak properties declared in protocols as well.
...
Previously this caused a crash, since protocols are not interfaces.
llvm-svn: 159357
2012-06-28 16:39:28 +00:00
Nuno Lopes
181d67ecb1
MemoryBuiltins:
...
- recognize C++ new(std::nothrow) friends
- ignore ExtractElement and ExtractValue instructions in size/offset analysis (all easy cases are probably folded away before we get here)
- also recognize realloc as noalias
llvm-svn: 159356
2012-06-28 16:34:03 +00:00
Dmitri Gribenko
5c8897d37d
Remove redundant check.
...
llvm-svn: 159355
2012-06-28 16:25:36 +00:00
Dmitri Gribenko
df17d64881
Attaching comments to declarations: don't attach comments to implicit declarations.
...
llvm-svn: 159354
2012-06-28 16:19:39 +00:00
Nuno Lopes
8650fb8e0e
make LazyValueInfo analyze the default case of switch statements (we know that in the default branch the value cannot be any of the switch cases)
...
llvm-svn: 159353
2012-06-28 16:13:37 +00:00
Nuno Lopes
5020db2a8c
add ConstantRange::difference (to perform set difference/relative complement)
...
llvm-svn: 159352
2012-06-28 16:10:13 +00:00
Rafael Espindola
debc71cea3
Disable devirtualization when we have covariant returns. I will open a bug
...
for tracking this.
llvm-svn: 159351
2012-06-28 15:11:39 +00:00
Rafael Espindola
3b33c4ecf0
Don't devirtualize calls when we don't have the correct type of the this pointer
...
handy. It can be done, but we would have to build a derived-to-base cast
during codegen to compute the correct this pointer.
I will handle covariant returns next.
llvm-svn: 159350
2012-06-28 14:28:57 +00:00
Benjamin Kramer
92658b8149
Devirtualize DIScope and subclasses.
...
Nothing in here makes use of the virtuality.
llvm-svn: 159349
2012-06-28 14:25:45 +00:00
Alexey Samsonov
6b03aa1bf7
[ASan] fix the build - erase second main as we link all test sources together
...
llvm-svn: 159348
2012-06-28 13:44:27 +00:00
Alexey Samsonov
3fe0d4d9aa
[ASan] silence various warnings in cmake build of asan unit tests
...
llvm-svn: 159347
2012-06-28 13:12:07 +00:00
Alexey Samsonov
b4edab5a6b
[ASan] cmake support for running asan unit tests on Mac
...
llvm-svn: 159345
2012-06-28 12:19:52 +00:00
Kostya Serebryany
c387ca7bab
[asan] set a hard limit on the number of instructions instrumented pear each BB. This is (hopefully temporary) workaround for PR13225
...
llvm-svn: 159344
2012-06-28 09:34:41 +00:00
Alexey Samsonov
ecf5436e9c
[ASan] update cmake rules so that ASan unit tests can include googletest (and, hence, llvm) headers when they are built by fresh Clang
...
llvm-svn: 159343
2012-06-28 09:32:19 +00:00
Dmitry Vyukov
e4df904770
tsan: add missing file (forgot to svn add in r159294)
...
llvm-svn: 159341
2012-06-28 09:04:45 +00:00
Bill Wendling
e28d50a889
Sphinxify the bitcode format document.
...
llvm-svn: 159340
2012-06-28 08:43:12 +00:00
Alexey Samsonov
70386aaffa
[ASan] cleanup: trailing semicolons, trailing colons in enums
...
llvm-svn: 159338
2012-06-28 08:27:24 +00:00
Alexey Samsonov
fa42dd7ac4
[Sanitizer] fight more semicolons in macro definitions (to please mac cmake build)
...
llvm-svn: 159337
2012-06-28 08:07:19 +00:00
Hans Wennborg
f60f6af9e8
Add -ftls-model command-line flag.
...
This allows for setting the default TLS model. (PR9788)
llvm-svn: 159336
2012-06-28 08:01:44 +00:00
Richard Smith
608c0b65d7
Add warning flag -Winvalid-pp-token for preprocessing-tokens which have
...
undefined behaviour, and move the diagnostic for '' from an Error into
an ExtWarn in this group. This is important for some users of the preprocessor,
and is necessary for gcc compatibility.
llvm-svn: 159335
2012-06-28 07:51:56 +00:00
Alexey Samsonov
420a4ed652
Fix Windows build after r159281: s/iterator/const_iterator
...
llvm-svn: 159334
2012-06-28 07:47:50 +00:00
Chandler Carruth
3511dd30c8
Move the setup for variables that are expanded in the lit.site.cfg into
...
a dedicated helper function. This will enable re-using the same logic
for Clang's lit setup, etc.
llvm-svn: 159333
2012-06-28 06:36:24 +00:00
Hal Finkel
918ca2b8b7
Precompute SCEV pointer analysis prior to instruction fusion in BBVectorize.
...
When both a load/store and its address computation are being vectorized, it can
happen that the address-computation vectorization destroys SCEV's ability
to analyize the relative pointer offsets. As a result (like with the aliasing
analysis info), we need to precompute the necessary information prior to
instruction fusing.
This was found during stress testing (running through the test suite with a very
low required chain length); unfortunately, I don't have a small test case.
llvm-svn: 159332
2012-06-28 05:42:45 +00:00
Hal Finkel
0873d73cbf
Remove a useless check in BBVectorize.
...
A shuffle mask will always be a constant, but I did not realize that
when I originally wrote the code.
llvm-svn: 159331
2012-06-28 05:42:43 +00:00
Hal Finkel
f2dcb9a9c4
Allow BBVectorize to form non-2^n-length vectors.
...
The original algorithm only used recursive pair fusion of equal-length
types. This is now extended to allow pairing of any types that share
the same underlying scalar type. Because we would still generally
prefer the 2^n-length types, those are formed first. Then a second
set of iterations form the non-2^n-length types.
Also, a call to SimplifyInstructionsInBlock has been added after each
pairing iteration. This takes care of DCE (and a few other things)
that make the following iterations execute somewhat faster. For the
same reason, some of the simple shuffle-combination cases are now
handled internally.
There is some additional refactoring work to be done, but I've had
many requests for this feature, so additional refactoring will come
soon in future commits (as will additional test cases).
llvm-svn: 159330
2012-06-28 05:42:42 +00:00
Hal Finkel
74e5225c92
Refactor operation equivalence checking in BBVectorize by extending Instruction::isSameOperationAs.
...
Maintaining this kind of checking in different places is dangerous, extending
Instruction::isSameOperationAs consolidates this logic into one place. Here
I've added an optional flags parameter and two flags that are important for
vectorization: CompareIgnoringAlignment and CompareUsingScalarTypes.
llvm-svn: 159329
2012-06-28 05:42:26 +00:00
Bill Wendling
a2ccbf0f85
Only print out the tag if it's there.
...
llvm-svn: 159328
2012-06-28 02:17:58 +00:00
Bill Wendling
74ac023cf6
Don't output an empty string.
...
llvm-svn: 159327
2012-06-28 02:12:20 +00:00
Rafael Espindola
ecbe2e9795
Fix another issue with devirtualizing calls to final methods by passing them
...
the correct this pointer. There is some potential for sharing a bit more
code with canDevirtualizeMemberFunctionCalls, but that can be done in an
independent patch.
llvm-svn: 159326
2012-06-28 01:56:38 +00:00
Dmitri Gribenko
0743f94671
Cleanup \brief comment. Since it is a single paragraph, no need to save newlines there.
...
llvm-svn: 159325
2012-06-28 01:38:21 +00:00
Jack Carter
6c0bc0b378
The Mips specific inline asm operand modifier 'z' has the
...
following description in the gnu sources:
Print $0 if operand is zero otherwise print the op normally.
llvm-svn: 159324
2012-06-28 01:33:40 +00:00
Greg Clayton
fe251c88d9
Added a new top level "Resources" group for plist files and moved a few dylib and .a files into the "Libraries" group.
...
llvm-svn: 159323
2012-06-28 01:28:49 +00:00
Enrico Granata
c76715f3be
<rdar://problem/11679380> Make sure we do not fallback to software stepping when hardware stepping should work but fails to get enabled. Also removing dead code paths
...
llvm-svn: 159322
2012-06-28 01:23:30 +00:00
Eric Christopher
c939e50846
Fix grammar.
...
llvm-svn: 159321
2012-06-28 01:20:05 +00:00
Nuno Lopes
e6e049020b
make LVI::getEdgeValue() always intersect the constraints of the edge with the range of the block. Previously it was only performing the intersection for a few cases, thus losing precision
...
llvm-svn: 159320
2012-06-28 01:16:18 +00:00
Nuno Lopes
ebb0c94e1b
fix a off-by-one bug in intersectWith(), and add a bunch of tests
...
llvm-svn: 159319
2012-06-28 00:59:33 +00:00
Bill Wendling
5cb50c5bd5
Use the interface through DIDescriptor to get the tag/version for a debug info
...
MDNode.
llvm-svn: 159317
2012-06-28 00:41:44 +00:00
Richard Trieu
521fa24d62
Silence unused variable warning.
...
llvm-svn: 159316
2012-06-28 00:41:11 +00:00
Bill Wendling
4adcf78275
Update the #include to find the DebugInfo.h in the correct place
...
llvm-svn: 159315
2012-06-28 00:30:19 +00:00