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
Ted Kremenek
fcf7348f80
Update checker build.
...
llvm-svn: 66999
2009-03-14 00:46:46 +00:00
Anders Carlsson
54b2698587
Handle dependent types/exprs in static_assert expressions.
...
llvm-svn: 66997
2009-03-14 00:33:21 +00:00
Ted Kremenek
d0fa573a7d
Remove dead DeclarationName constructors that involving knowing about the
...
internal implementation of Selector.
llvm-svn: 66996
2009-03-14 00:27:40 +00:00
Anders Carlsson
5bbe1d7ba7
More static_assert work. Check that the assert expr is valid and show an error if it's false. Create the declaration and add it to the current context.
...
llvm-svn: 66995
2009-03-14 00:25:26 +00:00
Mon P Wang
c86715631c
Avoid doing the transformation c ? 1.0 : 2.0 as load { 2.0, 1.0 } + c*4
...
if FPConstant is legal because if the FPConstant doesn't need to be stored
in a constant pool, the transformation is unlikely to be profitable.
llvm-svn: 66994
2009-03-14 00:25:19 +00:00
Douglas Gregor
52aba87df7
Check for overflow and signedness problems with template
...
arguments. Eliminates a FIXME.
llvm-svn: 66993
2009-03-14 00:20:21 +00:00
Ted Kremenek
9a46804ca8
Make Selector::getIdentifierInfo() private. I took a first attempt at this last
...
week in:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013580.html
That patch caused the output of the diagnostics to change. Since
'DeclarationName' can already reason about Selectors and the Diagnostics logic
reasons about DeclarationName, there is no additional code needed to get the
diagnostics working by making Selector::getIdentifierInfo() private.
llvm-svn: 66992
2009-03-14 00:20:08 +00:00
Daniel Dunbar
29de588ac2
Don't run simplify lib calls with -ffreestanding (fix for already
...
failing test case).
llvm-svn: 66991
2009-03-14 00:15:04 +00:00
Douglas Gregor
69bd16d814
Make sure that the canonical representation of integral template arguments uses the bitwidth and signedness of the template parameter
...
llvm-svn: 66990
2009-03-14 00:03:48 +00:00
Dan Gohman
638e530509
Add a few more ptrtoint/inttoptr cast tests.
...
llvm-svn: 66989
2009-03-13 23:54:51 +00:00
Dan Gohman
a62e4ab690
Improve FastISel's handling of truncates to i1, and implement
...
ptrtoint and inttoptr in X86FastISel. These casts aren't always
handled in the generic FastISel code because X86 sometimes needs
custom code to do truncation and zero-extension.
llvm-svn: 66988
2009-03-13 23:53:06 +00:00