oota-llvm.git
15 years agoExpose creating constant ints and floats from strings to ocaml.
Erick Tryzelaar [Sun, 16 Aug 2009 23:37:03 +0000 (23:37 +0000)]
Expose creating constant ints and floats from strings to ocaml.

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

15 years agoExpose creating constant ints and floats from strings in llvm-c.
Erick Tryzelaar [Sun, 16 Aug 2009 23:36:46 +0000 (23:36 +0000)]
Expose creating constant ints and floats from strings in llvm-c.

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

15 years agoAdd helper functions to ConstantInt and ConstantFP to accept strings.
Erick Tryzelaar [Sun, 16 Aug 2009 23:36:33 +0000 (23:36 +0000)]
Add helper functions to ConstantInt and ConstantFP to accept strings.

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

15 years agoModify APFloat to take a StringRef instead of a c string.
Erick Tryzelaar [Sun, 16 Aug 2009 23:36:19 +0000 (23:36 +0000)]
Modify APFloat to take a StringRef instead of a c string.

This also adds unit tests to APFloat that mainly tests the
string handling of APFloat, but not much else of it's api.

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

15 years agoAdd failure tests to APInt unit test.
Erick Tryzelaar [Sun, 16 Aug 2009 23:36:01 +0000 (23:36 +0000)]
Add failure tests to APInt unit test.

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

15 years agoAdd a getOffsetOf, for building a target-independent expression for
Dan Gohman [Sun, 16 Aug 2009 21:26:11 +0000 (21:26 +0000)]
Add a getOffsetOf, for building a target-independent expression for
offsetof, similar to getSizeOf for sizeof.

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

15 years agoAvoid emitting XMM save code in soft-float or no-implicit-float mode
Dan Gohman [Sun, 16 Aug 2009 21:24:25 +0000 (21:24 +0000)]
Avoid emitting XMM save code in soft-float or no-implicit-float mode
or some other situation where no xmm registers need to be saved.

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

15 years agoDelete an unused field.
Dan Gohman [Sun, 16 Aug 2009 21:19:53 +0000 (21:19 +0000)]
Delete an unused field.

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

15 years agoCMake: Removed traces of obsolete variable LLVM_PLO_FLAGS.
Oscar Fuentes [Sun, 16 Aug 2009 21:01:16 +0000 (21:01 +0000)]
CMake: Removed traces of obsolete variable LLVM_PLO_FLAGS.

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

15 years agoCMake: New option LLVM_BUILD_TOOLS. Renamed LLVM_EXAMPLES to
Oscar Fuentes [Sun, 16 Aug 2009 20:56:30 +0000 (20:56 +0000)]
CMake: New option LLVM_BUILD_TOOLS. Renamed LLVM_EXAMPLES to
LLVM_BUILD_EXAMPLES and set default to true. Documented.

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

15 years agoCMake: Discriminate MINGW, MSYS, CYGWIN: does not try to build llvm-config under...
Oscar Fuentes [Sun, 16 Aug 2009 20:50:41 +0000 (20:50 +0000)]
CMake: Discriminate MINGW, MSYS, CYGWIN: does not try to build llvm-config under mingw without msys.

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

15 years agoReplace RegScavenger::DistanceMap with a simpler local algorithm.
Jakob Stoklund Olesen [Sun, 16 Aug 2009 17:41:39 +0000 (17:41 +0000)]
Replace RegScavenger::DistanceMap with a simpler local algorithm.

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

15 years agoClean up the public interface of RegScavenger.
Jakob Stoklund Olesen [Sun, 16 Aug 2009 17:41:20 +0000 (17:41 +0000)]
Clean up the public interface of RegScavenger.

Remove unused methods and make others private.

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

15 years agoBe more clever about regclasses in ScheduleDAGSDNodes::EmitCopyFromReg.
Jakob Stoklund Olesen [Sun, 16 Aug 2009 17:40:59 +0000 (17:40 +0000)]
Be more clever about regclasses in ScheduleDAGSDNodes::EmitCopyFromReg.

If two uses of a CopyFromReg want different regclasses, first try a common
sub-class, then fall back on the copy emitted in AddRegisterOperand. There is
no need for an assert here. The cross-class joiner usually cleans up nicely.

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

15 years agoFix use after free in Thumb2SizeReduction (PR4707). A MachineInstr was used after...
Benjamin Kramer [Sun, 16 Aug 2009 11:56:42 +0000 (11:56 +0000)]
Fix use after free in Thumb2SizeReduction (PR4707). A MachineInstr was used after erasure.

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

15 years agoStyalistic and format changes. No functionality change.
Bill Wendling [Sun, 16 Aug 2009 11:00:26 +0000 (11:00 +0000)]
Styalistic and format changes. No functionality change.

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

15 years agoFix the MSVC build again.
Benjamin Kramer [Sun, 16 Aug 2009 09:44:27 +0000 (09:44 +0000)]
Fix the MSVC build again.

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

15 years agoCMake: Hopefully this will fix the build on VS. I can't replicate the
Oscar Fuentes [Sun, 16 Aug 2009 07:44:02 +0000 (07:44 +0000)]
CMake: Hopefully this will fix the build on VS. I can't replicate the
failure with VS 9.0, nmake and cmake 2.6.4. The buildbot output does
not show the patch level of cmake, it just says 2.6.

Sadly, parallel builds are broken due to recent changes on LLVM Target
libraries and its auxiliaries (TargetInfo, AsmPrinter, AsmParser). I
have a patch for stablishing the correct dependencies, but cmake is
buggy and generates makefiles that can't handle them.

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

15 years agoCMake: Revert r79144. It reverted a change necessary for correct
Oscar Fuentes [Sun, 16 Aug 2009 05:16:43 +0000 (05:16 +0000)]
CMake: Revert r79144. It reverted a change necessary for correct
parallel builds.

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

15 years agoadd support for external symbols + X86::MOVPC32r.
Chris Lattner [Sun, 16 Aug 2009 04:28:14 +0000 (04:28 +0000)]
add support for external symbols + X86::MOVPC32r.

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

15 years agoFix for PR3016: detect the tricky case, where there are
Eli Friedman [Sun, 16 Aug 2009 04:23:49 +0000 (04:23 +0000)]
Fix for PR3016: detect the tricky case, where there are
unfoldable references to a PHI node in the block being folded, and disable
the transformation in that case.  The correct transformation of such PHI
nodes depends on whether BB dominates Succ, and dominance is expensive
to compute here.  (Alternatively, it's possible to check whether any
uses are live, but that's also essentially a dominance calculation.
Another alternative is to use reg2mem, but it probably isn't a good idea to
use that in simplifycfg.)

Also, remove some incorrect code from CanPropagatePredecessorsForPHIs
which is made unnecessary with this patch: it didn't consider the case
where a PHI node in BB has multiple uses.

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

15 years agoimplement support for lowering references to global addresses. For example, we now
Chris Lattner [Sun, 16 Aug 2009 03:12:25 +0000 (03:12 +0000)]
implement support for lowering references to global addresses.  For example, we now
can asmprint:

NEW:  movl "L___stack_chk_guard$non_lazy_ptr", %eax
OLD:  movl L___stack_chk_guard$non_lazy_ptr, %eax

where 'new' is coming out of the MCInst version of the printer.

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

15 years agomore formatting improvements, no functionality change.
Chris Lattner [Sun, 16 Aug 2009 02:45:18 +0000 (02:45 +0000)]
more formatting improvements, no functionality change.

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

15 years agocode formatting improvements, no functionality change.
Chris Lattner [Sun, 16 Aug 2009 02:36:40 +0000 (02:36 +0000)]
code formatting improvements, no functionality change.

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

15 years agowhen emitting errors about CHECK-NEXT directives, show the line that the
Chris Lattner [Sun, 16 Aug 2009 02:22:31 +0000 (02:22 +0000)]
when emitting errors about CHECK-NEXT directives, show the line that the
CHECK-NEXT is on.

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

15 years agoAdd an llvm-c function that lets you insert an instruction with a name.
Erick Tryzelaar [Sun, 16 Aug 2009 02:20:57 +0000 (02:20 +0000)]
Add an llvm-c function that lets you insert an instruction with a name.

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

15 years agoExpose most of the Constant creation functions to ocaml.
Erick Tryzelaar [Sun, 16 Aug 2009 02:20:37 +0000 (02:20 +0000)]
Expose most of the Constant creation functions to ocaml.

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

15 years agoExpose most of the IRBuilder functionality to ocaml.
Erick Tryzelaar [Sun, 16 Aug 2009 02:20:24 +0000 (02:20 +0000)]
Expose most of the IRBuilder functionality to ocaml.

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

15 years agoExpose most of the Constant creation functions to llvm-c.
Erick Tryzelaar [Sun, 16 Aug 2009 02:20:12 +0000 (02:20 +0000)]
Expose most of the Constant creation functions to llvm-c.

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

15 years agoExpose most of the rest of IRBuilder's functions to llvm-c.
Erick Tryzelaar [Sun, 16 Aug 2009 02:19:59 +0000 (02:19 +0000)]
Expose most of the rest of IRBuilder's functions to llvm-c.

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

15 years agoAdd more casts to the IRBuilder.
Erick Tryzelaar [Sun, 16 Aug 2009 02:19:46 +0000 (02:19 +0000)]
Add more casts to the IRBuilder.

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

15 years agoNeeds to check whether unaligned load / store of i64 is legal here.
Evan Cheng [Sat, 15 Aug 2009 23:41:42 +0000 (23:41 +0000)]
Needs to check whether unaligned load / store of i64 is legal here.

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

15 years agoRemove <iostream>.
Bill Wendling [Sat, 15 Aug 2009 22:28:08 +0000 (22:28 +0000)]
Remove <iostream>.

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

15 years agoRevert 78996. It was breaking MSVC builds.
Benjamin Kramer [Sat, 15 Aug 2009 21:57:01 +0000 (21:57 +0000)]
Revert 78996. It was breaking MSVC builds.

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

15 years agoMingw also doesn't have st_blksize.
Dan Gohman [Sat, 15 Aug 2009 21:41:03 +0000 (21:41 +0000)]
Mingw also doesn't have st_blksize.

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

15 years agoFix test on Linux.
Eli Friedman [Sat, 15 Aug 2009 21:28:17 +0000 (21:28 +0000)]
Fix test on Linux.

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

15 years agoAn overhaul of the exception handling code. This is arguably more correct than
Bill Wendling [Sat, 15 Aug 2009 21:27:32 +0000 (21:27 +0000)]
An overhaul of the exception handling code. This is arguably more correct than
what was there before. In "no FP mode", we weren't generating labels and unwind
table entries after each "push" instruction. While more than likely "okay", it's
not technically correct. The major thing was that the ordering of when to define
a new CFA register and at what offset wasn't correct. This would cause the
exception handling to fail in ways most miserable to users.

I also cleaned up some code a bit. There's one function which has a "return" at
the beginning, so it's never used. Should I just remove it? :-)

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

15 years agoAdd svn:ignore to a couple of directories.
Eli Friedman [Sat, 15 Aug 2009 21:22:20 +0000 (21:22 +0000)]
Add svn:ignore to a couple of directories.

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

15 years agoReapply r79127. It was fixed by d0k.
Bill Wendling [Sat, 15 Aug 2009 21:21:19 +0000 (21:21 +0000)]
Reapply r79127. It was fixed by d0k.

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

15 years agoRevert r79127. It was causing compilation errors.
Bill Wendling [Sat, 15 Aug 2009 21:14:01 +0000 (21:14 +0000)]
Revert r79127. It was causing compilation errors.

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

15 years agoDon't try to get the context from an erased Instruction.
Benjamin Kramer [Sat, 15 Aug 2009 21:07:49 +0000 (21:07 +0000)]
Don't try to get the context from an erased Instruction.

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

15 years agoUnbreak build. Evan, please make sure my changes are correct.
Benjamin Kramer [Sat, 15 Aug 2009 20:46:16 +0000 (20:46 +0000)]
Unbreak build. Evan, please make sure my changes are correct.

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

15 years agoSSI construction should just go ahead and ignore instructions in unreachable
Nick Lewycky [Sat, 15 Aug 2009 20:12:18 +0000 (20:12 +0000)]
SSI construction should just go ahead and ignore instructions in unreachable
blocks.

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

15 years agoFix validation errors.
Bill Wendling [Sat, 15 Aug 2009 20:08:04 +0000 (20:08 +0000)]
Fix validation errors.

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

15 years agoFix validation errors.
Bill Wendling [Sat, 15 Aug 2009 20:07:42 +0000 (20:07 +0000)]
Fix validation errors.

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

15 years agoChange allowsUnalignedMemoryAccesses to take type argument since some targets
Evan Cheng [Sat, 15 Aug 2009 19:23:44 +0000 (19:23 +0000)]
Change allowsUnalignedMemoryAccesses to take type argument since some targets
support unaligned mem access only for certain types. (Should it be size
instead?)

ARM v7 supports unaligned access for i16 and i32, some v6 variants support it
as well.

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

15 years agowrap to 80 cols
Chris Lattner [Sat, 15 Aug 2009 18:33:10 +0000 (18:33 +0000)]
wrap to 80 cols

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

15 years agoimplement support for CHECK-NEXT: in filecheck.
Chris Lattner [Sat, 15 Aug 2009 18:32:21 +0000 (18:32 +0000)]
implement support for CHECK-NEXT: in filecheck.

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

15 years agoRefine EarlyClobber assert in register scavenger.
Jakob Stoklund Olesen [Sat, 15 Aug 2009 18:16:58 +0000 (18:16 +0000)]
Refine EarlyClobber assert in register scavenger.

It is legal for an inline asm operand to use an earlyclobber register if the
use operand is tied to the earlyclobber operand. The issue is discussed here:

  http://gcc.gnu.org/ml/gcc/1999-04n/msg00431.html

We should perhaps let only the machine code verifier worry about these finer
details. EarlyClobber operands are not really interesting to the scavenger.

This fixes PR4528 for the third time.

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

15 years agosimplify some code.
Chris Lattner [Sat, 15 Aug 2009 18:00:42 +0000 (18:00 +0000)]
simplify some code.

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

15 years agorewrite FindStringInBuffer to use an explicit loop instead of
Chris Lattner [Sat, 15 Aug 2009 17:53:12 +0000 (17:53 +0000)]
rewrite FindStringInBuffer to use an explicit loop instead of
trying to wrap strstr which is just too inconvenient.  Make it
use a StringRef to avoid ".c_str()" calls.

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

15 years agoInstead of using an std::pair, use a custom struct.
Chris Lattner [Sat, 15 Aug 2009 17:41:04 +0000 (17:41 +0000)]
Instead of using an std::pair, use a custom struct.

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

15 years agospecify a target triple so global variable manglings are consistent etc.
Chris Lattner [Sat, 15 Aug 2009 17:35:05 +0000 (17:35 +0000)]
specify a target triple so global variable manglings are consistent etc.

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

15 years agoconvert to filecheck.
Chris Lattner [Sat, 15 Aug 2009 17:28:09 +0000 (17:28 +0000)]
convert to filecheck.

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

15 years agorename this test to sse2.ll
Chris Lattner [Sat, 15 Aug 2009 17:24:09 +0000 (17:24 +0000)]
rename this test to sse2.ll

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

15 years agomerge a bunch more sse3 tests into sse3.ll
Chris Lattner [Sat, 15 Aug 2009 17:21:44 +0000 (17:21 +0000)]
merge a bunch more sse3 tests into sse3.ll

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

15 years agoconvert test to filecheck format.
Chris Lattner [Sat, 15 Aug 2009 17:05:03 +0000 (17:05 +0000)]
convert test to filecheck format.

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

15 years agorename test
Chris Lattner [Sat, 15 Aug 2009 17:01:44 +0000 (17:01 +0000)]
rename test

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

15 years agothis is a test for sse3, simplify it.
Chris Lattner [Sat, 15 Aug 2009 17:01:19 +0000 (17:01 +0000)]
this is a test for sse3, simplify it.

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

15 years agothe .eh_frame sections we generate need to be writable (which
Chris Lattner [Sat, 15 Aug 2009 16:54:02 +0000 (16:54 +0000)]
the .eh_frame sections we generate need to be writable (which
is why they are datarel).  This should fix PR4724, and is fallout
from r78890.

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

15 years agodocument filecheck.
Chris Lattner [Sat, 15 Aug 2009 16:51:06 +0000 (16:51 +0000)]
document filecheck.

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

15 years agofix pasto noticed by Jakub
Chris Lattner [Sat, 15 Aug 2009 16:18:56 +0000 (16:18 +0000)]
fix pasto noticed by Jakub

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

15 years agoUse the new API for creating an OpaqueType.
Nicolas Geoffray [Sat, 15 Aug 2009 15:41:32 +0000 (15:41 +0000)]
Use the new API for creating an OpaqueType.

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

15 years agoadd a stub for futher description of filecheck.
Chris Lattner [Sat, 15 Aug 2009 15:40:48 +0000 (15:40 +0000)]
add a stub for futher description of filecheck.

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

15 years agoadd a simple FileCheck man page.
Chris Lattner [Sat, 15 Aug 2009 15:38:11 +0000 (15:38 +0000)]
add a simple FileCheck man page.

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

15 years agotidy up
Chris Lattner [Sat, 15 Aug 2009 15:08:28 +0000 (15:08 +0000)]
tidy up

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

15 years agoUpdate cpp generation with new LLVM API for primitive types.
Nicolas Geoffray [Sat, 15 Aug 2009 14:47:42 +0000 (14:47 +0000)]
Update cpp generation with new LLVM API for primitive types.

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

15 years agoRevert a few changes that were done in 78603.
Sanjiv Gupta [Sat, 15 Aug 2009 14:36:48 +0000 (14:36 +0000)]
Revert a few changes that were done in 78603.
PIC16DebugInfo currently rely on NameStr of composite type descriptors to uniquely
identify debug info for two aggregate type decls with same name.
This implementation will change when we have MDNodes based debug info implemenatation in place

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

15 years agoDon't setCalleeSavedInfoValid() until spills are interted.
Jakob Stoklund Olesen [Sat, 15 Aug 2009 13:10:46 +0000 (13:10 +0000)]
Don't setCalleeSavedInfoValid() until spills are interted.

In a naked function, the flag is never set and getPristineRegs() returns an
empty list. That means naked functions are able to clobber callee saved
registers, but that is the whole point of naked functions.

This fixes PR4716.

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

15 years agoAllow double defs in the machine code verifier after the addPreRegAlloc passes.
Jakob Stoklund Olesen [Sat, 15 Aug 2009 13:10:15 +0000 (13:10 +0000)]
Allow double defs in the machine code verifier after the addPreRegAlloc passes.

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

15 years agoMove XCore AsmPrinter to XCore/AsmPrinter directory.
Richard Osborne [Sat, 15 Aug 2009 12:53:15 +0000 (12:53 +0000)]
Move XCore AsmPrinter to XCore/AsmPrinter directory.

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

15 years agoAdd XFAIL testcase for setcc undef.
Jakob Stoklund Olesen [Sat, 15 Aug 2009 12:10:22 +0000 (12:10 +0000)]
Add XFAIL testcase for setcc undef.

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

15 years agoAdd XFAIL test case for a scavenger assert.
Jakob Stoklund Olesen [Sat, 15 Aug 2009 12:09:56 +0000 (12:09 +0000)]
Add XFAIL test case for a scavenger assert.

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

15 years agoAdd support for the PowerPC 64-bit SVR4 ABI.
Tilmann Scheller [Sat, 15 Aug 2009 11:54:46 +0000 (11:54 +0000)]
Add support for the PowerPC 64-bit SVR4 ABI.

The Link Register is volatile when using the 32-bit SVR4 ABI.
Make it possible to use the 64-bit SVR4 ABI.
Add non-volatile registers for the 64-bit SVR4 ABI.
Make sure r2 is a reserved register when using the 64-bit SVR4 ABI.
Update PPCFrameInfo for the 64-bit SVR4 ABI.
Add FIXME for 64-bit Darwin PPC.
Insert NOP instruction after direct function calls.
Emit official procedure descriptors.
Create TOC entries for GlobalAddress references.
Spill 64-bit non-volatile registers to the correct slots.
Only custom lower VAARG when using the 32-bit SVR4 ABI.
Use simple VASTART lowering for the 64-bit SVR4 ABI.

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

15 years agoUpdate LocalRewriter::DistanceMap when inserting stack loads.
Jakob Stoklund Olesen [Sat, 15 Aug 2009 11:03:03 +0000 (11:03 +0000)]
Update LocalRewriter::DistanceMap when inserting stack loads.

In the included test case, a stack load was not included in DistanceMap. That
caused TransferDeadness to ignore the instruction, leading to a scavenger
assert.

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

15 years agoReformatting and some cleanup.
Bill Wendling [Sat, 15 Aug 2009 08:56:09 +0000 (08:56 +0000)]
Reformatting and some cleanup.

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

15 years ago80 col violations.
Evan Cheng [Sat, 15 Aug 2009 08:38:52 +0000 (08:38 +0000)]
80 col violations.

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

15 years agoFix tests.
Evan Cheng [Sat, 15 Aug 2009 08:23:11 +0000 (08:23 +0000)]
Fix tests.

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

15 years agoTurn on if-conversion for thumb2.
Evan Cheng [Sat, 15 Aug 2009 07:59:10 +0000 (07:59 +0000)]
Turn on if-conversion for thumb2.

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

15 years agoupdate for rename.
Chris Lattner [Sat, 15 Aug 2009 06:14:07 +0000 (06:14 +0000)]
update for rename.

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

15 years agorename PIC16Section.h -> MCSectionPIC16.h for consistency with
Chris Lattner [Sat, 15 Aug 2009 06:13:40 +0000 (06:13 +0000)]
rename PIC16Section.h -> MCSectionPIC16.h for consistency with
the class it defines.

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

15 years agocmake likes its explicit list of files to build.
Chris Lattner [Sat, 15 Aug 2009 06:10:23 +0000 (06:10 +0000)]
cmake likes its explicit list of files to build.

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

15 years agouse XCore-specific section with xcore specific cp/dp flags to restore
Chris Lattner [Sat, 15 Aug 2009 06:09:35 +0000 (06:09 +0000)]
use XCore-specific section with xcore specific cp/dp flags to restore
support for globals going into the appropriate sections with the flags.

This hopefully finishes unbreaking the previous behavior that I broke before.

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

15 years agoIf ELF subtargets don't want to support 4/8/16-byte mergable sections, allow
Chris Lattner [Sat, 15 Aug 2009 06:08:34 +0000 (06:08 +0000)]
If ELF subtargets don't want to support 4/8/16-byte mergable sections, allow
them to null out the default section pointers.

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

15 years agoadd support for target-specific ELF section flags, add a new MCSectionXCore
Chris Lattner [Sat, 15 Aug 2009 05:56:11 +0000 (05:56 +0000)]
add support for target-specific ELF section flags, add a new MCSectionXCore
class which represents the XCore cp/dp section flags.  No functionality
change yet.

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

15 years agoSimplify a few more things, eliminating a few more dependencies on
Dan Gohman [Sat, 15 Aug 2009 02:07:36 +0000 (02:07 +0000)]
Simplify a few more things, eliminating a few more dependencies on
"the current basic block".

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

15 years agoSimplify this code to not depend as much on CurMBB.
Dan Gohman [Sat, 15 Aug 2009 02:06:22 +0000 (02:06 +0000)]
Simplify this code to not depend as much on CurMBB.

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

15 years agoDo not use frame register to reference fixed stack objects if the function is frameless.
Evan Cheng [Sat, 15 Aug 2009 02:05:35 +0000 (02:05 +0000)]
Do not use frame register to reference fixed stack objects if the function is frameless.

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

15 years agoAlways check to see if raw_fd_ostream's file descriptor is attached to
Dan Gohman [Sat, 15 Aug 2009 02:05:19 +0000 (02:05 +0000)]
Always check to see if raw_fd_ostream's file descriptor is attached to
a terminal, not just when it's STDOUT_FILENO.

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

15 years agoAdd support for column computation on unbuffered streams.
Dan Gohman [Sat, 15 Aug 2009 02:02:59 +0000 (02:02 +0000)]
Add support for column computation on unbuffered streams.

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

15 years agoMove FormattedStream's write_impl out of line.
Dan Gohman [Sat, 15 Aug 2009 02:01:04 +0000 (02:01 +0000)]
Move FormattedStream's write_impl out of line.

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

15 years agoRemove an unnecessary #include.
Dan Gohman [Sat, 15 Aug 2009 01:56:38 +0000 (01:56 +0000)]
Remove an unnecessary #include.

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

15 years agoswitch DominanceFrontier::splitBlock to use a smallvector for
Chris Lattner [Sat, 15 Aug 2009 01:39:28 +0000 (01:39 +0000)]
switch DominanceFrontier::splitBlock to use a smallvector for
the pred list instead of a vector, saving a boat load of malloc/free's.

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

15 years agoOn x86-64, for a varargs function, don't store the xmm registers to
Dan Gohman [Sat, 15 Aug 2009 01:38:56 +0000 (01:38 +0000)]
On x86-64, for a varargs function, don't store the xmm registers to
the register save area if %al is 0. This avoids touching xmm
regsiters when they aren't actually used.

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

15 years agoDo not completely skip subrange info for a zero sized array.
Devang Patel [Fri, 14 Aug 2009 20:59:16 +0000 (20:59 +0000)]
Do not completely skip subrange info for a zero sized array.

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

15 years agoLeaf functions which do not save CSRs can be frameless even with -disable-fp-elim.
Evan Cheng [Fri, 14 Aug 2009 20:48:13 +0000 (20:48 +0000)]
Leaf functions which do not save CSRs can be frameless even with -disable-fp-elim.

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

15 years agoCMake: Updated library dependence info.
Oscar Fuentes [Fri, 14 Aug 2009 20:30:18 +0000 (20:30 +0000)]
CMake: Updated library dependence info.

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

15 years agoAdd sse4.2 string/text processing intrinsics. We'll select these later.
Eric Christopher [Fri, 14 Aug 2009 20:27:57 +0000 (20:27 +0000)]
Add sse4.2 string/text processing intrinsics. We'll select these later.

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

15 years agoWhitespace cleanup.
Eric Christopher [Fri, 14 Aug 2009 20:27:12 +0000 (20:27 +0000)]
Whitespace cleanup.

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

15 years agoAllow targets to specify their choice of calling conventions per
Anton Korobeynikov [Fri, 14 Aug 2009 20:10:52 +0000 (20:10 +0000)]
Allow targets to specify their choice of calling conventions per
libcall. Take advantage of this in the ARM backend to rectify broken
choice of CC when hard float is in effect. PIC16 may want to see if
it could be of use in MakePIC16Libcall, which works unchanged.

Patch by Sandeep!

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