Evan Cheng
ed34559fcd
Rename TargetOptions::StackAlignment to StackAlignmentOverride.
...
llvm-svn: 133739
2011-06-23 18:15:47 +00:00
Evan Cheng
76b1239b24
Remove TargetOptions.h dependency from ARMSubtarget.
...
llvm-svn: 133738
2011-06-23 18:15:17 +00:00
Justin Holewinski
a1dd1dd26e
PTX: Always use registers for return values, but use .param space for device
...
parameters if SM >= 2.0
- Update test cases to be more robust against register allocation changes
- Bump up the number of registers to 128 per type
- Include Python script to re-generate register file with any number of
registers
llvm-svn: 133736
2011-06-23 18:10:13 +00:00
Justin Holewinski
acf53a172e
PTX: Fixup test cases for device param changes
...
llvm-svn: 133735
2011-06-23 18:10:08 +00:00
Justin Holewinski
f6a497cf12
PTX: Whitespace fixes and remove commented out code
...
llvm-svn: 133734
2011-06-23 18:10:07 +00:00
Justin Holewinski
67c23366fd
PTX: Prevent DCE from eliminating st.param calls, and unify the handling of
...
st.param and ld.param
FIXME: Test cases still need to be updated
llvm-svn: 133733
2011-06-23 18:10:05 +00:00
Justin Holewinski
bdf03838a5
PTX: Use .param space for parameters in device functions for SM >= 2.0
...
FIXME: DCE is eliminating the final st.param.x calls, figure out why
llvm-svn: 133732
2011-06-23 18:10:03 +00:00
Andrew Trick
7b9f76baeb
cmake+lit: final cleanup related to the recent churn
...
llvm-svn: 133729
2011-06-23 18:00:32 +00:00
Evan Cheng
f86a6485e7
Remove TargetOptions.h dependency from X86Subtarget.
...
llvm-svn: 133726
2011-06-23 17:54:54 +00:00
Andrew Trick
bf7adee109
cmake+lit: handle ENABLE_ASSERTIONS feature properly.
...
llvm-svn: 133725
2011-06-23 17:52:36 +00:00
Rafael Espindola
6ac573231c
Revert "revert 133714"
...
This reverts commit e8e00f5efb4a22238f2407bf813de4606f30c5aa.
The cmake build on OS X is still broken.
llvm-svn: 133718
2011-06-23 14:19:39 +00:00
Rafael Espindola
b6a2711f5a
Add missing file.
...
llvm-svn: 133717
2011-06-23 14:02:13 +00:00
Dylan Noblesmith
9b0ec7b92a
revert 133714
...
It broke the build worse.
llvm-svn: 133716
2011-06-23 13:56:01 +00:00
Rafael Espindola
b6bbcca398
133713 broke the build, revert it.
...
llvm-svn: 133714
2011-06-23 13:37:38 +00:00
Dylan Noblesmith
0adb1b1393
Support: make floating-exception header private
...
It has only one user. This eliminates the last include of
config.h from the public headers -- ideally, config.h
shouldn't even be installed by `make install` anymore.
llvm-svn: 133713
2011-06-23 12:45:54 +00:00
Dylan Noblesmith
601868e82b
Don't include config.h in public headers
...
Replace it with llvm-config.h, which defines a subset of
config.h's macros "so that they can be in exported headers
and won't override package specific directives", e.g.,
PACKAGE_NAME.
Endian.h wasn't using any macros at all though, so just delete
the include there instead.
llvm-svn: 133712
2011-06-23 12:34:31 +00:00
Dylan Noblesmith
4a1d03f633
remove CMake mode_t define
...
It's now replaced with a simple ifdef _MSC_VER in the one
place it's needed (clang's FileManager.h header).
llvm-svn: 133711
2011-06-23 12:21:33 +00:00
Dylan Noblesmith
ac8e727df3
CppBackend: fixup for api change
...
This broke after r133364.
llvm-svn: 133709
2011-06-23 12:11:37 +00:00
Jay Foad
75b709336d
Reinstate r133513 (reverted in r133700) with an additional fix for a
...
-Wshorten-64-to-32 warning in Instructions.h.
llvm-svn: 133708
2011-06-23 09:09:15 +00:00
Bill Wendling
4d12748388
Use a reference. Don't make a useless copy of the vector.
...
llvm-svn: 133707
2011-06-23 07:55:41 +00:00
Bill Wendling
e7fc1a8d9e
Formatting changes. No functionality change.
...
llvm-svn: 133706
2011-06-23 07:44:54 +00:00
Eric Christopher
d38d7f3300
Revert r133513:
...
"Reinstate r133435 and r133449 (reverted in r133499) now that the clang
self-hosted build failure has been fixed (r133512)."
Due to some additional warnings.
llvm-svn: 133700
2011-06-23 06:24:52 +00:00
Bill Wendling
42866c8944
Use the presence of the __compact_unwind section to indicate that a target
...
supports compact unwind info instead of having a separate flag indicating this.
llvm-svn: 133685
2011-06-23 05:13:28 +00:00
Rafael Espindola
151ddd5335
Move more logic to shouldTailDuplicate and only duplicate regular bb before
...
register allocation if it has a indirectbr or if we can duplicate it to
every predecessor.
This fixes the SingleSource/Benchmarks/Shootout-C++/matrix.cpp regression but
keeps the previous improvements to sunspider.
llvm-svn: 133682
2011-06-23 03:41:29 +00:00
Evan Cheng
71256b6030
Get rid of one getStackAlignment(). RegisterInfo shouldn't need to know about stack alignment.
...
llvm-svn: 133679
2011-06-23 01:53:43 +00:00
Bill Wendling
538dc8cc6f
Some skeleton code to emit the compact unwind. If the information is unable to
...
be emitted in a compact way, we then default to emitting a CIE and FDE.
llvm-svn: 133676
2011-06-23 01:06:23 +00:00
Bill Wendling
024a95accf
Allow the AsmInfo to query for the compact unwind section.
...
llvm-svn: 133670
2011-06-23 00:23:04 +00:00
Bill Wendling
fcdc243520
Allow the AsmInfo to query the TLOF to see if it supports compact unwind.
...
llvm-svn: 133669
2011-06-23 00:12:58 +00:00
Bill Wendling
c62a961c09
80-column violations.
...
llvm-svn: 133668
2011-06-23 00:09:43 +00:00
Andrew Trick
aec8bc23bf
lit support for REQUIRES: asserts.
...
Take #2 . Don't piggyback on the existing config.build_mode. Instead,
define a new lit feature for each build feature we need (currently
just "asserts"). Teach both autoconf'd and cmake'd Makefiles to define
this feature within test/lit.site.cfg. This doesn't require any lit
harness changes and should be more robust across build systems.
llvm-svn: 133664
2011-06-22 23:23:19 +00:00
Bill Wendling
ec779bc283
Add a flag that indicates whether a target supports compact unwind info or not.
...
llvm-svn: 133662
2011-06-22 23:16:51 +00:00
Rafael Espindola
e57d6977be
Reenable tail duplication of bb with just an unconditional jump, but
...
don't remove blocks that have their address taken.
llvm-svn: 133659
2011-06-22 22:31:57 +00:00
Bill Wendling
72c8521466
Add a __LD,__compact_unwind section.
...
If the linker supports it, this will hold the CIE and FDE information in a
compact format. The implementation of the compact unwinding emission is coming
soon.
llvm-svn: 133658
2011-06-22 22:22:24 +00:00
Nick Lewycky
5e5818d0f8
Fix the implementation of ConstantRange::sub(ConstantRange). Patch by Xi Wang!
...
llvm-svn: 133648
2011-06-22 21:13:46 +00:00
Chad Rosier
5e6ecb23a4
Revert r133607. This is causing failures in the Clang gccTestSuite.
...
Specifically, gcc.c-torture/compile/pr21356.c.
llvm-svn: 133646
2011-06-22 21:13:23 +00:00
Bill Wendling
19f2f807eb
Move class methods out-of-line. This reduces the indentation, and is more in
...
line with LLVM's general coding style.
No functionality change.
llvm-svn: 133645
2011-06-22 21:07:27 +00:00
Devang Patel
5640b59656
New binops need debug loc.
...
llvm-svn: 133642
2011-06-22 20:56:56 +00:00
Daniel Dunbar
4e9906ba6f
test/Unit: Fix enable shared test to follow check that we have actually loaded
...
the site config.
llvm-svn: 133641
2011-06-22 20:41:53 +00:00
Jim Grosbach
fbb64ca5ff
Add missing header.
...
llvm-svn: 133640
2011-06-22 20:40:30 +00:00
Jim Grosbach
b3d1a141fd
Move ARMMachObjectWriter to its own file.
...
Just tidy up a bit. No functional change.
llvm-svn: 133638
2011-06-22 20:14:52 +00:00
Devang Patel
6e79e59260
Set debug loc.
...
llvm-svn: 133636
2011-06-22 19:52:36 +00:00
Nick Lewycky
7f45c2bd84
Needs a triple.
...
llvm-svn: 133634
2011-06-22 19:42:14 +00:00
Nick Lewycky
bf55e4b776
Emit trailing padding on constant vectors when TargetData says that the vector
...
is larger than the sum of the elements (including per-element padding).
llvm-svn: 133631
2011-06-22 18:55:03 +00:00
Justin Holewinski
da4d209996
PTX: Fix FrameIndex mapping bug
...
llvm-svn: 133619
2011-06-22 16:07:03 +00:00
Jay Foad
888cd746b8
Replace the existing forms of ConstantArray::get() with a single form
...
that takes an ArrayRef.
llvm-svn: 133615
2011-06-22 09:24:39 +00:00
Jay Foad
7ef9c9ad1e
Make ConstantVector::get() always take an ArrayRef, never a std::vector.
...
llvm-svn: 133614
2011-06-22 09:10:19 +00:00
Dan Bailey
2d3b8e126a
Test Commit.
...
llvm-svn: 133613
2011-06-22 09:04:30 +00:00
Jay Foad
f653a9e838
Eliminate a temporary std::vector in ConstantStruct::get().
...
llvm-svn: 133612
2011-06-22 08:55:11 +00:00
Jay Foad
f921ffd79e
Extend ConstantUniqueMap with a new template parameter ValRefType,
...
representing a constant reference to ValType. Normally this is just
"const ValType &", but when ValType is a std::vector we want to use
ArrayRef as the reference type.
llvm-svn: 133611
2011-06-22 08:50:06 +00:00
Andrew Trick
887ccaa3dc
Only do config-time substitution of LLVM_BUILD_MODE in
...
test/lit.site.cfg, not Unit/test/lit.site.cfg.
llvm-svn: 133608
2011-06-22 05:43:36 +00:00