Sebastian Redl
634b6581ec
Add missing test case for operator ! result type.
...
llvm-svn: 62532
2009-01-19 21:37:51 +00:00
Ted Kremenek
a005fd0d06
Update Xcode project.
...
llvm-svn: 62531
2009-01-19 21:31:51 +00:00
Ted Kremenek
721e239f2b
Allocate Types using ASTContext's 'Allocator' object.
...
llvm-svn: 62530
2009-01-19 21:31:22 +00:00
Chris Lattner
6f34e317e9
Fix PR3353, infinitely jump threading an infinite loop make from switches.
...
llvm-svn: 62529
2009-01-19 21:20:34 +00:00
Dale Johannesen
740e98704d
compile-time fmod was done incorrectly. PR 3316.
...
llvm-svn: 62528
2009-01-19 21:17:05 +00:00
Devang Patel
db3c05533c
DebugInfo is a lightweight APIs and consumers are expected to use light objects directly. There is no need to support isa<>, dyn_cast<> etc...
...
llvm-svn: 62527
2009-01-19 21:13:39 +00:00
Devang Patel
8c8aa2ac29
Verify Intrinsic::dbg_declare.
...
llvm-svn: 62526
2009-01-19 21:00:48 +00:00
Fariborz Jahanian
54fa418d03
Type of property and its ivar is more restrictive
...
that rules for assignment.
llvm-svn: 62524
2009-01-19 20:13:47 +00:00
Daniel Dunbar
19e953acd9
Makefile isn't executable.
...
llvm-svn: 62523
2009-01-19 19:59:59 +00:00
Mike Stump
eb1e2006de
Add targets to support the installation of clang in isolation.
...
llvm-svn: 62522
2009-01-19 19:48:23 +00:00
Douglas Gregor
dd430f7ec9
Centralize error reporting of improper uses of incomplete types in the
...
new DiagnoseIncompleteType. It provides additional information about
struct/class/union/enum types when possible, either by pointing to the
forward declaration of that type or by pointing to the definition (if
we're in the process of defining that type).
Fixes <rdar://problem/6500531>.
llvm-svn: 62521
2009-01-19 19:26:10 +00:00
Daniel Dunbar
ababe7d47d
ccc: Add missing file.
...
llvm-svn: 62520
2009-01-19 19:20:01 +00:00
Evan Cheng
44cc554311
DIVREM isel deficiency: If sign bit is known zero, zero out DX/EDX/RDX instead of sign extending the low part (in AX/EAX/RAX) into it.
...
llvm-svn: 62519
2009-01-19 19:06:11 +00:00
Evan Cheng
0346c04f39
Fix 80 col violations.
...
llvm-svn: 62518
2009-01-19 18:57:29 +00:00
Daniel Dunbar
f6135630a8
ccc: Add installation of ccc; based on patch from Mike Stump.
...
- This doesn't follow normal installation procedure of python
code, but no sense trying too hard since ccc will be moved to
C++.
- Entry point is now tools/ccc.
llvm-svn: 62517
2009-01-19 18:50:49 +00:00
Evan Cheng
6c02498215
Handle ISD::DECLARE with PIC relocation model.
...
llvm-svn: 62516
2009-01-19 18:31:51 +00:00
Fariborz Jahanian
dab04840f0
Patch to allow @dynamic synthesis of property in a category,
...
with @synthesize being illegal.
llvm-svn: 62515
2009-01-19 18:16:19 +00:00
Nick Lewycky
ee22611e33
Port this test from dejagnu to unit testing.
...
The way this worked before was to test APInt by running
"lli -force-interpreter=true" knowing the lli uses APInt under the hood to
store its values. Now, we test APInt directly.
llvm-svn: 62514
2009-01-19 18:08:33 +00:00
Nick Lewycky
030c450fdc
Fix typo, sentence fragment.
...
llvm-svn: 62512
2009-01-19 17:42:33 +00:00
Dan Villiom Podlaski Christiansen
faad4168f9
Adding your's truly to CREDITS.TXT
...
(This is also a test commit.)
llvm-svn: 62511
2009-01-19 15:04:29 +00:00
Bill Wendling
534d2e0bae
Temporarily revert r62487. It's causing this error during a release bootstrap of
...
llvm-gcc. Most likely, it's miscompiling one of the "gen*" programs:
/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.obj/./prev-gcc/xgcc -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.obj/./prev-gcc/ -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.6.0/bin/ -c -g -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -mdynamic-no-pic -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../llvm-gcc.src/gcc -I../../llvm-gcc.src/gcc/build -I../../llvm-gcc.src/gcc/../include -I./../intl -I../../llvm-gcc.src/gcc/../libcpp/include -I../../llvm-gcc.src/gcc/../libdecnumber -I../libdecnumber -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/include -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/include -DENABLE_LLVM -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/../llvm.src/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -o build/gencondmd.o build/gencondmd.c
../../llvm-gcc.src/gcc/config/i386/mmx.md:926: error: expected '}' before ')' token
../../llvm-gcc.src/gcc/config/i386/mmx.md:926: warning: excess elements in struct initializer
../../llvm-gcc.src/gcc/config/i386/mmx.md:926: warning: (near initialization for 'insn_conditions[4]')
../../llvm-gcc.src/gcc/config/i386/mmx.md:926: error: expected '}' before ')' token
../../llvm-gcc.src/gcc/config/i386/mmx.md:926: error: expected ',' or ';' before ')' token
../../llvm-gcc.src/gcc/config/i386/mmx.md:927: error: expected identifier or '(' before ',' token
../../llvm-gcc.src/gcc/config/i386/sse.md:3458: error: expected identifier or '(' before ',' token
...
llvm-svn: 62506
2009-01-19 08:46:20 +00:00
Evan Cheng
8f367e53c7
Minor tweak to LowerUINT_TO_FP_i32. Bias (after scalar_to_vector) has two uses so we should make it the second source operand of ISD::OR so 2-address pass won't have to be smart about commuting.
...
%reg1024<def> = MOVSDrm %reg0, 1, %reg0, <cp#0>, Mem:LD(8,8) [ConstantPool + 0]
%reg1025<def> = MOVSD2PDrr %reg1024
%reg1026<def> = MOVDI2PDIrm <fi#-1>, 1, %reg0, 0, Mem:LD(4,16) [FixedStack-1 + 0]
%reg1027<def> = ORPSrr %reg1025<kill>, %reg1026<kill>
%reg1028<def> = MOVPD2SDrr %reg1027<kill>
%reg1029<def> = SUBSDrr %reg1028<kill>, %reg1024<kill>
%reg1030<def> = CVTSD2SSrr %reg1029<kill>
MOVSSmr <fi#0>, 1, %reg0, 0, %reg1030<kill>, Mem:ST(4,4) [FixedStack0 + 0]
%reg1031<def> = LD_Fp32m80 <fi#0>, 1, %reg0, 0, Mem:LD(4,16) [FixedStack0 + 0]
RET %reg1031<kill>, %ST0<imp-use,kill>
The reason 2-addr pass isn't smart enough to commute the ORPSrr is because it can't look pass the MOVSD2PDrr instruction.
llvm-svn: 62505
2009-01-19 08:19:57 +00:00
Evan Cheng
7e9ef4d776
Now not UINT_TO_FP is legal (it's marked custom), dag combiner won't
...
optimize it to a SINT_TO_FP when the sign bit is known zero. X86 isel should perform the optimization itself.
llvm-svn: 62504
2009-01-19 08:08:22 +00:00
Chris Lattner
f58e2a9e47
rearrange SourceManager methods to group them by kind. Remove the
...
SourceManager::getFileCharacteristic(FileID) method: we need a
full location to know if it is a system header etc in the future.
llvm-svn: 62503
2009-01-19 08:02:45 +00:00
Chris Lattner
4fd8b958be
do not use SourceManager::getFileCharacteristic(FileID), it is not
...
safe because a #line can change the file characteristic on a per-loc
basis.
llvm-svn: 62502
2009-01-19 08:01:53 +00:00
Chris Lattner
c033416639
do not use SourceManager::getFileCharacteristic(FileID), it is not
...
safe because a #line can change the file characteristic on a per-loc
basis.
llvm-svn: 62501
2009-01-19 07:59:15 +00:00
Chris Lattner
cbc35ecb04
Rename SourceManager::getCanonicalFileID -> getFileID. There is
...
no longer such thing as a non-canonical FileID.
llvm-svn: 62499
2009-01-19 07:46:45 +00:00
Ted Kremenek
8c3b812148
Run destructors of MacroInfo objects to free memory they allocate. This addresses <rdar://problem/6506035>.
...
llvm-svn: 62498
2009-01-19 07:45:44 +00:00
Chris Lattner
1e9e86f470
remove the public SourceManager::getContentCacheForLoc method.
...
llvm-svn: 62497
2009-01-19 07:40:40 +00:00
Chris Lattner
f809bbdbb8
remove the SourceManager:: and FullSourceLoc::getFileEntryForLoc methods.
...
llvm-svn: 62496
2009-01-19 07:36:42 +00:00
Chris Lattner
7e343b2161
SourceManager::getBufferData(SourceLocation) is dead, delete it.
...
llvm-svn: 62495
2009-01-19 07:32:13 +00:00
Chris Lattner
91fda39454
some minor cleanups to SourceManager, and eliminate the
...
SourceManager::getBuffer(SourceLocation) method.
llvm-svn: 62494
2009-01-19 07:30:29 +00:00
Chris Lattner
9976ee7241
privatize getChunkID/getMacroID, and move operator< out of the class.
...
llvm-svn: 62493
2009-01-19 07:00:35 +00:00
Chris Lattner
02495d80ef
Make some enums in SourceLocation private, remove a useless assertion from ScratchBuffer.
...
llvm-svn: 62492
2009-01-19 06:57:37 +00:00
Chris Lattner
46b50d490d
make a bunch of more SourceLocation methods private.
...
llvm-svn: 62491
2009-01-19 06:55:08 +00:00
Chris Lattner
29a2a191f2
Make SourceLocation::getFileLoc private to reduce the API exposure of
...
SourceLocation. This requires making some cleanups to token pasting
and _Pragma expansion.
llvm-svn: 62490
2009-01-19 06:46:35 +00:00
Douglas Gregor
3b15170bd9
Fix a typo
...
llvm-svn: 62489
2009-01-19 05:29:50 +00:00
Chris Lattner
f2bb4ea39c
Fix PR3016, a bug which can occur do to an invalid assumption:
...
we assumed a CFG structure that would be valid when all code in
the function is reachable, but not all code is necessarily
reachable. Do a simple, but horrible, CFG walk to check for this
case.
llvm-svn: 62487
2009-01-19 02:46:28 +00:00
Chris Lattner
e381d7026f
reduce indentation by using 'continue', no functionality change.
...
llvm-svn: 62477
2009-01-19 02:07:32 +00:00
Chris Lattner
54f0c61d71
Fix some problems in SpeculativelyExecuteBB. Basically,
...
because of dead code, a phi could use the speculated instruction
that was not in "BB2". Make this check explicit and tighten up
some other corners. This fixes PR3292. No testcase becauase this
depends entirely on visitation order of blocks and requires a
sequence of 8 passes to repro.
llvm-svn: 62476
2009-01-19 00:36:37 +00:00
Sebastian Redl
c215cfc3e1
Convert more expression actions to smart pointers.
...
Fix type of logical negation for C++.
llvm-svn: 62475
2009-01-19 00:08:26 +00:00
Chris Lattner
e1c01e4e2b
Make this a bit more explicit about which cases need the
...
check. No functionality change.
llvm-svn: 62474
2009-01-18 23:22:07 +00:00
Daniel Dunbar
6e2c6844c1
ccc: Bug fix, pch generation should not try to output on pipe and -E
...
should. This needs cleanup.
llvm-svn: 62473
2009-01-18 21:35:24 +00:00
Chris Lattner
fc014f80e5
fix rdar://6505352 - Bogus warning with -WUndef, a case
...
Anders noticed.
llvm-svn: 62472
2009-01-18 21:18:58 +00:00
Chris Lattner
64b7bd7f9e
Fix rdar://6505632, an llc crash on 483.xalancbmk
...
llvm-svn: 62470
2009-01-18 20:35:00 +00:00
Nuno Lopes
9018ca711a
fix deallocation of FunctionDecl::ParamInfo
...
llvm-svn: 62469
2009-01-18 19:57:27 +00:00
Sebastian Redl
ffbcf96d1c
Convert a few expression actions to smart pointers.
...
These actions are extremely widely used (identifier expressions and literals); still no performance regression.
llvm-svn: 62468
2009-01-18 18:53:16 +00:00
Sanjiv Gupta
1d2fc787a9
Few targets like PIC16 wants libcall generation for illegal type i16.
...
llvm-svn: 62467
2009-01-18 18:25:27 +00:00
Sebastian Redl
c2edafbdff
Rename move_convert to move_arg and move_res. The new names are less misleading (and shorter).
...
llvm-svn: 62466
2009-01-18 18:03:53 +00:00
Sebastian Redl
481bf3f48b
Convert ObjC statement actions to smart pointers.
...
llvm-svn: 62465
2009-01-18 17:43:11 +00:00