| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 158393
|
| |
|
|
|
|
|
|
|
|
| |
This patch extends FoldBranchToCommonDest to fold unconditional branches.
For unconditional branches, we fold them if it is easy to update the phi nodes
in the common successors.
rdar://10554090
llvm-svn: 158392
|
| |
|
|
|
|
| |
for U+FFFF.
llvm-svn: 158391
|
| |
|
|
|
|
| |
escape sequences.
llvm-svn: 158390
|
| |
|
|
|
|
|
|
| |
TableGen backends are simply written as functions now.
Patch by Sean Silva!
llvm-svn: 158389
|
| |
|
|
|
|
|
|
| |
Get rid of a bunch of header files. TableGen output should be unaffected.
Patch by Sean Silva!
llvm-svn: 158388
|
| |
|
|
|
|
|
| |
Remove the instructions on manually adding boilerplate code of AttributeList::Kind and AttributeList::getKind().
Both are now generated by tblgen.
llvm-svn: 158386
|
| |
|
|
|
|
| |
Patch by Reed Kotler.
llvm-svn: 158382
|
| |
|
|
|
|
|
|
| |
until this directive is pushed in gas to open source fsf
Patch by Reed Kotler.
llvm-svn: 158381
|
| |
|
|
|
|
|
|
|
|
|
| |
For store->load dependencies that may alias, we should always use
TrueMemOrderLatency, which may eventually become a subtarget hook. In
effect, we should guarantee at least TrueMemOrderLatency on at least
one DAG path from a store to a may-alias load.
This should fix the standard mode as well as -enable-aa-sched-mi".
llvm-svn: 158380
|
| |
|
|
| |
llvm-svn: 158379
|
| |
|
|
|
|
|
|
|
| |
non mips16
2. fix some comments to change OPcode->EXTEND for extended instructions
Patch by Reed Kotler.
llvm-svn: 158378
|
| |
|
|
|
|
| |
unsigned type is narrowing if the source is non-constant or negative.
llvm-svn: 158377
|
| |
|
|
|
|
|
|
|
|
| |
- Support mangling virtual function tables (base tables need work on the
ManglerContext interface).
- Correct mangling of local scopes (i.e. functions and C++ methods).
- Replace every llvm_unreachable() for actually-reachable code with a
diagnostic.
llvm-svn: 158376
|
| |
|
|
| |
llvm-svn: 158375
|
| |
|
|
| |
llvm-svn: 158374
|
| |
|
|
| |
llvm-svn: 158373
|
| |
|
|
|
|
| |
statements are allowed on the same line.
llvm-svn: 158372
|
| |
|
|
| |
llvm-svn: 158371
|
| |
|
|
| |
llvm-svn: 158370
|
| |
|
|
|
|
|
| |
POD type, causing memory corruption when mapping to APInts with bitwidth > 64.
Merge another crash testcase into crash.ll while there.
llvm-svn: 158369
|
| |
|
|
|
|
| |
Patch by Jush Lu <jush.msn@gmail.com>.
llvm-svn: 158368
|
| |
|
|
|
|
|
|
|
|
| |
Specifically, improve the handling of whitespace, stop saving tokens that are
in comments and fix the case where we have a comment followed by a closing brace
on the next line.
Unfortunately, there's no easy way of testing this code.
llvm-svn: 158367
|
| |
|
|
|
|
|
| |
On the POWER7, adds and logical operations can also be handled
in the load/store pipelines. We'll call these IntSimple.
llvm-svn: 158366
|
| |
|
|
| |
llvm-svn: 158365
|
| |
|
|
| |
llvm-svn: 158364
|
| |
|
|
|
|
|
|
|
| |
POWER4 is a 64-bit CPU (better matched to the 970).
The g3 is really the 750 (no altivec), the g4+ is the 74xx (not the 750).
Patch by Andreas Tobler.
llvm-svn: 158363
|
| |
|
|
| |
llvm-svn: 158359
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
topologies, it is quite possible for a leaf node to have huge multiplicity, for
example: x0 = x*x, x1 = x0*x0, x2 = x1*x1, ... rapidly gives a value which is x
raised to a vast power (the multiplicity, or weight, of x). This patch fixes
the computation of weights by correctly computing them no matter how big they
are, rather than just overflowing and getting a wrong value. It turns out that
the weight for a value never needs more bits to represent than the value itself,
so it is enough to represent weights as APInts of the same bitwidth and do the
right overflow-avoiding dance steps when computing weights. As a side-effect it
reduces the number of multiplies needed in some cases of large powers. While
there, in view of external uses (eg by the vectorizer) I made LinearizeExprTree
static, pushing the rank computation out into users. This is progress towards
fixing PR13021.
llvm-svn: 158358
|
| |
|
|
|
|
| |
make sure that we walk the definition. Fixes <rdar://problem/11427742>.
llvm-svn: 158357
|
| |
|
|
| |
llvm-svn: 158356
|
| |
|
|
| |
llvm-svn: 158353
|
| |
|
|
| |
llvm-svn: 158351
|
| |
|
|
|
|
|
|
|
| |
printed.
There is otherwise not a newline between the CPU name and the start of the next
pass's output which makes both difficult to read.
llvm-svn: 158350
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
__ppc__.
Original commit message:
Move PPC host-CPU detection logic from PPCSubtarget into sys::getHostCPUName().
Both the new Linux functionality and the old Darwin functions have been moved.
This change also allows this information to be queried directly by clang and
other frontends (clang, for example, will now have real -mcpu=native support).
llvm-svn: 158349
|
| |
|
|
|
|
| |
all. Suppresses follow-on errors mentioned in PR13074.
llvm-svn: 158348
|
| |
|
|
|
|
| |
Patch by David Röthlisberger.
llvm-svn: 158347
|
| |
|
|
| |
llvm-svn: 158346
|
| |
|
|
|
|
|
|
|
| |
sys::getHostCPUName()."
This commit broke most of the PowerPC unit tests when running on
Intel/Apple.
llvm-svn: 158345
|
| |
|
|
| |
llvm-svn: 158344
|
| |
|
|
| |
llvm-svn: 158343
|
| |
|
|
|
|
|
|
|
|
|
| |
thread local data, embed them in the class using a uint64_t and make sure
we get compiler errors if there's a platform where this is not big enough.
This makes ThreadLocal more safe for using it in conjunction with CrashRecoveryContext.
Related to crash in rdar://11434201.
llvm-svn: 158342
|
| |
|
|
|
|
|
|
|
| |
This does not actually give us the right behavior for reinterpret_cast
of references. Reverting so I can think about it some more.
This reverts commit 50a75a6e26a49011150067adac556ef978639fe6.
llvm-svn: 158341
|
| |
|
|
|
|
| |
pressure.
llvm-svn: 158340
|
| |
|
|
| |
llvm-svn: 158339
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
These casts only appear in very well-defined circumstances, in which the
target of a reinterpret_cast or a function formal parameter is an lvalue
reference. According to the C++ standard, the following are equivalent:
reinterpret_cast<T&>( x)
*reinterpret_cast<T*>(&x)
[expr.reinterpret.cast]p11
llvm-svn: 158338
|
| |
|
|
|
|
|
|
| |
Both the new Linux functionality and the old Darwin functions have been moved.
This change also allows this information to be queried directly by clang and
other frontends (clang, for example, will now have real -mcpu=native support).
llvm-svn: 158337
|
| |
|
|
|
|
|
|
| |
ivars in WriterOptionsMachO instead have its methods compute ivar interactions.
Refactor mach-o Reference Kinds and introduce abstract class KindHandler.
Split up StubAtoms.hpp by architecture. Add support for 32-bit x86 stubs.
llvm-svn: 158336
|
| |
|
|
| |
llvm-svn: 158335
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
-target-cpu options.
This functionality is based on what is done on ARM, and enables selecting PPC CPUs
in a way compatible with gcc's driver. Also, mirroring gcc (and what is done on x86),
-mcpu=native support was added. This uses the host cpu detection from LLVM
(which will also soon be updated by refactoring code currently in backend).
In order for this to work, the target needs a list of valid CPUs -- we now accept all CPUs accepted by LLVM.
A few preprocessor defines for common CPU types have been added.
llvm-svn: 158334
|