Chris Lattner [Tue, 7 Jul 2009 23:03:54 +0000 (23:03 +0000)]
add support for legalizing an icmp where the result is illegal (4xi1) but
the input is legal (4 x i32)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74964
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 22:51:09 +0000 (22:51 +0000)]
add a trivial test that vector compares work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74963
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 22:49:15 +0000 (22:49 +0000)]
random code cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74962
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 22:47:46 +0000 (22:47 +0000)]
implement support for spliting and scalarizing vector setcc's. This
finishes off enough support for vector compares to get the icmp/fcmp
version of 2008-07-23-VSetCC.ll passing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74961
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 22:41:32 +0000 (22:41 +0000)]
lower vector icmp/fcmp to ICMP/FCMP nodes with the right result
(vector of bool).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74960
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 22:28:41 +0000 (22:28 +0000)]
ScalarizeVecRes_ShiftOp and ScalarizeVecRes_BinOp are the same,
eliminate the former.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74959
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 7 Jul 2009 22:27:20 +0000 (22:27 +0000)]
Change NEON vldN/vstN intrinsics to specify "N" as an immediate operand
instead of having a separate intrinsic for each value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74958
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 22:27:17 +0000 (22:27 +0000)]
add support for vector legalizing of *_EXTEND.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74957
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Tue, 7 Jul 2009 22:15:37 +0000 (22:15 +0000)]
Fix llvm.org/PR4481: Make llvm-config print the right include paths when
srcdir!=objdir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74956
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 7 Jul 2009 22:09:42 +0000 (22:09 +0000)]
Disable loop index split for now and let nightly tester verify its usefulness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74955
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 22:07:47 +0000 (22:07 +0000)]
verify that the fcmp version of this works just as well as the
vfcmp version. We actually get better code for this silly testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74954
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 7 Jul 2009 21:55:14 +0000 (21:55 +0000)]
Accidently dropped this while removing dead code in previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74953
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 7 Jul 2009 21:53:07 +0000 (21:53 +0000)]
DWARF requires frame moves be specified at specific times. If you have a
prologue like this:
__Z3fooi:
Leh_func_begin1:
LBB1_0: ## entry
pushl %ebp
Llabel1:
movl %esp, %ebp
Llabel2:
pushl %esi
Llabel3:
subl $20, %esp
call "L1$pb"
"L1$pb":
popl %esi
The "pushl %ebp" needs a table entry specifying the offset. The "movl %esp,
%ebp" makes %ebp the new stack frame register, so that needs to be specified in
DWARF. And "pushl %esi" saves the callee-saved %esi register, which also needs
to be specified in DWARF.
Before, all of this logic was in one method. This didn't work too well, because
as you can see there are multiple FDE line entries that need to be created.
This fix creates the "MachineMove" objects directly when they're needed; instead
of waiting until the end, and losing information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74952
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 7 Jul 2009 21:33:58 +0000 (21:33 +0000)]
LLVMContext-ifiy the implementation of the C API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74950
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 7 Jul 2009 21:12:32 +0000 (21:12 +0000)]
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74949
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 7 Jul 2009 21:07:14 +0000 (21:07 +0000)]
LLVM Context-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74948
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 7 Jul 2009 20:47:48 +0000 (20:47 +0000)]
Fix a typo and a grammaro in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74947
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 7 Jul 2009 20:39:03 +0000 (20:39 +0000)]
Add Thumb2 movcc instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74946
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 7 Jul 2009 20:38:08 +0000 (20:38 +0000)]
Add missing tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74945
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 20:30:46 +0000 (20:30 +0000)]
Implement parsing support for the .comm directive. Patch by
Kevin Enderby!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74944
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 7 Jul 2009 20:18:58 +0000 (20:18 +0000)]
LLVMContext-ify the bitcode reader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74942
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 7 Jul 2009 20:05:15 +0000 (20:05 +0000)]
Add a paragraph about the Add->FAdd API change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74941
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 7 Jul 2009 19:16:24 +0000 (19:16 +0000)]
Add BX and BXr9 encodings. Patch by Sean Callanan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74938
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 7 Jul 2009 18:52:14 +0000 (18:52 +0000)]
Fix build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74936
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 7 Jul 2009 18:44:11 +0000 (18:44 +0000)]
Use LLVMContext in the LLLexer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74934
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 18:43:48 +0000 (18:43 +0000)]
fix a bug in post-order iterators with external storage, patch by
Olaf Krzikalla!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74933
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 7 Jul 2009 18:39:49 +0000 (18:39 +0000)]
fix some type confusion in ReadVBR64: "Piece" should be only 32 bits,
not 64, because we read at most 32 bits at a time. OTOH, "Result" must
be 64-bits and insertion into it must be 64-bit clean. Thanks to Ivan
Sorokin for bringing this up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74932
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 7 Jul 2009 18:33:04 +0000 (18:33 +0000)]
Have scoped mutexes take referenes instead of pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74931
91177308-0d34-0410-b5e6-
96231b3b80d8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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