Douglas Gregor
6d1ec14f0f
CMake: Build system fixes for XCode. llvm-config still causes us some serious trouble, but it's less serious than it used to be
...
llvm-svn: 67056
2009-03-16 22:53:26 +00:00
Daniel Dunbar
8786218b0c
Make raw_ostream::operator<<(const void *) fast; it doesn't matter but
...
it is easy.
llvm-svn: 67054
2009-03-16 22:08:44 +00:00
Daniel Dunbar
7a9bb9eeec
Add slow path for single character write, and use exclusively for
...
single characters writes outside of the fast path in raw_ostream.h
llvm-svn: 67053
2009-03-16 22:00:17 +00:00
Douglas Gregor
d36792c86f
CMake: Make sure to build TableGen'd files in the binary directory
...
llvm-svn: 67052
2009-03-16 21:35:18 +00:00
Bill Wendling
dadaf54e09
--- Reverse-merging (from foreign repository) r67049 into '.':
...
U test/CodeGen/X86/2009-03-13-PHIElimBug.ll
D test/CodeGen/X86/2009-03-16-PHIElimInLPad.ll
U lib/CodeGen/PHIElimination.cpp
r67049 was causing this failure:
Running /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/test/CodeGen/X86/dg.exp ...
FAIL: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/test/CodeGen/X86/2009-03-13-PHIElimBug.ll for PR3784
Failed with exit(1) at line 1
while running: llvm-as < /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/test/CodeGen/X86/2009-03-13-PHIElimBug.ll | llc -march=x86 | /usr/bin/grep -A 2 {call f} | /usr/bin/grep movl
child process exited abnormally
llvm-svn: 67051
2009-03-16 20:27:20 +00:00
Chris Lattner
3199603823
some updates, Daniel points out that this is woefully out of date.
...
llvm-svn: 67050
2009-03-16 20:06:22 +00:00
Duncan Sands
d3e07c9d09
Tweak the fix for PR3784: be less sensitive about just
...
how invokes are set up. The fix could be disturbed by
register copies coming after the EH_LABEL, and also didn't
behave quite right when it was the invoke result that
was used in a phi node. Also (see new testcase) fix
another phi elimination bug while there: register copies
in the landing pad need to come after the EH_LABEL, because
that's where execution branches to when unwinding. If they
come before the EH_LABEL then they will never be executed...
Also tweak the original testcase so it doesn't use a no-longer
existing counter.
The accumulated phi elimination changes fix two of seven Ada
testsuite failures that turned up after landing pad critical
edge splitting was turned off. So there's probably more to come.
llvm-svn: 67049
2009-03-16 19:58:38 +00:00
Scott Michel
d1db1aba66
CellSPU:
...
Incorporate Tilmann's 128-bit operation patch. Evidently, it gets the
llvm-gcc bootstrap a bit further along.
llvm-svn: 67048
2009-03-16 18:47:25 +00:00
Chris Lattner
55ac42a67a
simplify this code by reading the decision from LangOptions instead
...
of recomputing the property from command line options.
llvm-svn: 67047
2009-03-16 18:41:18 +00:00
Chris Lattner
d35d43dde8
change this to test for an alias result more directly.
...
llvm-svn: 67046
2009-03-16 18:28:27 +00:00
Anders Carlsson
6caa9dd693
Check signedness of bitfield sizes.
...
llvm-svn: 67045
2009-03-16 18:19:21 +00:00
Anders Carlsson
bd1a1d2fa6
We support static_assert.
...
llvm-svn: 67043
2009-03-16 17:28:26 +00:00
Douglas Gregor
9f20b83568
Add TGSourceMgr.cpp to CMake build, sort lines
...
llvm-svn: 67042
2009-03-16 17:04:14 +00:00
Daniel Dunbar
e75d834c7c
Driver: Implement majority tool binding logic.
...
- Still need code for determining proper output location.
- Doesn't work yet, of course, as the host isn't providing real
tool chains.
- Interface still has a few warts, but has gotten a nice bit of
polish during the rewrite.
llvm-svn: 67038
2009-03-16 06:56:51 +00:00
Daniel Dunbar
3ce436d229
Driver: Migrate some data into the Compilation; after pipelining
...
access to most data should go through the current Compilation, not the
Driver (which shouldn't be specialized on variables for a single
compilation).
llvm-svn: 67037
2009-03-16 06:42:30 +00:00
Daniel Dunbar
9e2136d930
Driver: Sketch Tool and ToolChain classes.
...
llvm-svn: 67036
2009-03-16 05:25:36 +00:00
Daniel Dunbar
77c7e3be19
Driver: Include Casting header definitions in a few places, add
...
Action::getInputs.
llvm-svn: 67035
2009-03-16 05:17:44 +00:00
Bruno Cardoso Lopes
aa7db25235
This causes incorrect stack frame allocation when the last object is an array allocated on the stack which would lead
...
the compiled program to run over its stack. Thanks to Gil Dogon
llvm-svn: 67034
2009-03-15 23:28:07 +00:00
Sebastian Redl
ed0f3b021e
Parser support for rvalue references.
...
llvm-svn: 67033
2009-03-15 22:02:01 +00:00
Anders Carlsson
5bd30395b9
(Hopefully) instantiate dependent array types correctly.
...
llvm-svn: 67032
2009-03-15 20:12:13 +00:00
Anders Carlsson
27de6a5e91
Handle static_asserts when instantiating structs.
...
llvm-svn: 67031
2009-03-15 18:44:04 +00:00
Anders Carlsson
a39058118b
Add the ability to clone integer and string literals. Use it when instantiating template expressions.
...
llvm-svn: 67030
2009-03-15 18:34:13 +00:00
Sebastian Redl
6d4256c3c1
Convert a bunch of actions to smart pointers, and also bring PrintParserCallbacks a bit more in line with reality.
...
llvm-svn: 67029
2009-03-15 17:47:39 +00:00
Douglas Gregor
afd7c9c855
Fix bitfield-instantiation ownership bug noticed by Anders
...
llvm-svn: 67028
2009-03-15 17:43:26 +00:00
Anders Carlsson
78e2bc0328
Make sure to release the expressions.
...
llvm-svn: 67027
2009-03-15 17:35:16 +00:00
Sebastian Redl
1889b6e219
Keep diagnostic td in sync with r67015.
...
llvm-svn: 67026
2009-03-15 10:42:31 +00:00
Nick Lewycky
edbb0e2f1b
Simplify. "Broken" is always true here.
...
llvm-svn: 67025
2009-03-15 06:40:32 +00:00
Daniel Dunbar
27a08fab6b
Add note on theoretical IRgen improvement.
...
llvm-svn: 67024
2009-03-15 06:39:56 +00:00
Nick Lewycky
5aa592a2f8
Remove obviously redundant call.
...
llvm-svn: 67023
2009-03-15 06:39:52 +00:00
Daniel Dunbar
64895a0703
Remove a FIXME.
...
llvm-svn: 67022
2009-03-15 06:05:20 +00:00
Daniel Dunbar
81191f67bd
Fix comment typo.
...
llvm-svn: 67021
2009-03-15 05:58:43 +00:00
Daniel Dunbar
2e8536cfaa
Only intptr_t is protected by __intptr_t_defined.
...
llvm-svn: 67018
2009-03-15 03:16:47 +00:00
Daniel Dunbar
5af8b78ea9
Driver: Typo fix.
...
llvm-svn: 67017
2009-03-15 01:46:37 +00:00
Daniel Dunbar
02ae54c549
Driver: claim input arguments when building phases.
...
llvm-svn: 67016
2009-03-15 01:40:22 +00:00
Daniel Dunbar
adc91e6597
Driver: Start warning about unused arguments.
...
- This has a number of current flaws, enabling now to flush out
problems while bringing up other parts.
llvm-svn: 67015
2009-03-15 01:38:15 +00:00
Daniel Dunbar
ae0e55eb7f
Driver: Update ArgList::{hasArg,getLastArg} to optionally claim the
...
arguments if they exist.
llvm-svn: 67014
2009-03-15 00:48:16 +00:00
Daniel Dunbar
36a3e92521
Don't accept '$' in identifiers in assembler-with-cpp mode.
...
llvm-svn: 67013
2009-03-15 00:11:28 +00:00
Owen Anderson
0422efc994
Give the pre-alloc splitter access to the VirtRegMap. It doesn't do anything
...
useful with it at the moment, but it will in the future.
llvm-svn: 67012
2009-03-14 21:40:05 +00:00
Nick Lewycky
8e0f9ac051
Add a replacement for 2009-02-12-GEPNoalias.ll that works without -debug.
...
llvm-svn: 67011
2009-03-14 19:40:09 +00:00
Dan Gohman
79975d5ffb
Apply a patch by Micah Villmow to fix AsmParser to accept vector
...
shift constant expressions, and add support for folding vector
shift constant expressions. This fixes PR3802.
llvm-svn: 67010
2009-03-14 17:09:17 +00:00
Sebastian Redl
4ae9b126fe
Revert the switch to the tablegen diags. It fails for seperate objdir builds and cmake builds, and I have no clue what to do about it. Revisit this after someone with a clue about the build systems has looked at it.
...
llvm-svn: 67009
2009-03-14 15:58:54 +00:00
Sebastian Redl
6c2d55922f
Fix Clang build for srcdir != objdir
...
llvm-svn: 67008
2009-03-14 14:42:51 +00:00
Sebastian Redl
51e037e3c4
Switch diagnostics from .def to tablegen files. Please validate the Windows build.
...
llvm-svn: 67007
2009-03-14 12:00:12 +00:00
Sebastian Redl
f2e58d6694
Add support for generating Clang diagnostic defs to Makefile.rules.
...
llvm-svn: 67006
2009-03-14 11:59:18 +00:00
Sebastian Redl
9384e2ca4d
Add TableGen syntax highlighting for the jEdit editor.
...
llvm-svn: 67005
2009-03-14 10:15:32 +00:00
Sebastian Redl
5a8987ca51
Update tablegen diagnostic files to be in sync with the def files.
...
llvm-svn: 67004
2009-03-14 10:09:49 +00:00
Dan Gohman
6c28e72bb1
Add a testcase that covers a wide variety of ABI isel cases.
...
llvm-svn: 67003
2009-03-14 02:35:10 +00:00
Dan Gohman
f98cd1b48a
Use %rip-relative addressing on x86-64 whenever practical, as
...
it has a smaller encoding than absolute addressing.
llvm-svn: 67002
2009-03-14 02:33:41 +00:00
Dan Gohman
2293eb6037
Don't forego folding of loads into 64-bit adds when the other
...
operand is a signed 32-bit immediate. Unlike with the 8-bit
signed immediate case, it isn't actually smaller to fold a
32-bit signed immediate instead of a load. In fact, it's
larger in the case of 32-bit unsigned immediates, because
they can be materialized with movl instead of movq.
llvm-svn: 67001
2009-03-14 02:07:16 +00:00
Daniel Dunbar
f24f26c75a
Add newlines at end of file (this can annoy gcov)
...
llvm-svn: 67000
2009-03-14 01:53:05 +00:00