Chris Lattner
dd282825a8
Clarify wording, patch by Stefanus Du Toit!
...
llvm-svn: 66458
2009-03-09 20:55:18 +00:00
Daniel Dunbar
463cc8ade5
Tweak CreateMetadataVar, take the exact alignment instead of relying
...
on LLVM TargetData.
llvm-svn: 66455
2009-03-09 20:50:13 +00:00
Devang Patel
66f84e7a42
Add helper pass to remove llvm.dbg.declare intrinsics.
...
llvm-svn: 66454
2009-03-09 20:49:37 +00:00
Dan Gohman
e201f8ff1d
Move the sorting of the StrideOrder array earlier so that it doesn't
...
have to be done twice.
llvm-svn: 66449
2009-03-09 20:46:50 +00:00
Fariborz Jahanian
de2f33373b
More fix for bitfield ivar meta-data and code gen accessing it.
...
Now, we can actually execute dejagnu test with bitfield ivars
in non-fragile abi mode.
llvm-svn: 66448
2009-03-09 20:44:22 +00:00
Chris Lattner
4f912e6f98
implement -Wsystem-headers, eliminating the wierd thing I added for testing.
...
llvm-svn: 66447
2009-03-09 20:44:22 +00:00
Dan Gohman
b5001909b0
Delete the isOnlyStride argument, which is unused.
...
llvm-svn: 66446
2009-03-09 20:41:15 +00:00
Ted Kremenek
06eb672f24
Teach GRSimpleVals::EvalNE and GRSimplVals::EvalEQ about TypedRegionViews and
...
SymbolicRegions. This fixes a serious regression when checking symbolic pointers
against null.
llvm-svn: 66444
2009-03-09 20:35:15 +00:00
Dan Gohman
85875f7120
Tidy some LSR debug output: announce the loop it's about to process
...
before it does any processing.
llvm-svn: 66443
2009-03-09 20:34:59 +00:00
Chris Lattner
794c001ad4
fix PR3764 - A redefinition of a pre-processor macro fails
...
Redefinition checking should ignore the leading whitespace and
start of line flags on the first token of an expansion.
llvm-svn: 66442
2009-03-09 20:33:32 +00:00
Chris Lattner
5c1f4d3c02
convert this to use -verify.
...
llvm-svn: 66441
2009-03-09 20:31:39 +00:00
Chris Lattner
b960cdd255
rename test
...
llvm-svn: 66440
2009-03-09 20:30:53 +00:00
Ted Kremenek
78b79386d2
Add member template "MemRegion::getAs<RegionType>" that dynamically casts a
...
given MemRegion object to a target region type. This differs from dyn_cast<> in
that it also ignores TypedViewRegions.
llvm-svn: 66439
2009-03-09 20:28:08 +00:00
Ted Kremenek
701e487520
Remove some dead spacing. No functionality change.
...
llvm-svn: 66437
2009-03-09 20:26:47 +00:00
Evan Cheng
0ee0da841d
ARM target now also recognize triplets like thumbv6-apple-darwin and set thumb mode and arch subversion. Eventually thumb triplets will go way and replaced with function notes.
...
llvm-svn: 66435
2009-03-09 20:25:39 +00:00
Chris Lattner
4249b9a698
Fix PR3763 by using proper APInt methods instead of uint64_t's.
...
llvm-svn: 66434
2009-03-09 20:22:18 +00:00
Daniel Dunbar
91b000f771
Fix typo in pref commit.
...
llvm-svn: 66433
2009-03-09 20:16:39 +00:00
Daniel Dunbar
30c653655d
NeXT: Add CreateMetadataVar utility method to encapsulate creation of
...
Obj-C metadata variables (which generally should be handled the same,
although they aren't currently).
- No functionality change.
llvm-svn: 66432
2009-03-09 20:09:19 +00:00
Douglas Gregor
a6778494fb
Revert r66423, which was not the right fix for this issue.
...
llvm-svn: 66431
2009-03-09 20:07:22 +00:00
Gabor Greif
c0bee2986c
make the Op<N> methods protected, how it was intended to be
...
llvm-svn: 66430
2009-03-09 19:57:49 +00:00
Evan Cheng
ce5dfb692a
ARM isLegalAddressImmediate should check if type is a simple type now that optimizer can create values of funky scalar types.
...
llvm-svn: 66429
2009-03-09 19:15:00 +00:00
Evan Cheng
fb8ded911e
Yet another case where the spiller marked two uses of the same register on the same instruction as kill. This fixes PR3706.
...
llvm-svn: 66428
2009-03-09 19:00:05 +00:00
Evan Cheng
3807bb77fa
Re-apply 66315, but restrict it to Darwin only.
...
llvm-svn: 66427
2009-03-09 18:28:37 +00:00
Bill Wendling
c08580af44
Revert r66415. It's causing failures during bootstrap builds:
...
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter > for instructions.
/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/libgcc2.c: In function '__muldi3':
/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/libgcc2.c:567: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter > for instructions.
/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/libgcc2.c: In function '__lshrdi3':
/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/libgcc2.c:421: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter > for instructions.
make[5]: *** [libgcc/./_lshrdi3.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [libgcc/./_muldi3.o] Error 1
make[5]: *** [libgcc/./_negdi2.o] Error 1
--- Reverse-merging (from foreign repository) r66415 into '.':
U include/llvm/BasicBlock.h
U include/llvm/ADT/ilist_node.h
U include/llvm/CodeGen/SelectionDAG.h
U include/llvm/CodeGen/MachineFunction.h
U include/llvm/CodeGen/MachineBasicBlock.h
U include/llvm/Function.h
llvm-svn: 66426
2009-03-09 18:01:33 +00:00
Daniel Dunbar
1e6efc0cf4
ccc: Parse -T{bss,data,text}, -iwithsysroot, -specs correctly.
...
Also, fix some test cases.
llvm-svn: 66425
2009-03-09 17:43:51 +00:00
Bob Wilson
4718296d64
Add a constructor for BuildVectorSDNode and revert the temporary workaround
...
from 66280. I was unable to verify this with gcc-3.4.6, but with gcc-3.3 it
avoids the "base class with only non-default constructor in class without
a constructor" warning. Apparently that warning was promoted to an error
in gcc-3.4.
llvm-svn: 66424
2009-03-09 17:07:15 +00:00
Douglas Gregor
71cb0c723f
Fix a little FIXME, thanks to Sebastian
...
llvm-svn: 66423
2009-03-09 16:48:55 +00:00
Douglas Gregor
ce0fc86f07
Mark a non-type template parameter invalid if there was a problem with its type
...
llvm-svn: 66422
2009-03-09 16:46:39 +00:00
Douglas Gregor
ed0cfbdad1
Rename DiagnoseIncompleteType to RequireCompleteType, and update the documentation to reflect the fact that we can instantiate templates here
...
llvm-svn: 66421
2009-03-09 16:13:40 +00:00
Duncan Sands
5cbd3d9c52
This debug info special case should no longer
...
be needed now that these intrinsics are marked
as not accessing memory.
llvm-svn: 66420
2009-03-09 11:57:08 +00:00
Zhongxing Xu
7219d1bada
Only track integer and pointer values.
...
llvm-svn: 66419
2009-03-09 09:31:22 +00:00
Zhongxing Xu
ce270a6dbc
Now we do not retrieve untyped regions.
...
llvm-svn: 66418
2009-03-09 09:15:51 +00:00
Chris Lattner
126dab2f76
just remove the use_empty() check entirely, the only reason it
...
existed was for llvm-gcc 3.4 (which used the __main hack) which
is really really long dead.
llvm-svn: 66417
2009-03-09 08:18:48 +00:00
Chris Lattner
ed9f14c4c9
do not warn about -=/=- confusion with macros, thanks to rdogra for a testcase.
...
llvm-svn: 66416
2009-03-09 07:11:10 +00:00
Gabor Greif
f183a3e95b
in builds without asserts we do not need to allocate the Next pointer in "ghostly" sentinels
...
llvm-svn: 66415
2009-03-09 07:09:01 +00:00
Chris Lattner
14aea9a39c
link to blocks dox
...
llvm-svn: 66414
2009-03-09 07:03:22 +00:00
Chris Lattner
d6daa1dafd
add some description of the block language extension.
...
llvm-svn: 66413
2009-03-09 07:01:20 +00:00
Chris Lattner
da84e0d516
The long-rumored blocks implementation document.
...
llvm-svn: 66410
2009-03-09 06:57:46 +00:00
Zhongxing Xu
b09280bcc0
Fix a serious bug in RegionStore: we got the new state with new store from
...
Bind() and BindStruct(), but we returned a state with the old store.
llvm-svn: 66409
2009-03-09 06:49:50 +00:00
Mike Stump
e3193ff452
Be sure to never create two functions with the same name, instead arrange to
...
reuse the prior one.
llvm-svn: 66408
2009-03-09 06:40:26 +00:00
Nick Lewycky
714976b70f
Regenerate.
...
llvm-svn: 66407
2009-03-09 06:16:46 +00:00
Nick Lewycky
b2f34f6211
Remove configurey-fu to autodetect hash_map and hash_set now that they are
...
no longer used in LLVM.
llvm-svn: 66406
2009-03-09 06:16:26 +00:00
Chris Lattner
317293b504
Make the code generator rip of dead constant expr uses before deciding
...
whether a global is dead or not. This should fix PR3749 - linker adds
spurious use to appending globals. I can't reasonably add a testcase
for this, because the bc writer/reader strip dead constant users.
llvm-svn: 66404
2009-03-09 05:52:15 +00:00
Chris Lattner
6f884e07c5
make GlobalValue::removeDeadConstantUsers() const.
...
llvm-svn: 66403
2009-03-09 05:50:45 +00:00
Chris Lattner
822015d96e
testcase for PR3744
...
llvm-svn: 66401
2009-03-09 05:44:59 +00:00
Chris Lattner
4ce03e66a1
don't allow hash_map or hash_set.
...
llvm-svn: 66400
2009-03-09 05:20:45 +00:00
Owen Anderson
f9a9cf96a1
Ignore debug intrinsics when computing dependences.
...
llvm-svn: 66399
2009-03-09 05:12:38 +00:00
Chris Lattner
0eab5ecb71
reimplement AliasSetTracker in terms of DenseMap instead of hash_map,
...
hopefully no functionality change.
llvm-svn: 66398
2009-03-09 05:11:09 +00:00
Chris Lattner
7c2ab26007
add a #include to improve portability to windows, as requested by
...
someone on llvmdev.
llvm-svn: 66397
2009-03-09 05:10:08 +00:00
Bill Wendling
c6869f4695
Pass in a std::string when getting the names of debugging things. This cuts down
...
on the number of times a std::string is created and copied.
llvm-svn: 66396
2009-03-09 05:04:40 +00:00