Jim Ingham
f2c6ccf043
The thread_info changes over the life of the thread, so you can't get it once and cache it, you have to fetch it every time you want to use it.
...
llvm-svn: 124463
2011-01-28 02:21:37 +00:00
Evan Cheng
417fca86c4
- Stop simplifycfg from duplicating "ret" instructions into unconditional
...
branches. PR8575, rdar://5134905, rdar://8911460.
- Allow codegen tail duplication to dup small return blocks after register
allocation is done.
llvm-svn: 124462
2011-01-28 02:19:21 +00:00
Johnny Chen
e5b28a9e6a
Should provide more useful context info for the emulate_ldr_rd_pc_rel() impl.
...
The context being that it's a PC relative load.
llvm-svn: 124460
2011-01-28 00:32:27 +00:00
Caroline Tice
ba8df270e6
If the user specfies one of stdin, stdout or stderr, don't
...
automatically set the non-specified ones to /dev/null.
llvm-svn: 124459
2011-01-28 00:19:58 +00:00
Evan Cheng
bb8420a070
Fix PLD encoding.
...
llvm-svn: 124458
2011-01-27 23:48:34 +00:00
Douglas Gregor
59f5dc60d2
Eliminate extraneous {};
...
llvm-svn: 124456
2011-01-27 23:36:08 +00:00
Douglas Gregor
3fb22baddb
Allow elision of invocations of move constructors from temporary objects.
...
llvm-svn: 124455
2011-01-27 23:24:55 +00:00
Kevin Enderby
e9f2f0cb0b
Changed llvm-mc arm target to give an error if .syntax divided is used. Since
...
only .syntax unified is supported.
llvm-svn: 124454
2011-01-27 23:22:36 +00:00
Douglas Gregor
21d3fca917
When producing IR for a lvalue-to-rvalue cast *as an lvalue*, only
...
non-class prvalues actually require the realization of a
temporary. For everything else, we already have an lvalue (or class
prvalue) in the subexpression.
Note: we're missing some move elision in this case. I'll tackle that next.
llvm-svn: 124453
2011-01-27 23:22:05 +00:00
Howard Hinnant
e4de279009
Updated getting started directions.
...
llvm-svn: 124452
2011-01-27 23:18:19 +00:00
Fariborz Jahanian
ee504a0881
Fix an objective-c rewriter bug rewriting a __block
...
variable declaration of a struct declared type.
// rdar://8918702
llvm-svn: 124451
2011-01-27 23:18:15 +00:00
Bob Wilson
f9bab3a47a
Fix a comment typo.
...
llvm-svn: 124450
2011-01-27 23:08:52 +00:00
Oscar Fuentes
800a2afbb3
Use the paths to libffi's header and library even when no custom
...
location was stated with FFI_INCLUDE_DIR/FFI_LIBRARY_DIR.
llvm-svn: 124449
2011-01-27 22:58:34 +00:00
Johnny Chen
3086022a3c
Add emulate_ldr_rd_pc_rel entry to the g_thumb_opcodes table, which represents a
...
PC relative immediate load into register, possibly followed by an add operation
to adjust the SP.
llvm-svn: 124448
2011-01-27 22:52:23 +00:00
David Greene
34f7c0d8aa
[AVX] Clean up the code to configure target lowering for AVX. Specify
...
how to lower more/new operations. This is a prerequisite for adding
additional AVX lowering.
llvm-svn: 124447
2011-01-27 22:38:56 +00:00
Douglas Gregor
edb7685712
Teach the evaluation of the __is_convertible_to trait to translate
...
access control errors into SFINAE errors, so that the trait provides
enough support to implement the C++0x std::is_convertible type trait.
To get there, the SFINAETrap now knows how to set up a SFINAE context
independent of any template instantiations or template argument
deduction steps, and (separately) can set a Sema flag to translate
access control errors into SFINAE errors. The latter can also be
useful if we decide that access control errors during template argument
deduction should cause substitution failure (rather than a hard error)
as has been proposed for C++0x.
llvm-svn: 124446
2011-01-27 22:31:44 +00:00
Ted Kremenek
44dc127f78
Adjust casing of attributes in examples.
...
llvm-svn: 124445
2011-01-27 22:00:02 +00:00
Andrew Trick
c0ca67601a
Remove a temporary workaround for a lencod miscompile. Depends on the fix in r124442.
...
llvm-svn: 124443
2011-01-27 21:28:51 +00:00
Andrew Trick
13bb644fdd
VirtRegRewriter fix: update kill flags, which are used by the scavenger.
...
rdar://problem/8893967: JM/lencod miscompile at -arch armv7 -mthumb -O3
Added ResurrectKill to remove kill flags after we decide to reused a
physical register. And (hopefully) ensure that we call it in all the
right places.
Sorry, I'm not checking in a unit test given that it's a miscompile I
can't reproduce easily with a toy example. Failures in the rewriter
depend on a series of heuristic decisions maked during one of the many
upstream phases in codegen. This case would require coercing regalloc
to generate a couple of rematerialzations in a way that causes the
scavenger to reuse the same register at just the wrong point.
The general way to test this is to implement kill flags
verification. Then we could have a simple, robust compile-only unit
test. That would be worth doing if the whole pass was not about to
disappear. At this point we focus verification work on the next
generation of regalloc.
llvm-svn: 124442
2011-01-27 21:26:43 +00:00
Douglas Gregor
61b7f5e3fd
Separate the access-control diagnostics from other diagnostics that do not have SFINAE behavior.
...
llvm-svn: 124441
2011-01-27 21:06:28 +00:00
Douglas Gregor
dd02d62594
Clang: separate the access-control diagnostics from other diagnostics that do not have SFINAE behavior.
...
llvm-svn: 124440
2011-01-27 21:06:17 +00:00
Howard Hinnant
8d3b8265a6
updated buildit to work with recent clang updates
...
llvm-svn: 124432
2011-01-27 21:01:51 +00:00
Howard Hinnant
80b2905b83
clang found a missing return statement.
...
llvm-svn: 124431
2011-01-27 21:01:11 +00:00
Howard Hinnant
eb92df7e9e
Make forward_list splice_after and merge work for lvalue lists
...
llvm-svn: 124430
2011-01-27 21:00:35 +00:00
Howard Hinnant
7015add232
Reverted previous fix to is_convertible as it caused more problems than it fixed. But this reverted fix will only matter for non-clang compilers. Installed __is_convertible_to for clang.
...
llvm-svn: 124429
2011-01-27 21:00:00 +00:00
Douglas Gregor
e5bef035c6
Document some serious badness in our evaluation of the type traits: we need to be sure we have complete types in many cases
...
llvm-svn: 124428
2011-01-27 20:35:44 +00:00
Benjamin Kramer
57e3d65884
Unbreak the build.
...
llvm-svn: 124426
2011-01-27 20:30:54 +00:00
Douglas Gregor
8006e76b4e
Implement the Microsoft __is_convertible_to type trait, modeling the
...
semantics after the C++0x is_convertible type trait. This
implementation is not 100% complete, because it allows access errors
to be hard errors (rather than just evaluating false).
Original patch by Steven Watanabe!
llvm-svn: 124425
2011-01-27 20:28:01 +00:00
Jim Ingham
a462f5cc07
Adding a Xcode workspace for lldb.
...
llvm-svn: 124416
2011-01-27 20:15:39 +00:00
Abramo Bagnara
92141d22ce
Fixed parameter names.
...
llvm-svn: 124408
2011-01-27 19:55:10 +00:00
Nick Lewycky
e2d46d30ae
Expound upon this comparison!
...
llvm-svn: 124406
2011-01-27 19:51:31 +00:00
Ted Kremenek
e801399372
Fix download link.
...
llvm-svn: 124405
2011-01-27 19:49:07 +00:00
Nick Lewycky
5a37e950e1
Use dyn_cast instead of isa+cast.
...
llvm-svn: 124404
2011-01-27 19:42:43 +00:00
Ted Kremenek
8688e078ae
Add missing </a>
...
llvm-svn: 124403
2011-01-27 19:42:34 +00:00
Ted Kremenek
cfc9dc6876
Update checker build and post release notes.
...
llvm-svn: 124402
2011-01-27 19:41:08 +00:00
Greg Clayton
2a06ad25d7
Removed the "lldb" folder reference from the Xcode project.
...
llvm-svn: 124401
2011-01-27 19:37:17 +00:00
Johnny Chen
8286868c84
Add emulate_add_sp_rm entry to the g_thumb_opcodes table, which represents an operation
...
to adjust the stack pointer by adding a register value in Rm to the SP.
llvm-svn: 124400
2011-01-27 19:34:30 +00:00
Oscar Fuentes
632ad9bfe6
Don't show -pedantic, -W and -Wall on the output of
...
llvm-config --cflags --cxxflags --cppflags
We shouldn't impose those flags on people who use llvm-config for
building their own projects.
llvm-svn: 124399
2011-01-27 19:29:48 +00:00
Jeffrey Yasskin
bbc4eea2c2
Revert r124217 because it didn't catch the actual error case it was trying to
...
catch:
lock_guard(my_mutex);
declares a variable instead of creating a temporary.
llvm-svn: 124398
2011-01-27 19:17:54 +00:00
Devang Patel
1cec755494
Speculatively revert r124380.
...
llvm-svn: 124397
2011-01-27 19:15:01 +00:00
Ted Kremenek
1be4a59a11
Teach -Wuninitialized about indirect goto. Fixes PR 9071.
...
llvm-svn: 124394
2011-01-27 18:51:39 +00:00
Douglas Gregor
5fcfb2fe0c
Clean up the diagnostic text for delegating constructors
...
llvm-svn: 124393
2011-01-27 18:50:39 +00:00
Ted Kremenek
afe348ea43
Wire up attributes 'ns_consumed' and 'cf_consumed' in the static analyzer's ObjC retain/release checker.
...
llvm-svn: 124386
2011-01-27 18:43:03 +00:00
Douglas Gregor
9c2e896d62
Test for previous commit
...
llvm-svn: 124385
2011-01-27 18:39:26 +00:00
Argyrios Kyrtzidis
ff115a2f35
Allow #pragma unused to be used on global variables like gcc. Fixes rdar://8793832.
...
llvm-svn: 124383
2011-01-27 18:16:48 +00:00
Douglas Gregor
ffd6dc432e
Teach ASTUnit to save the specified target features, since
...
TargetInfo::CreateTargetInfo() mangles the target options in a way
that is not idempotent. Fixes <rdar://problem/8807535>.
llvm-svn: 124382
2011-01-27 18:02:58 +00:00
Devang Patel
3b266a2780
While legalizing SDValues do not drop SDDbgValues, trasfer them to new legal nodes.
...
Take 2. This includes fix for dragonegg crash.
llvm-svn: 124380
2011-01-27 17:43:53 +00:00
Roman Divacky
ed5efb4053
Add support for specifying register name in cfi-register/offset/def
...
as well as register number.
llvm-svn: 124379
2011-01-27 17:16:37 +00:00
Roman Divacky
36b1b47c5a
Introduce virtual ParseRegister method in TargetAsmParser.
...
Create override of this method in X86/ARM/MBlaze.
llvm-svn: 124378
2011-01-27 17:14:22 +00:00
Douglas Gregor
56a6380cb7
Add libclang functions to determine the const/volatile/restrict
...
qualifiers on a CXType. Patch from Stefan Seefeld, test by me.
llvm-svn: 124377
2011-01-27 16:27:11 +00:00