Bill Wendling
62fe9e9aa6
Update to the new EH scheme.
...
llvm-svn: 138606
2011-08-25 23:48:37 +00:00
Bill Wendling
8ac2041a19
Look at only the terminators of the basic block. Also, if we're using the new EH
...
scheme, return 'true' so that it doesn't try to run the old EH scheme's fixup on
the new code.
llvm-svn: 138605
2011-08-25 23:48:11 +00:00
Bill Wendling
45449b1cba
Initial check in that will auto-upgrade the old EH scheme to the new EH scheme.
...
This upgrade suffers from the problems of the old EH scheme - i.e., that the
calls to llvm.eh.exception() and llvm.eh.selector() can wander off and get
lost. It makes a valiant effort to reclaim these little lost lambs.
This is a first draft, so it hasn't yet been hooked up to the parser.
llvm-svn: 138602
2011-08-25 23:22:40 +00:00
Matt Beaumont-Gay
045bde420b
Fix a crash-on-invalid.
...
Much to everyone's surprise, the default constructor for TypeResult produces
an instance with Invalid == false. This seems like a decision we may want to
revisit.
llvm-svn: 138601
2011-08-25 23:22:24 +00:00
Jim Ingham
16746d1f97
Add logging to SymbolFileDWARF::ParseType so that we can tell the type/comp_unit/obj_file were being processed when something goes wrong...
...
llvm-svn: 138600
2011-08-25 23:21:43 +00:00
John McCall
a5efa7386a
Track whether an AggValueSlot is potentially aliased, and do not
...
emit call results into potentially aliased slots. This allows us
to properly mark indirect return slots as noalias, at the cost
of requiring an extra memcpy when assigning an aggregate call
result into a l-value. It also brings us into compliance with
the x86-64 ABI.
llvm-svn: 138599
2011-08-25 23:04:34 +00:00
Fariborz Jahanian
5cc730cdef
Don't warn on category implementing a method, if
...
declated method in the class belongs to a synthesized
property getter/setter. // rdar://10014946
llvm-svn: 138598
2011-08-25 22:58:42 +00:00
Douglas Gregor
2ed0ee1ace
Eliminate the -chained-pch flag and all of the frontend and libclang options associated with it. Chained PCH is the only way to build a PCH file that includes another PCH file
...
llvm-svn: 138597
2011-08-25 22:54:01 +00:00
Douglas Gregor
36db4f9602
Remove the Chaining argument from the PCH/module generator. It's no longer used
...
llvm-svn: 138596
2011-08-25 22:35:51 +00:00
Douglas Gregor
69f74f80db
Introduce a -cc1 option "-emit-module", that creates a binary module
...
from the given source. -emit-module behaves similarly to -emit-pch,
except that Sema is somewhat more strict about the contents of
-emit-module. In the future, there are likely to be more interesting
differences.
llvm-svn: 138595
2011-08-25 22:30:56 +00:00
Fariborz Jahanian
371376010f
objc - fix a bug exposed by my recent decl context
...
changes. // rdar://10015110
llvm-svn: 138594
2011-08-25 22:26:53 +00:00
Argyrios Kyrtzidis
440f954d6f
[libclang] Fix getting a cursor that points inside tag definition that is part
...
of a type specifier.
e.g. for:
typedef struct _MyS {
int foo;
} MyS;
pointing at field 'foo' would give a cursor for the typedef declaration 'MyS'
instead of the field.
llvm-svn: 138593
2011-08-25 22:24:47 +00:00
Bruno Cardoso Lopes
ed834810be
Do the same as r138461. Mark VZEROALL as clobbering all YMM registers
...
llvm-svn: 138592
2011-08-25 22:23:58 +00:00
Johnny Chen
943ddb730b
Modify the impl of ThreadList::GetSelectedThread() so that it tries to fetch the
...
m_selected_tid thread first, check to see if it is valid (might be null if the
thread just exited), and if not select/return the 0th thread instead.
llvm-svn: 138591
2011-08-25 21:59:59 +00:00
Johnny Chen
689053770b
Modify the loggings output oracle to fix test suite failure, after the recent change to CommandInterpreter.cpp.
...
llvm-svn: 138590
2011-08-25 21:51:45 +00:00
Nick Lewycky
64bfca1b60
Remove stray fullstop.
...
llvm-svn: 138589
2011-08-25 21:46:20 +00:00
Bruno Cardoso Lopes
8347b86293
Add support for AVX 256-bit version of MOVDDUP!
...
llvm-svn: 138588
2011-08-25 21:40:37 +00:00
Bruno Cardoso Lopes
388eacee2c
Make isMOVDDUP mask check more strict and update comments!
...
llvm-svn: 138587
2011-08-25 21:40:34 +00:00
Douglas Gregor
d09937fde0
Clean up the reloading of identifier information following the load of
...
a top-level module. This code is still horrible and should go away,
but we're not there yet.
llvm-svn: 138586
2011-08-25 21:19:59 +00:00
Douglas Gregor
a918babff4
Preload source location entries as soon as we've loaded a particular
...
AST file, rather than waiting until we finish loading the top-level
AST file.
llvm-svn: 138585
2011-08-25 21:09:44 +00:00
Fariborz Jahanian
d8114f7560
Reverse r138567 until a buildbot failure is investigated.
...
llvm-svn: 138584
2011-08-25 21:09:22 +00:00
Douglas Gregor
2fdb6b5391
Move file validation in the ASTReader from "top of chain" validation
...
to "when loading a particular module" validation, since it was only
validating local information anyway. This shouldn't change anything.
llvm-svn: 138583
2011-08-25 20:58:51 +00:00
Douglas Gregor
d44252ec03
Factor the Module and ModuleManager classes out into separate headers
...
and .cpp files, since ASTReader.cpp was getting way too large. No
functionality change.
llvm-svn: 138582
2011-08-25 20:47:51 +00:00
John McCall
8d6fc9583d
Use stronger typing for the flags on AggValueSlot and require
...
creators to tell us whether something needs GC barriers.
No functionality change.
llvm-svn: 138581
2011-08-25 20:40:09 +00:00
Argyrios Kyrtzidis
7aecbc7661
Make Lexer::ComputePreamble accept a LangOptions parameter, otherwise it may be
...
out-of-sync how a file is compiled. Patch by Matthias Kleine!
llvm-svn: 138580
2011-08-25 20:39:19 +00:00
David Greene
6e913571a2
Constify Comparison
...
Make ConstantInt::uge() const so it may be used in const contexts.
llvm-svn: 138579
2011-08-25 20:18:22 +00:00
Chad Rosier
9c286cce2e
80-column and spacing.
...
llvm-svn: 138578
2011-08-25 20:17:19 +00:00
Johnny Chen
bbfa68b090
Make ThreadList::GetSelectedThread() select and return the 0th thread if there's no
...
currently selected thread. And update the call sites accordingly.
llvm-svn: 138577
2011-08-25 19:38:34 +00:00
Ted Kremenek
1b7f49c2d6
Teach -Wunreachable-code about dead code caused by macro expansions. This should suppress false positives resulting from 'assert' and friends.
...
llvm-svn: 138576
2011-08-25 19:28:55 +00:00
Owen Anderson
5e30972cff
Port over additional encoding tests to decoding tests, and fix an operand ordering bug this exposed.
...
llvm-svn: 138575
2011-08-25 18:30:18 +00:00
Douglas Gregor
69e9464340
Switch ASTReader::GetHeaderFileInfo() from a walk over the module
...
chain to a proper search.
llvm-svn: 138574
2011-08-25 18:14:34 +00:00
Benjamin Kramer
5a122f37fe
Intel family 6 model 44 is Gulftown/Westmere-EP and doesn't have AVX.
...
llvm-svn: 138573
2011-08-25 18:05:56 +00:00
Douglas Gregor
14f771695a
Switch the forward walk through the module chain over to a depth-first
...
search in ASTReader::ReadPreprocessedEntities().
llvm-svn: 138572
2011-08-25 18:03:05 +00:00
Fariborz Jahanian
35d0e66bee
Fixes a typo in my last patch.
...
llvm-svn: 138571
2011-08-25 18:01:27 +00:00
Andrew Trick
6446bf780a
ARM fix for missing implicit operands on ldmia_ret.
...
rdar://10005094: miscompile of 176.gcc
llvm-svn: 138568
2011-08-25 17:50:53 +00:00
Fariborz Jahanian
73d5f67f5a
objc -arse: Use DeclGroup for forward class declarations;
...
as in @class foo, bar. More cleanup to follow.
llvm-svn: 138567
2011-08-25 17:47:31 +00:00
Andrew Trick
f7ecc16c96
whitespace
...
llvm-svn: 138566
2011-08-25 17:40:54 +00:00
Johnny Chen
40e3592961
Initializes (uint64_t)buf variable, patch by Filipe Cabecinhas!
...
llvm-svn: 138565
2011-08-25 17:40:39 +00:00
Chad Rosier
160276dc93
[driver] Do not add -kext to the link command line when compiling with
...
-fapple-kext.
Fixes <rdar://problem/10013310>. Reverts <rdar://problem/7809940>.
llvm-svn: 138564
2011-08-25 17:33:03 +00:00
Johnny Chen
2c595273e0
Fix compilation error with DEBUG_STACK_FRAMES defined, patch by Filipe Cabecinhas!
...
With some slight modification.
llvm-svn: 138563
2011-08-25 17:27:02 +00:00
Jim Grosbach
1c171b121a
Explicitly disallow predication in Thumb1 assembly.
...
llvm-svn: 138562
2011-08-25 17:23:55 +00:00
Douglas Gregor
aa7cbfd259
Remove a bogus assertion from the AST reader, which assumed that
...
redeclarations of a particular entity would occur in source
order. Friend declarations that occur within class templates (or
member classes thereof) do not follow this, nor would modules. Big
thanks to Erik Verbruggen for reducing this problem from the Very
Large Qt preamble testcase he found.
llvm-svn: 138557
2011-08-25 15:28:26 +00:00
Douglas Gregor
c10edd6dd0
Use the module manager's search facility to look for methods with a
...
given selector, rather than walking the chain backwards. Teach its
visitor how to merge multiple result sets into a single result set,
combining the results of selector lookup in several different modules
into a single result set.
llvm-svn: 138556
2011-08-25 14:51:20 +00:00
Tobias Grosser
c532f12965
Fix crashes due to unaligned parameters
...
Due to the recent introduction of isl_id, parameters need now always to be
aligned. This was not yet taken care of in the code path of vectorization and
dependence analysis.
llvm-svn: 138555
2011-08-25 08:40:59 +00:00
Tobias Grosser
b406d227d2
ScheduleOptimizer: Fix another memleak
...
llvm-svn: 138554
2011-08-25 08:40:52 +00:00
Craig Topper
14380ff9a0
Add more missing TB encodings to VEX instructions to allow them to be disassembled. Fixes remainder of PR10678.
...
llvm-svn: 138553
2011-08-25 08:11:01 +00:00
Craig Topper
76e3e0b554
Give ATTR_VEX higher priority when generating the disassembler context table. Fixes disassembling of VEX instructions with 'pp'=00. Fixes subset of PR10678.
...
llvm-svn: 138552
2011-08-25 07:42:00 +00:00
Craig Topper
e1541838f9
Add TB encoding to VEROALL, VZEROUPPER, and VCVTPS2PD to allow them to be disassembled. Fixes PR10723.
...
llvm-svn: 138551
2011-08-25 06:57:46 +00:00
Bill Wendling
3fb137f7ef
LSR wants to split the landing pad's critical edge. Let it do it, but use the
...
proper function to do it.
llvm-svn: 138550
2011-08-25 05:55:40 +00:00
Greg Clayton
447ff1bfdc
Make the CFBundleShortVersionString and CFBundleVersion automatically track
...
the Apple Generic Version number from the Xcode project.
llvm-svn: 138549
2011-08-25 04:13:59 +00:00