Sean Callanan
d5145b36ef
Wrapped some logging statements in conditionals, to prevent
...
crashes.
llvm-svn: 143756
2011-11-05 00:08:12 +00:00
Chad Rosier
f0055f61fb
Allow i1 to be promoted to i32 for ARM APCS calling convention.
...
llvm-svn: 143755
2011-11-05 00:02:56 +00:00
Argyrios Kyrtzidis
aed9bd7cc1
[arcmt] Fix an assertion hit in rdar://10336125; a bit too complicated to reduce.
...
llvm-svn: 143754
2011-11-05 00:02:26 +00:00
Pete Cooper
77c703f11c
Added missing &. Fixes <rdar://problem/10393723>
...
llvm-svn: 143753
2011-11-04 23:49:14 +00:00
Chandler Carruth
df52783e32
Begin the migration of header search logic to the driver, starting with
...
Windows. There are still FIXMEs and lots of problems with this code.
Some of them will be addressed shortly by my follow-up patches, but most
are going to wait until we isolate this code and can fix it properly.
This version should be no worse than what we had before.
llvm-svn: 143752
2011-11-04 23:49:05 +00:00
Chandler Carruth
814db37f7d
Switch the C++ include interface in the ToolChain to use the same naming
...
as the system include interface before I start adding implementations of
it to individual ToolChain implementations.
llvm-svn: 143751
2011-11-04 23:49:01 +00:00
Eli Friedman
8f249600e7
Enhanced vzeroupper insertion pass that avoids inserting vzeroupper where it is unnecessary through local analysis. Patch from Bruno Cardoso Lopes, with some additional changes.
...
I'm going to wait for any review comments and perform some additional testing before turning this on by default.
llvm-svn: 143750
2011-11-04 23:46:11 +00:00
Chad Rosier
5b8fdd7b62
Cannot create a result register for non-legal types.
...
llvm-svn: 143749
2011-11-04 23:45:39 +00:00
Argyrios Kyrtzidis
088789caa6
Check for invalid after calling getSLocEntry, for safety.
...
llvm-svn: 143748
2011-11-04 23:43:06 +00:00
Argyrios Kyrtzidis
6b2d47d829
[arcmt] In GC, error out when there is a call that returns a pointer to
...
GC managed non-objc object memory.
llvm-svn: 143747
2011-11-04 23:43:03 +00:00
Daniel Dunbar
b0a48e1dd8
build/make: Fix the output path of the llvm-config-2 library dependency table.
...
llvm-svn: 143746
2011-11-04 23:40:14 +00:00
Daniel Dunbar
b814ee46e8
llvm-build: Quote colons in target names, in an attempt to make msys happy.
...
llvm-svn: 143745
2011-11-04 23:40:11 +00:00
Daniel Dunbar
e9733850be
llvm-build: Add initial --write-cmake-fragment option.
...
llvm-svn: 143744
2011-11-04 23:10:37 +00:00
Chad Rosier
e8b8b77307
When materializing an i32, SExt vs ZExt doesn't matter when we're trying to fit
...
in a 16-bit immediate. However, for the shorter non-legal types (i.e., i1, i8,
i16) we should not sign-extend. This prevents us from materializing things
such as 'true' (i.e., i1 1).
llvm-svn: 143743
2011-11-04 23:09:49 +00:00
Daniel Dunbar
21079cad11
build/cmake: Change to require Python be available.
...
llvm-svn: 143742
2011-11-04 23:04:05 +00:00
Sean Callanan
bfb237bc02
Updated LLVM/Clang to pick up a fix for imports of
...
C++ vtables, fixing a record layout problem in the
expression parser.
Also fixed various problems with the generation
and unpacking of llvm.zip given our new better
handling of multiple architectures in the LLVM
build.
(And added a log message that will hopefully catch
record layout problems in the future.)
llvm-svn: 143741
2011-11-04 22:46:46 +00:00
Chad Rosier
67f96887aa
Enable support for materializing i1, i8, and i16 integers via move immediate.
...
llvm-svn: 143739
2011-11-04 22:29:00 +00:00
Bruno Cardoso Lopes
c9473e9809
Add mips ELF relocation types. Patch by Jack Carter!
...
llvm-svn: 143738
2011-11-04 22:24:36 +00:00
Bill Wendling
ef3cdeab45
Fix some misplaced punctuation.
...
llvm-svn: 143737
2011-11-04 20:40:41 +00:00
Argyrios Kyrtzidis
d979df9e18
In ARC, when applying an ownership to a non-objc pointer, instead of ignoring it
...
create an attributed type with same type as the original type.
We effectively retain the source info that an ownership attribute was present but the attribute
is ignored by not modifying the type that it was applied to.
llvm-svn: 143736
2011-11-04 20:37:24 +00:00
Rafael Espindola
c2a8401ad2
Add triple to test.
...
llvm-svn: 143735
2011-11-04 20:20:34 +00:00
Devang Patel
384dfa4f10
Enable -flimit-debug-info by default. Now, clang lazily emits debug info for structs. Original behavior can be restored using -fno-limit-debug-info.
...
llvm-svn: 143733
2011-11-04 20:05:58 +00:00
Chad Rosier
c2bf338d35
[driver] Don't blindly accept all -g options.
...
rdar://10383444
llvm-svn: 143732
2011-11-04 19:28:44 +00:00
Daniel Dunbar
4a2eab0dac
build/cmake: Coalesce the configuration time header include fragment generation
...
for target definitions.
llvm-svn: 143731
2011-11-04 19:04:42 +00:00
Daniel Dunbar
ad3946ac6f
build/cmake: Coalesce in-tree sanity checks.
...
llvm-svn: 143730
2011-11-04 19:04:39 +00:00
Daniel Dunbar
511e29644f
build/cmake: Tidy up specification of build/include options for (tools, runtime,
...
examples, and tests).
llvm-svn: 143729
2011-11-04 19:04:37 +00:00
Daniel Dunbar
10fa2df7c5
build/cmake: Move all the user controllable options into top-level CMakeLists
...
for consistency.
llvm-svn: 143728
2011-11-04 19:04:35 +00:00
Daniel Dunbar
4a9c6426ff
build/cmake: Use tblgen macro directly instead of llvm_tablegen, which just
...
added a layer of indirection with no value (not even conciseness).
llvm-svn: 143727
2011-11-04 19:04:23 +00:00
Rafael Espindola
6cf4e830ce
Emit declarations before definitions if they are available. This causes DW_AT_specification to
...
point back in the file in the included testcase. Fixes PR11300.
llvm-svn: 143726
2011-11-04 19:00:29 +00:00
Devang Patel
2ccf84e3a5
Revert r143551. It is causing g++.dg/template/crash52.C test failure.
...
llvm-svn: 143725
2011-11-04 18:52:43 +00:00
Fariborz Jahanian
37c6417949
objc: fixed enum type is supported in objc mode.
...
Fixes a bug where enumerator type is not this
fixed type. // rdar://10381507
llvm-svn: 143724
2011-11-04 18:51:24 +00:00
Bill Wendling
5f689e7b3a
Reformatting changes to get rid of blank lines, put code on one line, and to
...
decrease some code indentation. No intended functional changes.
llvm-svn: 143723
2011-11-04 18:48:00 +00:00
Eli Friedman
5e00f6e16f
Add missing includes/decls.
...
llvm-svn: 143722
2011-11-04 18:45:34 +00:00
Dan Gohman
ce3d6248b2
Add tests for existing InstSimplify features.
...
llvm-svn: 143721
2011-11-04 18:39:16 +00:00
Richard Smith
fe5354b945
Clean up C++11 constant expression testing.
...
llvm-svn: 143720
2011-11-04 18:32:57 +00:00
Dan Gohman
85977e6ab4
Teach instsimplify to simplify calls to undef.
...
llvm-svn: 143719
2011-11-04 18:32:42 +00:00
Eli Friedman
97540c3a4a
Add missing includes/class declaration.
...
llvm-svn: 143718
2011-11-04 18:30:30 +00:00
Eli Friedman
c599df75f2
Add missing forward declarations.
...
llvm-svn: 143717
2011-11-04 18:29:09 +00:00
Eli Friedman
2bcf264ec7
Add a couple missing includes; found while analyzing LLVM headers.
...
llvm-svn: 143716
2011-11-04 18:19:43 +00:00
Eli Friedman
88b24261f6
Delete names for unused parameters in inline function definitions in headers, so LLVM users can compile with -Wunused-parameter. PR11257; based on patch by Kevin Harris.
...
llvm-svn: 143715
2011-11-04 18:11:56 +00:00
Bob Wilson
269532de25
Build llvmCore with RTTI enabled. <rdar://problem/10395761>
...
llvm-svn: 143714
2011-11-04 17:57:13 +00:00
Greg Clayton
9a67c268f8
For "Debug" and "Release" builds, don't build llvm into the $(OBJROOT) since
...
we often nuke our "build" folder so we can do clean builds. This way if you
are building your own LLVM you won't have to rebuild LLVM when you do remove
your build folder. The new location for the LLVM build is:
lldb/llvm-build
llvm-svn: 143713
2011-11-04 17:36:00 +00:00
Eli Friedman
5b693c2fa6
Add missing argument for atomic instructions in c++ backend. PR11268, part 2.
...
llvm-svn: 143712
2011-11-04 17:29:35 +00:00
Greg Clayton
755c73f1e1
Fixed the LD_DYLIB_INSTALL_NAME to the LLDB.framework.
...
llvm-svn: 143710
2011-11-04 17:18:16 +00:00
Daniel Dunbar
d20ea7dc59
utils: Remove build-for-llvm-top.sh and ModuleInfo.txt, which are not documented and I am pretty sure no one uses.
...
llvm-svn: 143708
2011-11-04 17:14:44 +00:00
Devang Patel
45124500bb
Add new test.
...
llvm-svn: 143706
2011-11-04 17:12:03 +00:00
Chad Rosier
e502a88b50
Remove declarations for functions that don't exist (and never have).
...
Patch by Anders Waldenborg <anders@0x63.nu>.
llvm-svn: 143705
2011-11-04 17:07:11 +00:00
Devang Patel
f1faeefb32
Add new test.
...
llvm-svn: 143704
2011-11-04 16:57:26 +00:00
Benjamin Kramer
44030f12f1
Fix linux build after r143679.
...
llvm-svn: 143703
2011-11-04 16:06:40 +00:00
Howard Hinnant
91ed25d186
Remove support folder from Apple install
...
llvm-svn: 143702
2011-11-04 15:59:51 +00:00