Sean Callanan
6d6acc89ad
Fixed a problem where the target didn't use a
...
NULL-terminated C string to store the contents
of the expression prefix file. This meant that
expressions, when printing the contents of the
prefix into the expression's text, would
invariably put in bad data after the end of the
expression.
Now, instead, we store the prefix contents in a
std::string, which handles null-termination
correctly.
llvm-svn: 144760
2011-11-16 01:54:57 +00:00
Michael J. Spencer
415e8aa84a
Remove extra ,.
...
llvm-svn: 144759
2011-11-16 01:36:50 +00:00
Kostya Serebryany
6e6b03ec46
AddressSanitizer, first commit (compiler module only)
...
llvm-svn: 144758
2011-11-16 01:35:23 +00:00
Michael J. Spencer
ca48ae0194
Object/Archive: Give Child a operator < for map.
...
llvm-svn: 144757
2011-11-16 01:25:13 +00:00
Michael J. Spencer
ecdd31181d
Support/COFF: Add structs and enums from the standard for image files.
...
llvm-svn: 144756
2011-11-16 01:24:57 +00:00
Michael J. Spencer
53723de5b8
llvm-objdump: Ignore non-objects in archives.
...
llvm-svn: 144755
2011-11-16 01:24:41 +00:00
Daniel Dunbar
b151274d3d
lib: Remove uses of complex.h which does not appear to be required.
...
llvm-svn: 144754
2011-11-16 01:19:32 +00:00
Daniel Dunbar
490a270f18
lib/gcc_personality_v0: Remove an unnecessary include.
...
llvm-svn: 144753
2011-11-16 01:19:29 +00:00
Daniel Dunbar
5ed39314ce
lib: Eliminate direct include of stdlib.h from files that used to (potentially)
...
need it for compilerrt_abort().
llvm-svn: 144752
2011-11-16 01:19:26 +00:00
Daniel Dunbar
2b88e03404
lib: Add support for library wide utility functions, and make compilerrt_abort()
...
a real boy.
- The utility module needs to be included into every produced library, because
we don't have enough dependency tracking to know exactly which other modules
might require the utilities.
llvm-svn: 144751
2011-11-16 01:19:19 +00:00
Daniel Dunbar
2f9c1404dd
lib/{ppc,x86_64}: Fixup a number of files to include int_lib.h instead of
...
directly including system headers.
llvm-svn: 144750
2011-11-16 01:19:16 +00:00
Daniel Dunbar
7557f0248a
lib: Remove math.h from int_lib.h, which doesn't appear to be required.
...
llvm-svn: 144749
2011-11-16 01:19:12 +00:00
Kostya Serebryany
db999c01f2
test commit to verify that commit access works (added blank line)
...
llvm-svn: 144748
2011-11-16 01:14:38 +00:00
Owen Anderson
ca2f78a95b
Rename MVT::untyped to MVT::Untyped to match similar nomenclature.
...
llvm-svn: 144747
2011-11-16 01:02:57 +00:00
Andrew Trick
90c7a108ca
Fix SCEV overly optimistic back edge taken count for multi-exit loops.
...
Fixes PR11375: Different results for 'clang++ huh.cpp'...
llvm-svn: 144746
2011-11-16 00:52:40 +00:00
Eli Friedman
d20adbdce3
Fix a bunch of really nasty bugs in how we compute alignment for reference lvalues. PR11376.
...
llvm-svn: 144745
2011-11-16 00:42:57 +00:00
Sean Callanan
ed8d58fcc1
Fixed a crash when we merrily went on to try to log
...
information about a nonexistent function declaration.
llvm-svn: 144744
2011-11-16 00:40:13 +00:00
Chad Rosier
af13d767a2
Add FIXME comment.
...
llvm-svn: 144743
2011-11-16 00:32:20 +00:00
Douglas Gregor
81ac842151
Switch some more of the modules tests over to "-emit-module-from-map",
...
and remove stray fprintf.
llvm-svn: 144742
2011-11-16 00:21:54 +00:00
Sean Callanan
a6cbf06d0a
Two fixes for Objetive-C methods that return struct
...
types. First, I added handling for the memset intrinsic
in the IR, which is used to zero out the returned struct.
Second, I fixed the object-checking instrumentation
to objc_msgSend_stret, and generally tightened up how
the object-checking functions get inserted.
llvm-svn: 144741
2011-11-16 00:20:50 +00:00
Daniel Dunbar
2c523a6ff0
build/darwin_bni: Remove consistency check I added, I forgot we always load
...
every platform (even if it isn't being built).
llvm-svn: 144740
2011-11-16 00:20:40 +00:00
Daniel Dunbar
7205b23e79
lib: Include float.h in int_lib.h, and eliminate duplicate includes from a number of source files.
...
llvm-svn: 144739
2011-11-16 00:20:36 +00:00
Daniel Dunbar
6328e7b1b3
build/darwin_bni: Add a consistency check.
...
llvm-svn: 144738
2011-11-16 00:20:29 +00:00
Douglas Gregor
2b20cb87f5
Add support for building a module from a module map to the -cc1
...
interface. This is currently limited to modules with umbrella
headers.
llvm-svn: 144736
2011-11-16 00:09:06 +00:00
Jakob Stoklund Olesen
653183fd5c
Enable -widen-vmovs by default.
...
This will widen 32-bit register vmov instructions to 64-bit when
possible. The 64-bit vmovd instructions can then be translated to NEON
vorr instructions by the execution dependency fix pass.
The copies are only widened if they are marked as clobbering the whole
D-register.
llvm-svn: 144734
2011-11-15 23:53:18 +00:00
Eric Christopher
0abbd0ef5a
Stabilize the output of the dwarf accelerator tables. Fixes a comparison
...
failure during bootstrap with it turned on.
llvm-svn: 144731
2011-11-15 23:37:17 +00:00
Chad Rosier
291ce47db7
GEPs with all zero indices are trivially coalesced by fast-isel. For example,
...
%arrayidx135 = getelementptr inbounds [4 x [4 x [4 x [4 x i32]]]]* %M0, i32 0, i64 0
%arrayidx136 = getelementptr inbounds [4 x [4 x [4 x i32]]]* %arrayidx135, i32 0, i64 %idxprom134
Prior to this commit, the GEP instruction that defines %arrayidx136 thought that
%arrayidx135 was a trivial kill. The GEP that defines %arrayidx135 doesn't
generate any code and thus %M0 gets folded into the second GEP. Thus, we need
to look through GEPs with all zero indices.
rdar://10443319
llvm-svn: 144730
2011-11-15 23:34:05 +00:00
Francois Pichet
78286b24fd
In Microsoft mode, make "Unqualified lookup into dependent bases of class templates" works inside static functions.
...
llvm-svn: 144729
2011-11-15 23:33:34 +00:00
Johnny Chen
4c1b096743
While we are at it, verify that 'my_int_ptr' points to 'g_my_int', using the SBTarget.ResolveLoadAddress() to get its SBAddress,
...
and SBAddress.GetSymbol() to get the corresponding symbol.
llvm-svn: 144728
2011-11-15 23:30:39 +00:00
Jim Grosbach
e891fe8d6c
ARM assembly parsing for register range syntax for VLD/VST register lists.
...
For example,
vld1.f64 {d2-d5}, [r2,:128]!
Should be equivalent to:
vld1.f64 {d2,d3,d4,d5}, [r2,:128]!
It's not documented syntax in the ARM ARM, but it is consistent with what's
accepted for VLDM/VSTM and is unambiguous in meaning, so it's a good thing to
support.
rdar://10451128
llvm-svn: 144727
2011-11-15 23:19:15 +00:00
Devang Patel
8cd896404a
Merge ObjCPropertyDebugInfo.html into SourceLevelDebugging.html
...
llvm-svn: 144724
2011-11-15 22:59:54 +00:00
Douglas Gregor
ac42ec6fc5
Revert r144703. It was a dumb idea anyway; will add the new bits more
...
incrementally with a new frontend action.
llvm-svn: 144723
2011-11-15 22:58:25 +00:00
Jim Grosbach
003cea6011
ARM assembly parsing for data type suffices on NEON VMOV aliases.
...
llvm-svn: 144722
2011-11-15 22:54:42 +00:00
Nadav Rotem
51f71054b6
Fix MSVC warnings by adding a cast.
...
llvm-svn: 144721
2011-11-15 22:54:21 +00:00
Nadav Rotem
37010002f2
AVX: Add support for vbroadcast from BUILD_VECTOR and refactor some of the vbroadcast code.
...
llvm-svn: 144720
2011-11-15 22:50:37 +00:00
Chris Lattner
dfcdd0c5be
jakob fixed X87 inline asm!
...
llvm-svn: 144719
2011-11-15 22:48:24 +00:00
Johnny Chen
f031bb192f
Fix objc runtime warnings from the inferior program.
...
llvm-svn: 144717
2011-11-15 22:42:53 +00:00
Chris Lattner
7cdcbe3788
add ImmutableSet/Map dox, patch by Caitlin Sadowski!
...
llvm-svn: 144716
2011-11-15 22:40:14 +00:00
Eli Friedman
4134073c4b
Compute whether a class is trivial correctly for template classes with an explicitly deleted or defaulted special member. PR11387.
...
llvm-svn: 144715
2011-11-15 22:39:08 +00:00
NAKAMURA Takumi
f6b315c081
test/CodeGen/X86/dec-eflags-lower.ll: Relax expression for win32 x64.
...
llvm-svn: 144714
2011-11-15 22:30:37 +00:00
Jim Grosbach
75fb4abcdc
ARM assembly parsing two operand forms for shift instructions.
...
llvm-svn: 144713
2011-11-15 22:27:54 +00:00
Sean Callanan
4bf80d5544
Made Target own a ClangASTSource that will be used
...
to complete types in the scratch AST context.
llvm-svn: 144712
2011-11-15 22:27:19 +00:00
Chris Lattner
212a0867e9
add PTX backend info
...
llvm-svn: 144711
2011-11-15 22:23:46 +00:00
Jim Grosbach
a01033709f
ARM VFP assembly parsing for VADD and VSUB two-operand forms.
...
llvm-svn: 144710
2011-11-15 22:15:10 +00:00
Jim Grosbach
8279c1828f
ARM accept an immediate offset in memory operands w/o the '#'.
...
llvm-svn: 144709
2011-11-15 22:14:41 +00:00
Chris Lattner
92f2183360
some notes.
...
llvm-svn: 144708
2011-11-15 22:13:27 +00:00
Pete Cooper
7c7ba1baa1
Added custom lowering for load->dec->store sequence in x86 when the EFLAGS registers is used
...
by later instructions.
Only done for DEC64m right now.
Fixes <rdar://problem/6172640>
llvm-svn: 144705
2011-11-15 21:57:53 +00:00
Sean Callanan
100d74e267
Eliminated a compile warning by removing dyn_cast
...
where isa is good enough.
llvm-svn: 144704
2011-11-15 21:50:18 +00:00
Douglas Gregor
86b6f74217
Split GenerateModuleAction into its own action, which will start
...
differing from GeneratePCHAction fairly soon.
llvm-svn: 144703
2011-11-15 21:49:36 +00:00
Sean Callanan
b4db660cff
Removed the ClangASTImporter pointer from
...
ClangExpressionDeclMap, which actually uses the
one it inherits from ClangASTSource.
llvm-svn: 144702
2011-11-15 21:49:24 +00:00