Daniel Dunbar
6a19c14968
Force triple in tests.
...
llvm-svn: 84257
2009-10-16 16:30:02 +00:00
Duncan Sands
0058c7bcb0
Strip trailing white space.
...
llvm-svn: 84256
2009-10-16 15:20:13 +00:00
Nuno Lopes
8550cb250c
ignore 'using' directive in CodeGenFunction::EmitDecl(). this fixes PR5085
...
llvm-svn: 84255
2009-10-16 14:40:52 +00:00
Nuno Lopes
275225dd05
fix -ansi in c++: it means -std=c++98
...
llvm-svn: 84254
2009-10-16 14:28:06 +00:00
Duncan Sands
de3f2c26c6
Check that GVN performs this transform even if the calls
...
themselves are not marked readonly, but only the called
functions.
llvm-svn: 84253
2009-10-16 12:18:23 +00:00
Benjamin Kramer
ca019e704c
Update CMake file.
...
llvm-svn: 84252
2009-10-16 10:29:08 +00:00
Sanjiv Gupta
89259d7929
Cleaned up some code. No functionality change.
...
llvm-svn: 84251
2009-10-16 08:58:34 +00:00
Evan Cheng
343d17d762
I am no spelling bee.
...
llvm-svn: 84250
2009-10-16 06:18:09 +00:00
Evan Cheng
03da4dba59
Enable post-alloc scheduling for all ARM variants except for Thumb1.
...
llvm-svn: 84249
2009-10-16 06:11:08 +00:00
Evan Cheng
8b614768f8
If post-alloc scheduler is not enabled, it should return false, not true.
...
llvm-svn: 84248
2009-10-16 06:10:34 +00:00
Zhongxing Xu
47062ce503
Indent code.
...
llvm-svn: 84247
2009-10-16 05:42:28 +00:00
Evan Cheng
8cd7c92613
Add comment.
...
llvm-svn: 84246
2009-10-16 05:33:58 +00:00
Anders Carlsson
43d70f874d
Add CK_VectorSplat and use it for casting non-pointer scalars to ExtVectors.
...
llvm-svn: 84245
2009-10-16 05:23:41 +00:00
Evan Cheng
9c096840a0
80 column violation.
...
llvm-svn: 84244
2009-10-16 05:18:39 +00:00
Bob Wilson
01404ecec7
Fix more NEON instruction encodings.
...
Patch by Johnny Chen.
llvm-svn: 84243
2009-10-16 03:58:44 +00:00
Anders Carlsson
525b76b59c
Make CheckVectorCast return a CastKind. Reduce nesting of if statements in CheckCastTypes.
...
llvm-svn: 84242
2009-10-16 02:48:28 +00:00
Anders Carlsson
ef918ac840
Add a ToVoid cast kind and start using it.
...
llvm-svn: 84241
2009-10-16 02:35:04 +00:00
Chris Lattner
cb4e68c340
increase helpfulness of assert message.
...
llvm-svn: 84240
2009-10-16 02:34:51 +00:00
Chris Lattner
4794b2b27b
Add half precision floating point support (float16) to APFloat,
...
patch by Peter Johnson! (PR5195)
llvm-svn: 84239
2009-10-16 02:13:51 +00:00
Chris Lattner
27f2049305
add haiku support, patch by Paul Davey!
...
llvm-svn: 84238
2009-10-16 02:06:30 +00:00
Anders Carlsson
f847117ac8
Builtin types are subsitutable if they are qualified. Fixes PR5196.
...
llvm-svn: 84237
2009-10-16 02:06:06 +00:00
Daniel Dunbar
5d9134747b
MC: Set symbol values in MachO MCStreamer.
...
llvm-svn: 84236
2009-10-16 01:58:23 +00:00
Daniel Dunbar
e024def785
Minor formatting tweaks.
...
llvm-svn: 84235
2009-10-16 01:58:15 +00:00
Daniel Dunbar
8e6d889d4c
MC: Switch assembler API to using MCExpr instead of MCValue.
...
llvm-svn: 84234
2009-10-16 01:58:03 +00:00
Daniel Dunbar
c3bd60e393
MC: Remove unneeded context argument to MCExpr::Evaluate*.
...
llvm-svn: 84233
2009-10-16 01:57:52 +00:00
Daniel Dunbar
5f339244fb
MC: Tweak variable assignment diagnostics, and make reassignment of non-absolute
...
variables and symbols invalid.
llvm-svn: 84232
2009-10-16 01:57:39 +00:00
Anders Carlsson
35a99d95b3
The result type of logical || and && is bool in C++. Fixes PR5206.
...
llvm-svn: 84231
2009-10-16 01:44:21 +00:00
Daniel Dunbar
d20cda028a
MC: When parsing a variable reference, substitute absolute variables immediately
...
since they are allowed to be redefined.
llvm-svn: 84230
2009-10-16 01:34:54 +00:00
Daniel Dunbar
17b9027b5c
MC: Move assembler variable values from MCContext to MCSymbol.
...
llvm-svn: 84229
2009-10-16 01:33:57 +00:00
Daniel Dunbar
584a1b25ef
MC: Switch MCContext value table to storing MCExprs.
...
llvm-svn: 84228
2009-10-16 01:33:11 +00:00
John Thompson
1faca9e0fb
Work-around wchar_t and __pragma problem in VC headers
...
llvm-svn: 84227
2009-10-16 01:12:00 +00:00
Evan Cheng
8ec25937f1
When checking aliases between phi sources and V2, we know the sources are not themselves phi nodes. However, V2 may be. Call aliasCheck with V2 first to potentially eliminate a std::swap call.
...
llvm-svn: 84226
2009-10-16 00:33:09 +00:00
Ted Kremenek
1eb68096a2
retain/release checker: Stop tracking reference counts for any symbols touched by StoreManager::InvalidateRegion().
...
This fixes <rdar://problem/7257223> and <rdar://problem/7283470>.
llvm-svn: 84223
2009-10-16 00:30:49 +00:00
John McCall
c5b8225285
Remove the ConstantArrayType subtypes. This information is preserved in the
...
TypeLoc records for declarations; it should not be necessary to represent it
directly in the type system.
Please complain if you were using these classes and feel you can't replicate
previous functionality using the TypeLoc API.
llvm-svn: 84222
2009-10-16 00:14:28 +00:00
Ted Kremenek
dae45e9079
Add a few passing test cases for finding leaks of retained objects stored to arrays (<rdar://problem/7283470>).
...
llvm-svn: 84221
2009-10-15 23:44:02 +00:00
Ted Kremenek
51d06bbe5b
Use an std::vector<> instead of an array of ARG_MAX size, as ARG_MAX may not be defined everywhere.
...
llvm-svn: 84220
2009-10-15 23:21:22 +00:00
Anton Korobeynikov
051913bb86
Disallow arbitrary custom inline asm constraints for msp430.
...
llvm-svn: 84219
2009-10-15 23:17:13 +00:00
Bob Wilson
419160bd79
Revert svn r80498 and replace it with a different solution. The only problem
...
I can see with the original code was that I forgot that this runs after
type legalization and hence the result type will always be i32. (Custom
legalization of EXTRACT_VECTOR_ELT is only enabled for vector types with
8- and 16-bit elements.)
Regarding the FIXME comment: any information about sign and zero-extension
should be captured by separate extension operations. The DAG combiner should
handle those to produce either VGETLANEu or VGETLANEs, and that seems to be
working now. If there are cases that we're missing, let me know.
llvm-svn: 84218
2009-10-15 23:12:05 +00:00
Douglas Gregor
78236a0788
Improve point-of-instantiation location information for members of class templates
...
llvm-svn: 84217
2009-10-15 23:05:15 +00:00
Douglas Gregor
12e49d3250
Make the remaining explicit-instantiation semantic action use
...
CheckSpecializationInstantiationRedecl to check for
redeclarations/instantiations. Also fixes a longstanding issue where
our explicit-instantiation location information wasn't as good as it
could have been.
llvm-svn: 84216
2009-10-15 22:53:21 +00:00
John McCall
a614915632
ConcreteTypeLoc subclasses which call getInnerTypeLoc() should get a
...
compile-time error now; moreover, remove the need for an explicit hasInnerType()
call. Thanks to Doug Gregor for the metaprogramming approach.
llvm-svn: 84215
2009-10-15 22:37:38 +00:00
Anton Korobeynikov
49e417c52c
Dllexport stuff cleanup:
...
1. Emit external function type information for all COFF targets since it's
a feature of object format
2. Emit linker directives only for cygming (since this is ld-specific stuff)
llvm-svn: 84214
2009-10-15 22:36:18 +00:00
Ted Kremenek
4e45d80bfe
Educate the retain/release checker about [NSCursor dragCopyCursor].
...
This fixes <rdar://problem/7306898>
llvm-svn: 84213
2009-10-15 22:26:21 +00:00
Sandeep Patel
3f23601b00
Branches must be the last instruction in a Thumb2 IT block. Approved by Evan Cheng.
...
llvm-svn: 84212
2009-10-15 22:25:32 +00:00
Ted Kremenek
55adb821e8
retain/release checker: Use simpler utility method for creating class method summaries. No functionality change.
...
llvm-svn: 84210
2009-10-15 22:25:12 +00:00
Steve Naroff
44cd60eebe
Make sure temporary files get unlinked.
...
llvm-svn: 84208
2009-10-15 22:23:48 +00:00
Ted Kremenek
fb8e47323f
Add missing #include for wait().
...
llvm-svn: 84207
2009-10-15 22:10:56 +00:00
Bob Wilson
4138b11c93
Fix encoding bits for N3VLInt3_QHS multiclass with 8-bit elements.
...
Patch by Johnny Chen.
llvm-svn: 84206
2009-10-15 21:57:47 +00:00
Kevin Enderby
644de27659
Fix ARM memory operand parsing of post indexing with just a base register, that
...
is just "[Rn]" and no tailing comma with an offset, etc.
llvm-svn: 84205
2009-10-15 21:42:45 +00:00
Steve Naroff
1cfb96cd14
Minor improvement to format...no functionality change.
...
llvm-svn: 84203
2009-10-15 20:50:09 +00:00