Jim Grosbach
a98f80095b
ARM: Tidy up representation of PKH instruction.
...
The shift type is implied by the instruction (PKHBT vs. PKHTB) and so shouldn't
be also encoded as part of the shift value immediate. Otherwise we're able to
represent invalid instructions, plus it needlessly complicates the
representation. Preparatory work for asm parsing of these instructions.
llvm-svn: 135616
2011-07-20 20:32:09 +00:00
Johnny Chen
424e55933a
Add a note.
...
llvm-svn: 135615
2011-07-20 20:28:36 +00:00
Chad Rosier
e3805fc118
When the compiler crashes, the compiler driver now produces diagnostic information
...
including the fully preprocessed source file(s) and command line arguments. The
developer is asked to attach this diagnostic information to a bug report.
llvm-svn: 135614
2011-07-20 20:26:32 +00:00
Benjamin Kramer
e6f7f914db
Fix cmake again :)
...
llvm-svn: 135613
2011-07-20 20:00:06 +00:00
Evan Cheng
b5517a4d8c
Match MCContext change.
...
llvm-svn: 135612
2011-07-20 19:53:19 +00:00
Evan Cheng
bbf3b0de8b
Goodbye TargetAsmInfo. This eliminate last bit of CodeGen and Target in llvm-mc.
...
There is still a bit more refactoring left to do in Targets. But we are now very
close to fixing all the layering issues in MC.
llvm-svn: 135611
2011-07-20 19:50:42 +00:00
Ted Kremenek
81383c20e4
Fix -Wuninitialized regression involving functions invalidating parameters passed by reference.
...
llvm-svn: 135610
2011-07-20 19:49:47 +00:00
Benjamin Kramer
82f64488ec
Fix cmake.
...
llvm-svn: 135609
2011-07-20 19:43:38 +00:00
Benjamin Kramer
87ee76ca73
Sketch out an CFG reconstruction mode for llvm-objdump.
...
- Not great yet, but it's a start.
- Requires an object file with a symbol table. (I really want to fix this, but it'll need a whole new algorithm)
- ELF and COFF won't work at the moment due to libObject shortcomings.
To try it out run
$ llvm-objdump -d --cfg foo.o
This will create a graphviz file for every symbol in the object file's text section containing a CFG.
llvm-svn: 135608
2011-07-20 19:37:35 +00:00
Eli Friedman
ae60b6b008
Extend the hack for _GLOBAL_OFFSET_TABLE_ slightly; PR10389.
...
llvm-svn: 135607
2011-07-20 19:36:11 +00:00
Johnny Chen
15a6ac4821
Minor modification.
...
llvm-svn: 135606
2011-07-20 19:29:08 +00:00
Chad Rosier
7802c389da
Whitespace.
...
llvm-svn: 135605
2011-07-20 19:27:01 +00:00
Chad Rosier
5371243dab
If -ccc-host-triple i386-pc-win32-macho or -ccc-host-triple
...
x86_64-pc-win32-macho is used in conjunction with -no-integrated-as go ahead and
use the Darwin system assembler.
rdar://9785470
llvm-svn: 135604
2011-07-20 19:14:30 +00:00
Jim Grosbach
2ea9f25f5f
Add parsing/encoding tests for ARM ORR instruction.
...
llvm-svn: 135602
2011-07-20 18:48:53 +00:00
Marshall Clow
e41bb4dd69
Added copyright header
...
llvm-svn: 135601
2011-07-20 18:41:23 +00:00
Jim Grosbach
a3fcb962eb
Consolidate ARM NOP encoding test.
...
llvm-svn: 135600
2011-07-20 18:39:38 +00:00
Jim Grosbach
614e90a126
ARM parsing and encoding tests for MVN
...
llvm-svn: 135599
2011-07-20 18:37:08 +00:00
Johnny Chen
a17c7e0517
Skip the remaining -Y? (skipping ? layers of summaries) tests if using a known version
...
of Apple gcc build which produces wrong namespace for std::string in debug info.
llvm-svn: 135597
2011-07-20 18:29:32 +00:00
Jim Grosbach
8d11490771
ARM assembly parsing of MUL instruction.
...
Correctly handle 's' bit and predication suffices. Add parsing and encoding
tests.
llvm-svn: 135596
2011-07-20 18:20:31 +00:00
Eli Friedman
6ed783228d
PR10421: Fix a straightforward bug in the widening logic for CONCAT_VECTORS.
...
llvm-svn: 135595
2011-07-20 18:14:33 +00:00
Benjamin Kramer
acb9ed4077
Initialize the EHFrameSection pointer to zero.
...
This should fix the spurious buildbot errors.
llvm-svn: 135594
2011-07-20 18:13:23 +00:00
Fariborz Jahanian
a644f9cb73
arc-objc++: Issue an arc specific diagnostic when overload resolution
...
fails because of lifetime differences of parameter and argument type.
// rdar://9790531
llvm-svn: 135593
2011-07-20 17:14:09 +00:00
Eric Christopher
65080cc55c
Regenerate configure and friends for Chad.
...
llvm-svn: 135592
2011-07-20 17:04:49 +00:00
NAKAMURA Takumi
6657e979f5
test/CMakeLists.txt: Re-indent.
...
llvm-svn: 135591
2011-07-20 16:35:49 +00:00
Howard Hinnant
c6b4318b9a
Update status: http://libcxxabi.llvm.org/spec.html . Looking good! :-)
...
llvm-svn: 135590
2011-07-20 16:32:57 +00:00
Marshall Clow
e2dcb75b2e
Memory manangement routines for exception objects
...
llvm-svn: 135587
2011-07-20 15:04:39 +00:00
Marshall Clow
1df50ca6a2
Exception handling stuctures, and thread-local variables for exception handling
...
llvm-svn: 135586
2011-07-20 14:53:53 +00:00
Benjamin Kramer
0d3d777041
Unbreak build after API change.
...
llvm-svn: 135585
2011-07-20 14:43:06 +00:00
Marshall Clow
60fa2d232a
Fixed struct/class mismatch for std::type_info and added NORETURN flags
...
llvm-svn: 135584
2011-07-20 14:27:46 +00:00
Jay Foad
50bfbab033
Fix a GCC warning.
...
llvm-svn: 135581
2011-07-20 08:15:21 +00:00
Evan Cheng
efd9b4240f
- Move CodeModel from a TargetMachine global option to MCCodeGenInfo.
...
- Introduce JITDefault code model. This tells targets to set different default
code model for JIT. This eliminates the ugly hack in TargetMachine where
code model is changed after construction.
llvm-svn: 135580
2011-07-20 07:51:56 +00:00
Chris Lattner
d2b92d6544
arrayref should now move in here, and redundant #includes of <cassert> can go
...
away (since it comes in through Casting.h). This will have to wait for another
day when I'm unmotivated though, or someone else to pick it up :)
llvm-svn: 135579
2011-07-20 07:13:40 +00:00
Chris Lattner
c5efe4e520
remove some now-redundant forward declarations.
...
llvm-svn: 135578
2011-07-20 07:12:43 +00:00
Chris Lattner
62ff6e8b17
add raw_ostream and Twine to LLVM.h, eliminating a ton of llvm:: qualifications.
...
llvm-svn: 135577
2011-07-20 07:06:53 +00:00
Chris Lattner
01cf8db38b
now that we have a centralized place to do so, add some using declarations for
...
some common llvm types: stringref and smallvector. This cleans up the codebase
quite a bit.
llvm-svn: 135576
2011-07-20 06:58:45 +00:00
Evan Cheng
345b6b45c1
Include MCRegisterInfo to eliminate a compilation warning.
...
llvm-svn: 135575
2011-07-20 06:54:19 +00:00
Chris Lattner
dba38736a5
introduce a centralized place to introduce and inject llvm types into the
...
clang namespace. There are a number of LLVM types that are used pervasively
and it doesn't make sense to keep qualifying them. Start with casting
operators.
llvm-svn: 135574
2011-07-20 06:37:11 +00:00
Francois Pichet
e3063f022b
Fix the CMake build.
...
llvm-svn: 135573
2011-07-20 06:35:24 +00:00
Chris Lattner
7369c14b6a
fix rdar://9780211 - Clang crashes with an assertion failure building WKView.mm from WebKit
...
This is something of a hack, the problem is as follows:
1. we instantiate both copied of RetainPtr with the two different argument types
(an id and protocol-qualified id).
2. We refer to the ctor of one of the instantiations when introducing global "x",
this causes us to emit an llvm::Function for a prototype whose "this" has type
"RetainPtr<id<bork> >*".
3. We refer to the ctor of the other instantiation when introducing global "y",
however, because it *mangles to the same name as the other ctor* we just use
a bitcasted version of the llvm::Function we previously emitted.
4. We emit deferred declarations, causing us to emit the body of the ctor, however
the body we emit is for RetainPtr<id>, which expects its 'this' to have an IR
type of "RetainPtr<id>*".
Because of the mangling collision, we don't have this case, and explode.
This is really some sort of weird AST invariant violation or something, but hey
a bitcast makes the pain go away.
llvm-svn: 135572
2011-07-20 06:29:00 +00:00
Chris Lattner
58c62473cd
fix a case where we're using ConvertType for a memory object.
...
It doesn't matter in practice, but it is good to be tidy.
llvm-svn: 135571
2011-07-20 06:23:59 +00:00
Evan Cheng
347033fd8b
Match LLVM API change.
...
llvm-svn: 135570
2011-07-20 06:22:27 +00:00
Evan Cheng
76792992d6
Add MCObjectFileInfo and sink the MCSections initialization code from
...
TargetLoweringObjectFileImpl down to MCObjectFileInfo.
TargetAsmInfo is done to one last method. It's *almost* gone!
llvm-svn: 135569
2011-07-20 05:58:47 +00:00
Andrew Trick
638b355a16
indvars: Added getInsertPointForUses to find a valid place to truncate the IV.
...
llvm-svn: 135568
2011-07-20 05:32:06 +00:00
Chris Lattner
245169620a
as eli points out, we're not doing memory stuff here. While ConvertType
...
and ConvertTypeForMem are the same for pointers, it is best to just
use ConvertType. Thanks Eli!
llvm-svn: 135567
2011-07-20 04:59:57 +00:00
Andrew Trick
2210448520
indvars -disable-iv-rewrite: Add NarrowIVDefUse to cache def-use
...
info. Holding Use* pointers is bad form even though it happened to
work in this case.
llvm-svn: 135566
2011-07-20 04:39:24 +00:00
Chris Lattner
71bd0c3263
fix PR10395 - array decay can produce an interesting type when
...
decaying an array of incomplete type (which has type [0 x i8]*) to a
normal pointer (which has incompletetype*).
llvm-svn: 135565
2011-07-20 04:31:01 +00:00
NAKAMURA Takumi
b66d255595
X86Subtarget.h: Assume "x86_64-cygwin", though it has not been released yet, to appease test/CodeGen/X86 on cygwin.
...
llvm-svn: 135564
2011-07-20 04:02:20 +00:00
Greg Clayton
07e66e3ebe
Added KDP resume, suspend, set/remove breakpoint, and kernel version support.
...
Also we now display a live update of the kexts that we are loading.
llvm-svn: 135563
2011-07-20 03:41:06 +00:00
Eric Christopher
60648578ba
New pointer rotate test.
...
llvm-svn: 135562
2011-07-20 03:09:11 +00:00
Eric Christopher
954bdafb50
Extra semi-colon.
...
llvm-svn: 135561
2011-07-20 02:44:39 +00:00