oota-llvm.git
15 years agoFix lli to print an error and exit when EE returns null but no string. Patch
Chris Lattner [Tue, 7 Jul 2009 18:31:09 +0000 (18:31 +0000)]
Fix lli to print an error and exit when EE returns null but no string.  Patch
by Eric Rannaud!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74930 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago"BinaryObject.h was implicitly converting between uint{16,32,64}_t to
Chris Lattner [Tue, 7 Jul 2009 18:28:00 +0000 (18:28 +0000)]
"BinaryObject.h was implicitly converting between uint{16,32,64}_t to
uint8_t (via 'foo & 255'), i replaced this with an explicit (uint8_t)
cast which is equivalent, faster and more correct (silences
type-related warnings). Also, following coding standards I replaced
post-increment with pre-increment."

Patch by Ryan Flynn!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74929 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove unused parameter.
Bill Wendling [Tue, 7 Jul 2009 18:21:19 +0000 (18:21 +0000)]
Remove unused parameter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74928 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoEliminate the static constructors and locks from DynamicLibrary.cpp.
Chris Lattner [Tue, 7 Jul 2009 18:17:07 +0000 (18:17 +0000)]
Eliminate the static constructors and locks from DynamicLibrary.cpp.
This fixes PR4512 and eliminating static ctors is always good.  Losing
thread safety is unfortunate, but the code is just incredibly poorly
designed.

If someone is interested, the "right" solution is to split
DynamicLibrary.cpp into two separate pieces: a stateless piece in
libsystem, and a simple support file in libsupport that has the
"state" (e.g.  AddSymbol) in managed static objects.

Doing this would both fix memory leaks we already have, as well as make
the code thread safe again.  it would also make sense to move all the
unix specific code in System/DynamicLibrary.cpp into
System/Unix/DynamicLibrary.inc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74927 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoremove dead code, noone creates instances of "DynamicLibrary", so the ctor and dtor...
Chris Lattner [Tue, 7 Jul 2009 18:01:58 +0000 (18:01 +0000)]
remove dead code, noone creates instances of "DynamicLibrary", so the ctor and dtor are dead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74926 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRevert 74898. It broke several tests.
Evan Cheng [Tue, 7 Jul 2009 17:50:43 +0000 (17:50 +0000)]
Revert 74898. It broke several tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74925 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agowe don't use libtool anymore, update comments.
Chris Lattner [Tue, 7 Jul 2009 17:50:11 +0000 (17:50 +0000)]
we don't use libtool anymore, update comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74924 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix braces.
Torok Edwin [Tue, 7 Jul 2009 17:39:53 +0000 (17:39 +0000)]
Fix braces.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74923 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoIntroduce new error handling API.
Torok Edwin [Tue, 7 Jul 2009 17:32:34 +0000 (17:32 +0000)]
Introduce new error handling API.
This will replace exit()/abort() style error handling with an API
that allows clients to register custom error handling hooks.
The default is to call exit(1) when no error handler is provided.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74922 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRe-LLVMContext-ize DebugInfo, now with less breakage.
Owen Anderson [Tue, 7 Jul 2009 17:12:53 +0000 (17:12 +0000)]
Re-LLVMContext-ize DebugInfo, now with less breakage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74920 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoChange all SCEV* to SCEV *.
Dan Gohman [Tue, 7 Jul 2009 17:06:11 +0000 (17:06 +0000)]
Change all SCEV* to SCEV *.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74918 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoThis parameter should default to true, not false.
Owen Anderson [Tue, 7 Jul 2009 16:56:05 +0000 (16:56 +0000)]
This parameter should default to true, not false.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74915 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRegenerate.
Mikhail Glushenkov [Tue, 7 Jul 2009 16:44:20 +0000 (16:44 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74914 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoDocumentation update.
Mikhail Glushenkov [Tue, 7 Jul 2009 16:43:49 +0000 (16:43 +0000)]
Documentation update.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74913 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoShow how to modify built-in options.
Mikhail Glushenkov [Tue, 7 Jul 2009 16:39:33 +0000 (16:39 +0000)]
Show how to modify built-in options.

Sanjiv complained about the need to maintain local changes to
lib/CompilerDriver.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74912 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRevert part of r74873 that broke Clang's debug info generation.
Owen Anderson [Tue, 7 Jul 2009 16:31:25 +0000 (16:31 +0000)]
Revert part of r74873 that broke Clang's debug info generation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74910 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRegenerate.
Mikhail Glushenkov [Tue, 7 Jul 2009 16:09:48 +0000 (16:09 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74908 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoDocumentation update.
Mikhail Glushenkov [Tue, 7 Jul 2009 16:09:29 +0000 (16:09 +0000)]
Documentation update.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74907 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agos/llvmc2/llvmc/
Mikhail Glushenkov [Tue, 7 Jul 2009 16:09:05 +0000 (16:09 +0000)]
s/llvmc2/llvmc/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74906 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd an 'init' option property.
Mikhail Glushenkov [Tue, 7 Jul 2009 16:08:41 +0000 (16:08 +0000)]
Add an 'init' option property.

Makes possible to provide default values for options defined in plugins (same as
cl::init).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74905 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRefactoring.
Mikhail Glushenkov [Tue, 7 Jul 2009 16:08:11 +0000 (16:08 +0000)]
Refactoring.

Make isList(), isSwitch() and isParameter() member functions of
OptionDescription.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74904 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoComment fix.
Mikhail Glushenkov [Tue, 7 Jul 2009 16:07:36 +0000 (16:07 +0000)]
Comment fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74903 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago if the terminator is a branch depending upon the side effects of a
Sanjiv Gupta [Tue, 7 Jul 2009 08:04:51 +0000 (08:04 +0000)]
 if the terminator is a branch depending upon the side effects of a
 previous cmp; a copy can not be inserted here if the copy insn also has
 side effects. We don't have access to the attributes of copy insn here;
 so just play safe by finding a safe locations for branch terminators.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74898 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd Thumb2 pkhbt / pkhtb.
Evan Cheng [Tue, 7 Jul 2009 05:35:52 +0000 (05:35 +0000)]
Add Thumb2 pkhbt / pkhtb.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74895 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd some more Thumb2 multiplication instructions.
Evan Cheng [Tue, 7 Jul 2009 01:17:28 +0000 (01:17 +0000)]
Add some more Thumb2 multiplication instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74889 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago80 col violation.
Evan Cheng [Tue, 7 Jul 2009 01:16:41 +0000 (01:16 +0000)]
80 col violation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74888 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoDon't accept globals as matching 'i' constraint
Dale Johannesen [Tue, 7 Jul 2009 00:18:49 +0000 (00:18 +0000)]
Don't accept globals as matching 'i' constraint
in PIC modes (in accordance with existing comment).
gcc.apple/asm-block-25.c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74886 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd isMetadata() to check metadata operand.
Devang Patel [Mon, 6 Jul 2009 23:46:02 +0000 (23:46 +0000)]
Add isMetadata() to check metadata operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74883 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd new ValueType for metadata.
Devang Patel [Mon, 6 Jul 2009 23:44:32 +0000 (23:44 +0000)]
Add new ValueType for metadata.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74882 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago!"i" is a valid MDString.
Devang Patel [Mon, 6 Jul 2009 23:40:48 +0000 (23:40 +0000)]
!"i" is a valid MDString.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74881 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAvoid directly relying on llvm.dbg.compile_unit and llvm.dbg.global_variables.
Devang Patel [Mon, 6 Jul 2009 23:28:36 +0000 (23:28 +0000)]
Avoid directly relying on llvm.dbg.compile_unit and llvm.dbg.global_variables.

PIC16 developers, please verify. Thanks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74880 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd FIXMEs.
Devang Patel [Mon, 6 Jul 2009 23:11:08 +0000 (23:11 +0000)]
Add FIXMEs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74879 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago"LLVMContext* " --> "LLVMContext *"
Owen Anderson [Mon, 6 Jul 2009 23:00:19 +0000 (23:00 +0000)]
"LLVMContext* " --> "LLVMContext *"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74878 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFinish LLVMContext-ing lib/Analysis. This required pushing LLVMContext's through...
Owen Anderson [Mon, 6 Jul 2009 22:37:39 +0000 (22:37 +0000)]
Finish LLVMContext-ing lib/Analysis.  This required pushing LLVMContext's through the ValueTracking API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74873 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoisThumb2 really should mean thumb2 only, not thumb2+.
Evan Cheng [Mon, 6 Jul 2009 22:29:14 +0000 (22:29 +0000)]
isThumb2 really should mean thumb2 only, not thumb2+.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74871 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd bfc to armv6t2.
Evan Cheng [Mon, 6 Jul 2009 22:23:46 +0000 (22:23 +0000)]
Add bfc to armv6t2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74868 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdded ARM::mls for armv6t2.
Evan Cheng [Mon, 6 Jul 2009 22:05:45 +0000 (22:05 +0000)]
Added ARM::mls for armv6t2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74866 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAvoid adding a duplicate def. This fixes PR4478.
Evan Cheng [Mon, 6 Jul 2009 21:34:05 +0000 (21:34 +0000)]
Avoid adding a duplicate def. This fixes PR4478.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74857 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoNo need to double-include config.h
Owen Anderson [Mon, 6 Jul 2009 21:24:37 +0000 (21:24 +0000)]
No need to double-include config.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74854 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoWe need to include config.h to get the proper setting to LLVM_MULTITHREADED.
Owen Anderson [Mon, 6 Jul 2009 18:50:47 +0000 (18:50 +0000)]
We need to include config.h to get the proper setting to LLVM_MULTITHREADED.

Patch by Xerxes Ranby.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74846 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoThread LLVMContext through the constant folding APIs, which touches a lot of files.
Owen Anderson [Mon, 6 Jul 2009 18:42:36 +0000 (18:42 +0000)]
Thread LLVMContext through the constant folding APIs, which touches a lot of files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74844 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago* Allow skipping parts of the installation to be able to do it in parts if one
Misha Brukman [Mon, 6 Jul 2009 18:29:03 +0000 (18:29 +0000)]
* Allow skipping parts of the installation to be able to do it in parts if one
  phase fails and the user wants to reinstall one of the components.
* Fixed LLVM-GCC configuration flags: s/--with-gnu-{as,ld}/--with-{as,ld}/
  The former is a boolean flag, the latter is a flag that takes a path.
* Added a new flag CROSS_MARCH, defaults to armv6.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74840 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agopic16 doesn't have a Data64bitsDirective. Set it NULL explicitly to tell the generic...
Sanjiv Gupta [Mon, 6 Jul 2009 18:09:11 +0000 (18:09 +0000)]
pic16 doesn't have a Data64bitsDirective. Set it NULL explicitly to tell the generic code to not pick the default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74839 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agopic16 isn't ready to handle llvm.metadata yet.
Sanjiv Gupta [Mon, 6 Jul 2009 18:07:06 +0000 (18:07 +0000)]
pic16 isn't ready to handle llvm.metadata yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74838 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd two new accessors to the C bindings, patch by Wladimir van der Laan!
Chris Lattner [Mon, 6 Jul 2009 17:29:59 +0000 (17:29 +0000)]
Add two new accessors to the C bindings, patch by Wladimir van der Laan!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74836 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoimprove portability to windows, patch by Xerces Ranby!
Chris Lattner [Mon, 6 Jul 2009 17:24:48 +0000 (17:24 +0000)]
improve portability to windows, patch by Xerces Ranby!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74835 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoOops, I #included errno.h from inside the llvm::sys namespace.
Jeffrey Yasskin [Mon, 6 Jul 2009 16:50:27 +0000 (16:50 +0000)]
Oops, I #included errno.h from inside the llvm::sys namespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74834 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMark this test as Darwin only. Patch by Bill Wendling.
Stuart Hastings [Mon, 6 Jul 2009 15:36:23 +0000 (15:36 +0000)]
Mark this test as Darwin only.  Patch by Bill Wendling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74829 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix the cmake build - patch by Xerxes Rånby.
Duncan Sands [Mon, 6 Jul 2009 14:28:32 +0000 (14:28 +0000)]
Fix the cmake build - patch by Xerxes Rånby.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74825 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoReverting back the changes checked-in accidently.
Sanjiv Gupta [Mon, 6 Jul 2009 10:34:10 +0000 (10:34 +0000)]
Reverting back the changes checked-in accidently.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74823 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoImplement _CONFIG macro to allow users to se to configuration settings on the part.
Sanjiv Gupta [Mon, 6 Jul 2009 10:18:37 +0000 (10:18 +0000)]
Implement _CONFIG macro to allow users to se to configuration settings on the part.
Implement _section macro to allow users to place objects in specific sections.
Implement _address macro to allow users to place objects at a particular address.
Placing objects at a memory address:
crate a unique section name from varname, address, object type and put that section at specified address. Mark this section a full (size = banksize) so that other objects do not compete for it while placing objects to sections in AsmPrinter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74822 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoChanged ELFCodeEmitter to inherit from ObjectCodeEmitter
Bruno Cardoso Lopes [Mon, 6 Jul 2009 09:26:48 +0000 (09:26 +0000)]
Changed ELFCodeEmitter to inherit from ObjectCodeEmitter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74821 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCorrected the names description. Change in a comment. No functionality change.
Sanjiv Gupta [Mon, 6 Jul 2009 08:22:15 +0000 (08:22 +0000)]
Corrected the names description. Change in a comment. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74819 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCleanup MachO writer and code emitter. Fix 80 cols problems, remove extra spaces...
Bruno Cardoso Lopes [Mon, 6 Jul 2009 06:40:51 +0000 (06:40 +0000)]
Cleanup MachO writer and code emitter. Fix 80 cols problems, remove extra spaces, shrink down includes and move some methods out-of-line

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74817 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoJust forgot to include the two new files
Bruno Cardoso Lopes [Mon, 6 Jul 2009 05:16:40 +0000 (05:16 +0000)]
Just forgot to include the two new files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74814 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd the Object Code Emitter class. Original patch by Aaron Gray, I did some
Bruno Cardoso Lopes [Mon, 6 Jul 2009 05:09:34 +0000 (05:09 +0000)]
Add the Object Code Emitter class. Original patch by Aaron Gray, I did some
cleanup, removed some #includes and moved Object Code Emitter out-of-line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74813 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMore LLVMContext-ification.
Owen Anderson [Mon, 6 Jul 2009 01:34:54 +0000 (01:34 +0000)]
More LLVMContext-ification.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74811 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCMake: Fixes previous change: CMAKE_BUILD_TYPE is unknown when
Oscar Fuentes [Sun, 5 Jul 2009 23:58:20 +0000 (23:58 +0000)]
CMake: Fixes previous change: CMAKE_BUILD_TYPE is unknown when
generating project files for MSVC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74809 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMore LLVMContext-ification.
Owen Anderson [Sun, 5 Jul 2009 22:41:43 +0000 (22:41 +0000)]
More LLVMContext-ification.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74807 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoThere are five floating point types.
Nick Lewycky [Sun, 5 Jul 2009 22:35:49 +0000 (22:35 +0000)]
There are five floating point types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74806 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoThere are *four* lights!
Nick Lewycky [Sun, 5 Jul 2009 22:23:28 +0000 (22:23 +0000)]
There are *four* lights!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74804 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCMake: Avoids defining _DEBUG on MSVC Release builds. Fixes PR 4379.
Oscar Fuentes [Sun, 5 Jul 2009 18:43:52 +0000 (18:43 +0000)]
CMake: Avoids defining _DEBUG on MSVC Release builds. Fixes PR 4379.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74794 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoClarify that later compiler versions are known to
Duncan Sands [Sun, 5 Jul 2009 12:01:44 +0000 (12:01 +0000)]
Clarify that later compiler versions are known to
fail to build the Ada front-end.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74793 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoWhen comparing constants, consider a less wide constant to be "less complex"
Nick Lewycky [Sat, 4 Jul 2009 17:24:52 +0000 (17:24 +0000)]
When comparing constants, consider a less wide constant to be "less complex"
than a wider one, before trying to compare their contents which will crash
if their sizes are different.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74792 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoHave cmake define HAVE_STRERROR and friends to 1 when they're defined at all.
Jeffrey Yasskin [Sat, 4 Jul 2009 16:37:12 +0000 (16:37 +0000)]
Have cmake define HAVE_STRERROR and friends to 1 when they're defined at all.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74791 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMake -save-temps=obj play better with -o.
Mikhail Glushenkov [Sat, 4 Jul 2009 14:23:32 +0000 (14:23 +0000)]
Make -save-temps=obj play better with -o.

Use only the *dirname* of the pathname given to -o, so that -o can still be used
to name the output executable. This is more like what GCC 4.5 does.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74790 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRegenerate.
Mikhail Glushenkov [Sat, 4 Jul 2009 14:23:08 +0000 (14:23 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74789 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoLLVMC can be now compiled w/o dynamic plugin support.
Mikhail Glushenkov [Sat, 4 Jul 2009 03:55:25 +0000 (03:55 +0000)]
LLVMC can be now compiled w/o dynamic plugin support.

Controlled via the --enable-llvmc-dynamic-plugins option.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74784 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoLLVMC doesn't need ENABLE_PIC to build now.
Mikhail Glushenkov [Sat, 4 Jul 2009 03:54:54 +0000 (03:54 +0000)]
LLVMC doesn't need ENABLE_PIC to build now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74783 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix build.
Mike Stump [Fri, 3 Jul 2009 22:11:58 +0000 (22:11 +0000)]
Fix build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74782 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoEven more passes being LLVMContext'd.
Owen Anderson [Fri, 3 Jul 2009 19:42:02 +0000 (19:42 +0000)]
Even more passes being LLVMContext'd.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74781 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd Static Single Information construction pass written by André Tavares!
Nick Lewycky [Fri, 3 Jul 2009 19:28:36 +0000 (19:28 +0000)]
Add Static Single Information construction pass written by André Tavares!
Use it by requiring it through the pass manager, then calling its createSSI
method on the variables that you want in SSI form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74780 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSilence a warning when assertions are turned off.
Duncan Sands [Fri, 3 Jul 2009 16:11:59 +0000 (16:11 +0000)]
Silence a warning when assertions are turned off.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74779 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSilence a warning when assertions are turned off.
Duncan Sands [Fri, 3 Jul 2009 16:11:34 +0000 (16:11 +0000)]
Silence a warning when assertions are turned off.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74778 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSilence warning when building without assertions.
Duncan Sands [Fri, 3 Jul 2009 16:06:07 +0000 (16:06 +0000)]
Silence warning when building without assertions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74777 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSilence warnings when assertions are turned off.
Duncan Sands [Fri, 3 Jul 2009 16:03:33 +0000 (16:03 +0000)]
Silence warnings when assertions are turned off.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74776 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoIn this unreachable code, return an initialized value.
Duncan Sands [Fri, 3 Jul 2009 16:00:23 +0000 (16:00 +0000)]
In this unreachable code, return an initialized value.
This stops gcc warning about possible uses of an uninitialized
value when compiling with assertions turned off.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74775 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd newline at end of file.
Duncan Sands [Fri, 3 Jul 2009 15:38:01 +0000 (15:38 +0000)]
Add newline at end of file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74774 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd newline at end of file.
Duncan Sands [Fri, 3 Jul 2009 15:30:58 +0000 (15:30 +0000)]
Add newline at end of file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74773 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix typo: intepreter->interpreter.
Torok Edwin [Fri, 3 Jul 2009 12:11:32 +0000 (12:11 +0000)]
Fix typo: intepreter->interpreter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74770 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix the build: provide uint8_t.
Duncan Sands [Fri, 3 Jul 2009 08:12:51 +0000 (08:12 +0000)]
Fix the build: provide uint8_t.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74769 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFor extended loads of type i1 to i8, we will need to at least one byte from memory.
Sanjiv Gupta [Fri, 3 Jul 2009 07:58:59 +0000 (07:58 +0000)]
For extended loads of type i1 to i8, we will need to at least one byte from memory.
The change in the .td file is to mark the side effects of mov insn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74768 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoVarious small changes related to the Condition Register on PowerPC.
Tilmann Scheller [Fri, 3 Jul 2009 06:47:55 +0000 (06:47 +0000)]
Various small changes related to the Condition Register on PowerPC.

Don't spill to the CR save area when using the SVR4 ABI for now.
Don't rely on constants assigned for registers to be in order (they aren't assigned in order).
Make sure CR bits are mapped to the corresponding CR field.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74767 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRefactor ABI code in the PowerPC backend.
Tilmann Scheller [Fri, 3 Jul 2009 06:47:08 +0000 (06:47 +0000)]
Refactor ABI code in the PowerPC backend.

Make CalculateParameterAndLinkageAreaSize() Darwin-specific.
Remove SVR4 specific code from LowerCALL_Darwin() and LowerFORMAL_ARGUMENTS_Darwin().
Rename MachoABI to DarwinABI for consistency.
Rename ELF ABI to SVR4 ABI for consistency.
Factor out common call return lowering between the Darwin and SVR4 ABI.
Factor out common call lowering between the Darwin and SVR4 ABI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74766 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoImplement the SVR4 ABI for PowerPC.
Tilmann Scheller [Fri, 3 Jul 2009 06:45:56 +0000 (06:45 +0000)]
Implement the SVR4 ABI for PowerPC.

Implement LowerFORMAL_ARGUMENTS_SVR4().
Implement LowerCALL_SVR4().
Add support for split arguments.
Implement by value parameter passing for aggregates.
Add support for variable argument lists.
Create the spill area for argument registers of variable argument functions no longer at a fixed offset.
Make sure callee saved registers are spilled to the correct stack offsets.
Change allocation order of non-volatile floating-point registers.
Add VRSAVE to the list of callee-saved registers, add CallConvLowering for vararg calls.
Add support for variable argument calls with Vector arguments.
Add support for VR and VRSAVE save area, improve allocation order for non-volatile vector registers.
Stop creating illegal i8 values in LowerVASTART().
Add memory access width hints.
Make sure to reserve space on the stack for the frame pointer.
When using the SVR4 ABI, reserve r13 for the Small Data Area pointer.
Assure that the frame pointer is spilled to the correct location on the stack.
Some FP registers were not marked as volatile.
Make sure the i64 words from a long double are passed either both in registers or both on the stack.
Only put integer arguments in registers which are not marked with the inreg flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74765 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd NumFixedArgs attribute to CallSDNode which indicates the number of fixed argument...
Tilmann Scheller [Fri, 3 Jul 2009 06:44:53 +0000 (06:44 +0000)]
Add NumFixedArgs attribute to CallSDNode which indicates the number of fixed arguments in a vararg call.

With the SVR4 ABI on PowerPC, vector arguments for vararg calls are passed differently depending on whether they are a fixed or a variable argument. Variable vector arguments always go into memory, fixed vector arguments are put
into vector registers. If there are no free vector registers available, fixed vector arguments are put on the stack.

The NumFixedArgs attribute allows to decide for an argument in a vararg call whether it belongs to the fixed or variable portion of the parameter list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74764 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSmall cleanups in the PowerPC backend.
Tilmann Scheller [Fri, 3 Jul 2009 06:43:35 +0000 (06:43 +0000)]
Small cleanups in the PowerPC backend.

Small refactoring in LowerFORMAL_ARGUMENTS().
Correct minor formatting issues.
Remove size argument of CreateCopyOfByValArgument().
Remove dead argument from CalculateStackSlotSize().
Remove unused variable ReturnAddrIndex from various targets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74763 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFactor some code out and support for Jump Table relocations
Bruno Cardoso Lopes [Fri, 3 Jul 2009 04:36:26 +0000 (04:36 +0000)]
Factor some code out and support for Jump Table relocations

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74760 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd --enable-llvmc-dynamic configure option.
Mikhail Glushenkov [Fri, 3 Jul 2009 03:52:47 +0000 (03:52 +0000)]
Add --enable-llvmc-dynamic configure option.

Controls whether libCompilerDriver should be loaded dynamically. By default this
is needed only on Win32, to make dynamic plugins work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74759 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoTrailing whitespace.
Mikhail Glushenkov [Fri, 3 Jul 2009 03:52:07 +0000 (03:52 +0000)]
Trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74758 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd thumb2 sign / zero extend with rotate instructions.
Evan Cheng [Fri, 3 Jul 2009 01:43:10 +0000 (01:43 +0000)]
Add thumb2 sign / zero extend with rotate instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74755 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMinor improvement to the LDA debug output.
Andreas Bolka [Fri, 3 Jul 2009 01:42:52 +0000 (01:42 +0000)]
Minor improvement to the LDA debug output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74754 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSecond batch of passes using LLVMContext.
Owen Anderson [Fri, 3 Jul 2009 00:54:20 +0000 (00:54 +0000)]
Second batch of passes using LLVMContext.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74753 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd Thumb2 load / store multiple instructions. Not used yet.
Evan Cheng [Fri, 3 Jul 2009 00:18:36 +0000 (00:18 +0000)]
Add Thumb2 load / store multiple instructions. Not used yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74749 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoConvert the first batch of passes to use LLVMContext.
Owen Anderson [Fri, 3 Jul 2009 00:17:18 +0000 (00:17 +0000)]
Convert the first batch of passes to use LLVMContext.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74748 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoReplace std::iostreams with raw_ostream in TableGen.
Daniel Dunbar [Fri, 3 Jul 2009 00:10:29 +0000 (00:10 +0000)]
Replace std::iostreams with raw_ostream in TableGen.
 - Sorry, I can't help myself.

 - No intended functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74742 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agot2LDR_PRE etc are loads.
Evan Cheng [Fri, 3 Jul 2009 00:08:19 +0000 (00:08 +0000)]
t2LDR_PRE etc are loads.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74741 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdded indexed stores.
Evan Cheng [Fri, 3 Jul 2009 00:06:39 +0000 (00:06 +0000)]
Added indexed stores.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74740 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFill in a few more missing accessors.
Owen Anderson [Thu, 2 Jul 2009 23:58:19 +0000 (23:58 +0000)]
Fill in a few more missing accessors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74739 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSign extending pre/post indexed loads.
Evan Cheng [Thu, 2 Jul 2009 23:16:11 +0000 (23:16 +0000)]
Sign extending pre/post indexed loads.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74736 91177308-0d34-0410-b5e6-96231b3b80d8