Akira Hatanaka
3634f34659
Revert change made in r142205.
...
llvm-svn: 142217
2011-10-17 18:33:24 +00:00
Akira Hatanaka
33fe8f908c
Redefine count-leading 0s and 1s instructions.
...
llvm-svn: 142216
2011-10-17 18:26:37 +00:00
Bill Wendling
42cf65fe51
Temporarily XFAIL waiting for a fix.
...
llvm-svn: 142215
2011-10-17 18:25:32 +00:00
Akira Hatanaka
8c446be204
Redefine mfhi/lo and mthi/lo instructions.
...
llvm-svn: 142214
2011-10-17 18:24:15 +00:00
Hal Finkel
38ff264857
Add comments to TargetLowering.h indicating that the set*Alignment functions take arguments in log2(bytes)
...
llvm-svn: 142213
2011-10-17 18:23:13 +00:00
Bill Wendling
2a83a71c2a
Now that we have the ReturnsTwice function attribute, this method is
...
obsolete. Check the attribute instead.
<rdar://problem/8031714>
llvm-svn: 142212
2011-10-17 18:22:52 +00:00
Akira Hatanaka
0317b65367
Redefine multiply and divide instructions.
...
llvm-svn: 142211
2011-10-17 18:21:24 +00:00
Akira Hatanaka
2736bbc09e
Add definition of a base class for logical shift/rotate instructions with two
...
source registers and redefine 32-bit and 64-bit instructions.
llvm-svn: 142210
2011-10-17 18:17:58 +00:00
Hal Finkel
afa70aa272
Remove >80-col line and unicode
...
llvm-svn: 142209
2011-10-17 18:10:08 +00:00
John McCall
8a6b59ad97
Add a new placeholder type to represent "unbridged"
...
casts in ARC.
No semantic analysis yet.
llvm-svn: 142208
2011-10-17 18:09:15 +00:00
Akira Hatanaka
73081309c3
Add definition of a base class for logical shift/rotate immediate instructions
...
and have 32-bit and 64-bit instructions derive from it.
llvm-svn: 142207
2011-10-17 18:06:56 +00:00
Chad Rosier
c17257c4cb
Removed set, but unused variable.
...
Patch by Joe Abbey <jabbey@arxan.com>.
llvm-svn: 142206
2011-10-17 18:01:59 +00:00
Akira Hatanaka
e3f27b79dc
Add definition of immZExt5_64 and redefine immZExt5 as an ImmLeaf.
...
llvm-svn: 142205
2011-10-17 18:01:00 +00:00
Michael J. Spencer
0050f59665
Fix CMake build.
...
llvm-svn: 142204
2011-10-17 17:50:39 +00:00
John McCall
a072f5d454
Add a helper function for determining whether an expression
...
has placeholder type.
llvm-svn: 142203
2011-10-17 17:42:19 +00:00
Devang Patel
69a4565e65
It is safe to speculate load from GOT. This fixes performance regression caused by r141689.
...
Radar 10281206.
llvm-svn: 142202
2011-10-17 17:35:01 +00:00
Jakob Stoklund Olesen
d4bde54da5
Admonish that MI is not IR and virtual registers have constraints.
...
In machine code, you can't just replaceRegWith() the same way you can
replaceAllUsesWith() in IR. Virtual registers may have different
register classes that need to be merged first.
llvm-svn: 142201
2011-10-17 17:33:39 +00:00
Devang Patel
76c8563239
svn mv Target/ARM/ARMGlobalMerge.cpp Transforms/Scalar/GlobalMerge.cpp
...
There is no reason to have simple IR level pass in lib/Target.
llvm-svn: 142200
2011-10-17 17:17:43 +00:00
Michael J. Spencer
4e25c02487
llvm-objdump: Add -s, which prints the contents of each section.
...
llvm-svn: 142199
2011-10-17 17:13:22 +00:00
Michael J. Spencer
b4f19a5d86
llvm-objdump: Add tests.
...
llvm-svn: 142198
2011-10-17 17:13:05 +00:00
Douglas Gregor
50cefbf212
When we end up having to parse the initializer of a C++ member early
...
in -fms-extensions mode, make sure we actually use that initializer
after having handled the declaration. Fixes PR11150.
llvm-svn: 142195
2011-10-17 17:09:53 +00:00
Hal Finkel
0ade47acd0
Instructions for Book E PPC should be word aligned, set function alignment to reflect this
...
llvm-svn: 142194
2011-10-17 17:01:41 +00:00
Owen Anderson
b7d9ee707d
Fix unused variable warning in the rare circumstance that we have no feature-dependent instructions.
...
llvm-svn: 142193
2011-10-17 16:56:47 +00:00
Sebastian Redl
962070d49c
Revert r142142: "Make a C-style cast a const-cast, to suppress a GCC warning."
...
Richard already fixed the underlying issue, so the cast was superfluous.
llvm-svn: 142192
2011-10-17 16:53:50 +00:00
Benjamin Kramer
77dfde0ba3
Pick low-hanging MatchEntry shrinkage fruit.
...
Shaves 200k off Release-Asserts clang binaries on i386.
llvm-svn: 142191
2011-10-17 16:18:09 +00:00
Hal Finkel
9dda3e0d13
use FileCheck and not grep in new tests
...
llvm-svn: 142189
2011-10-17 16:01:41 +00:00
Douglas Gregor
ebf0049901
For modules, all macros that aren't include guards are implicitly
...
public. Add a __private_macro__ directive to hide a macro, similar to
the __module_private__ declaration specifier.
llvm-svn: 142188
2011-10-17 15:32:29 +00:00
Douglas Gregor
71129d5e9e
When building a module, use the macro definitions on the command line
...
as part of the hash rather than ignoring them. This means we'll end up
building more module variants (overall), but it allows configuration
macros such as NDEBUG to work so long as they're specified via command
line. More to come in this space.
llvm-svn: 142187
2011-10-17 14:55:37 +00:00
Erik Verbruggen
fd979b1eaf
Fixed merge-mistake where ActOnAccessSpecifier was called twice for every access specifier. The testcase has been changed to catch this too.
...
llvm-svn: 142186
2011-10-17 09:54:52 +00:00
Bill Wendling
f95c94e9a6
Don't download and compile compiler-rt, libcxx, and libcxxabi by default.
...
llvm-svn: 142185
2011-10-17 08:41:20 +00:00
Tobias Grosser
23b3666850
ScopInfo: Fix ctx->ref != 0 problem
...
Reported by: Yabin Hu <yabin.hwu@gmail.com>
llvm-svn: 142184
2011-10-17 08:32:36 +00:00
Nadav Rotem
83d1a93cf4
Clean the triple, add check lines.
...
llvm-svn: 142183
2011-10-17 07:07:51 +00:00
Nadav Rotem
89c282e96f
Previously v2i32 vectors were legalized to v4i32. Now, they are legalized to
...
v2i64. These tests do not check MMX nor zmoving into them.
llvm-svn: 142182
2011-10-17 06:59:01 +00:00
Richard Smith
eda61288ad
Perform an lvalue-to-rvalue conversion on an array index in a __builtin_offsetof expression.
...
llvm-svn: 142179
2011-10-17 05:48:07 +00:00
Craig Topper
e20793a4f1
Don't use inline assembly in 64-bit Visual Studio. Unfortunately, this means that cpuid leaf 7 can't be queried on versions of Visual Studio earlier than VS 2008 SP1. Fixes PR11147.
...
llvm-svn: 142177
2011-10-17 05:33:10 +00:00
Bill Wendling
26d2780d07
Add comment explaining that the order of processing doesn't matter here.
...
llvm-svn: 142176
2011-10-17 05:25:09 +00:00
Bill Wendling
7b7d077c29
Update to disable asserts. Build a phase 3 compiler, and compare phase 2 files against phase 3.
...
llvm-svn: 142173
2011-10-17 04:46:54 +00:00
Hal Finkel
7ccb391d21
Test case for CanLowerReturn fix (r141981)
...
llvm-svn: 142172
2011-10-17 04:03:59 +00:00
Hal Finkel
ad677b64db
Add PPC 440 scheduler and some associated tests (new files)
...
llvm-svn: 142171
2011-10-17 04:03:55 +00:00
Hal Finkel
6fa5697af0
Add PPC 440 scheduler and some associated tests
...
llvm-svn: 142170
2011-10-17 04:03:49 +00:00
Chandler Carruth
3e8aa65bc2
Add a routine to swap branch instruction operands, and update any
...
profile metadata at the same time. Use it to preserve metadata attached
to a branch when re-writing it in InstCombine.
Add metadata to the canonicalize_branch InstCombine test, and check that
it is tranformed correctly.
Reviewed by Nick Lewycky!
llvm-svn: 142168
2011-10-17 01:11:57 +00:00
Richard Smith
00ab3ae72b
Slightly simplify a constant expression check. No functional change.
...
llvm-svn: 142167
2011-10-16 23:01:09 +00:00
Bill Wendling
9aa3943d9e
Overhaul the 'test-release' script.
...
This removes support for building llvm-gcc. It will eventually add support for
building other projects.
llvm-svn: 142165
2011-10-16 22:44:08 +00:00
Chandler Carruth
91f4faf877
Delete a dead member. Dunno if this was ever used, but the current code
...
directly manipulates the weights inside of the BranchProbabilityInfo
that is passed in.
llvm-svn: 142163
2011-10-16 22:27:54 +00:00
Chandler Carruth
47e1db1e59
Add a proper LLVM banner to this file.
...
llvm-svn: 142162
2011-10-16 22:15:07 +00:00
Chandler Carruth
01ca696581
Add a testcase for r142121 based on an idea from Richard Smith. Thanks!
...
llvm-svn: 142160
2011-10-16 21:33:06 +00:00
Richard Smith
725810a2bb
Split apart the state accumulated during constant expression evaluation and the
...
end result. Use this split to propagate state information and diagnostics
through more of constant expression evaluation.
llvm-svn: 142159
2011-10-16 21:26:27 +00:00
Nadav Rotem
053a7358d6
Add tripple and stabalize a few more tests.
...
llvm-svn: 142158
2011-10-16 21:20:54 +00:00
Peter Collingbourne
5aa6ecb619
Add sema checks for calls to functions taking static array parameters
...
llvm-svn: 142157
2011-10-16 21:17:32 +00:00
Bill Wendling
ef22c60abd
Update the tree before applying patch.
...
llvm-svn: 142155
2011-10-16 20:59:25 +00:00