Daniel Dunbar [Fri, 4 Nov 2011 19:04:23 +0000 (19:04 +0000)]
build/cmake: Use tblgen macro directly instead of llvm_tablegen, which just
added a layer of indirection with no value (not even conciseness).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143727
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 4 Nov 2011 19:00:29 +0000 (19:00 +0000)]
Emit declarations before definitions if they are available. This causes DW_AT_specification to
point back in the file in the included testcase. Fixes PR11300.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143726
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 4 Nov 2011 18:48:00 +0000 (18:48 +0000)]
Reformatting changes to get rid of blank lines, put code on one line, and to
decrease some code indentation. No intended functional changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143723
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 4 Nov 2011 18:45:34 +0000 (18:45 +0000)]
Add missing includes/decls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143722
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 4 Nov 2011 18:39:16 +0000 (18:39 +0000)]
Add tests for existing InstSimplify features.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143721
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 4 Nov 2011 18:32:42 +0000 (18:32 +0000)]
Teach instsimplify to simplify calls to undef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143719
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 4 Nov 2011 18:30:30 +0000 (18:30 +0000)]
Add missing includes/class declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143718
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 4 Nov 2011 18:29:09 +0000 (18:29 +0000)]
Add missing forward declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143717
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 4 Nov 2011 18:19:43 +0000 (18:19 +0000)]
Add a couple missing includes; found while analyzing LLVM headers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143716
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 4 Nov 2011 18:11:56 +0000 (18:11 +0000)]
Delete names for unused parameters in inline function definitions in headers, so LLVM users can compile with -Wunused-parameter. PR11257; based on patch by Kevin Harris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143715
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 4 Nov 2011 17:57:13 +0000 (17:57 +0000)]
Build llvmCore with RTTI enabled. <rdar://problem/
10395761>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143714
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 4 Nov 2011 17:29:35 +0000 (17:29 +0000)]
Add missing argument for atomic instructions in c++ backend. PR11268, part 2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143712
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 4 Nov 2011 17:14:44 +0000 (17:14 +0000)]
utils: Remove build-for-llvm-top.sh and ModuleInfo.txt, which are not documented and I am pretty sure no one uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143708
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Fri, 4 Nov 2011 17:07:11 +0000 (17:07 +0000)]
Remove declarations for functions that don't exist (and never have).
Patch by Anders Waldenborg <anders@0x63.nu>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143705
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 4 Nov 2011 13:52:17 +0000 (13:52 +0000)]
Simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143695
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 4 Nov 2011 09:34:06 +0000 (09:34 +0000)]
Move comment to the correct place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143690
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 4 Nov 2011 09:30:19 +0000 (09:30 +0000)]
Make the Mangler an ivar so that it doesn't have to be passed around everywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143689
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 4 Nov 2011 09:24:40 +0000 (09:24 +0000)]
Refactor the MCContext so that it's an ivar instead of a local which is passed
around. This is important for some future work as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143688
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Fri, 4 Nov 2011 06:59:49 +0000 (06:59 +0000)]
Add intrinsics for X86 vcvtps2ph and vcvtph2ps instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143683
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Fri, 4 Nov 2011 06:59:21 +0000 (06:59 +0000)]
Add intrinsics for X86 vcvtps2ph and vcvtph2ps instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143682
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 4 Nov 2011 01:48:58 +0000 (01:48 +0000)]
Fix some minor scheduling itinerary bug. It's not expected to actually affect codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143675
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 4 Nov 2011 01:09:02 +0000 (01:09 +0000)]
utils: Rename the "llvmbuild" script to llvm-compilers-check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143673
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Fri, 4 Nov 2011 00:58:10 +0000 (00:58 +0000)]
Indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143670
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Fri, 4 Nov 2011 00:50:21 +0000 (00:50 +0000)]
Add fast-isel support for returning i1, i8, and i16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143669
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 4 Nov 2011 00:48:26 +0000 (00:48 +0000)]
Speculatively revert "DeadStoreElimination can now trim the size of a store if
the end of it is dead.", which appears to break bootstrapping LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143668
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 23:01:50 +0000 (23:01 +0000)]
build: Use right Echo variable and use Verb appropriately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143664
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 22:46:21 +0000 (22:46 +0000)]
build/Make: Integrate llvm-build into Makefiles.
- Basically, we coordinate with llvm-build to create a Makefile fragment we can
easily use. For now, nothing is wired in except the support to automatically
regenerate this file when necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143662
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 22:46:19 +0000 (22:46 +0000)]
llvm-build: Add initial code for --write-make-fragment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143661
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 3 Nov 2011 21:49:52 +0000 (21:49 +0000)]
Reapply r143206, with fixes. Disallow physical register lifetimes
across calls, and only check for nested dependences on the special
call-sequence-resource register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143660
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 21:03:53 +0000 (21:03 +0000)]
utils: Remove (way) old nightly test scripts, I don't think anyone uses them and LNT has way better tools than this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143655
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 21:01:36 +0000 (21:01 +0000)]
llvm-config-2: Implement build system support for getting the variables we only
know at build time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143649
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 21:01:32 +0000 (21:01 +0000)]
build/Make: Add support for INCLUDE_BUILD_DIR make variable, to specify that
component needs to include files from its ObjDir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143648
91177308-0d34-0410-b5e6-
96231b3b80d8
Pete Cooper [Thu, 3 Nov 2011 20:47:50 +0000 (20:47 +0000)]
Reverted r143600 - selector reference change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143646
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 3 Nov 2011 20:10:01 +0000 (20:10 +0000)]
Keep the Crack language as an external project.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143643
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 19:45:52 +0000 (19:45 +0000)]
llvm-build: Avoid followlinks keyword argument to os.walk.
- llvm-build should now be Python2.4 compatible as best I know.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143641
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Bailey [Thu, 3 Nov 2011 19:24:46 +0000 (19:24 +0000)]
fixed global array handling for ptx to use the correct bit widths
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143640
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 18:53:17 +0000 (18:53 +0000)]
build: Add initial cut at LLVMBuild.txt files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143634
91177308-0d34-0410-b5e6-
96231b3b80d8
Pete Cooper [Thu, 3 Nov 2011 18:01:56 +0000 (18:01 +0000)]
DeadStoreElimination can now trim the size of a store if the end of it is dead.
Only currently done if the later store is writing to a power of 2 address or
has the same alignment as the earlier store as then its likely to not break up
large stores into smaller ones
Fixes <rdar://problem/
10140300>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143630
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:31 +0000 (17:56 +0000)]
llvm-build: Update --write-llvmbuild to write out a standard LLVM style file
header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143629
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:28 +0000 (17:56 +0000)]
llvm-build: Add "--write-library-table" option for generating the C++ library
dependency table used by llvm-config.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143628
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:24 +0000 (17:56 +0000)]
docs: Sketch docs for llvm-build tool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143627
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:21 +0000 (17:56 +0000)]
llvm-build: Add --write-llvmbuild option, which writes out the component tree.
- Useful for migrating or auto-upgrading the format schema.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143626
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:18 +0000 (17:56 +0000)]
llvm-build: Add --print-tree command line option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143625
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:16 +0000 (17:56 +0000)]
llvm-build: Fill in some details w.r.t. component's parents.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143624
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:12 +0000 (17:56 +0000)]
llvm-build: Validate information on the loaded components and form the topological ordering among them (as well as validating that there are no cycles).
- Currently we require that all references between components (except the parent relation) fit into a DAG -- this could be relaxed later if it ever proves to be useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143623
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:10 +0000 (17:56 +0000)]
llvm-build: Fill in more of component parsing to be more strict and
differentiate between strings and lists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143622
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:06 +0000 (17:56 +0000)]
llvm-build: Sketch code to load LLVMBuild.txt files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143621
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:56:03 +0000 (17:56 +0000)]
build: Stub out llvm-build utility tool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143620
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:55:59 +0000 (17:55 +0000)]
docs: Add initial docs on LLVMBuild organization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143619
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:30:19 +0000 (17:30 +0000)]
llvm-config-2: Implement component dependency traversal, implement support for 'all', and fix a few other minor bugs.
- Still doesn't use actual generated component table, but that is now just a matter of wiring into the build system.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143617
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 3 Nov 2011 17:30:16 +0000 (17:30 +0000)]
llvm-config: Start stubbing out a C++ version of llvm-config (as llvm-config-2,
for now).
- Mostly complete except for the data that needs to come from the build system
or the dependencies.
- Has some small improvements from current llvm-config:
o Uses TargetRegistry directly to get some information.
o Designed to work correctly when used from a CMake build tree (relatively
untested currently) (although pcc fixed this recently for old llvm-config).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143616
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Thu, 3 Nov 2011 07:35:53 +0000 (07:35 +0000)]
Add new X86 AVX2 VBROADCAST instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143612
91177308-0d34-0410-b5e6-
96231b3b80d8
Galina Kistanova [Thu, 3 Nov 2011 05:57:26 +0000 (05:57 +0000)]
Cleaned text, fixed HTML.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143607
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 3 Nov 2011 02:04:59 +0000 (02:04 +0000)]
Add support for sign-extending non-legal types in SelectSIToFP().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143603
91177308-0d34-0410-b5e6-
96231b3b80d8
Pete Cooper [Thu, 3 Nov 2011 00:56:36 +0000 (00:56 +0000)]
Treat objc selector reference globals as invariant so that MachineLICM can hoist them out of loops. Fixes <rdar://problem/
6027699>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143600
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 3 Nov 2011 00:14:01 +0000 (00:14 +0000)]
Remove some cruft from the BitcodeWriter, while still maintaining backward
compatibility in the BitcodeReader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143598
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 2 Nov 2011 23:37:04 +0000 (23:37 +0000)]
Fixed parameter name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143594
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 23:21:55 +0000 (23:21 +0000)]
Removed unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143591
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 2 Nov 2011 23:20:58 +0000 (23:20 +0000)]
An array of chars of length 8 will also cause the stack protector to be inserted
into the function. Reflect that here so that the array will be placed next to
the SP.
<rdar://problem/
10128329>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143590
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 2 Nov 2011 22:52:45 +0000 (22:52 +0000)]
Try to lower memset/memcpy/memmove to vector instructions on ARM where the alignment permits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143582
91177308-0d34-0410-b5e6-
96231b3b80d8
Galina Kistanova [Wed, 2 Nov 2011 22:05:18 +0000 (22:05 +0000)]
Few corrections on the document page.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143578
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 2 Nov 2011 21:02:27 +0000 (21:02 +0000)]
I added the first test to run llvm-dwarfdump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143571
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 2 Nov 2011 20:55:33 +0000 (20:55 +0000)]
Don't emit a directory entry for the value in DW_AT_comp_dir, that is always
implied by directory index zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143570
91177308-0d34-0410-b5e6-
96231b3b80d8
Tobias Grosser [Wed, 2 Nov 2011 19:51:04 +0000 (19:51 +0000)]
docs: Fix two typos
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143565
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 19:48:19 +0000 (19:48 +0000)]
build/Make: Update for rename of show-diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143564
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 2 Nov 2011 19:33:41 +0000 (19:33 +0000)]
object: Add operator < for SymbolRef and SectionRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143563
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 2 Nov 2011 19:33:26 +0000 (19:33 +0000)]
object/COFF: Properly initalize uses of DataRefImpl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143562
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 2 Nov 2011 19:33:12 +0000 (19:33 +0000)]
Object/Archive: Add symbol table iteration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143561
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 18:08:25 +0000 (18:08 +0000)]
Add support for comparing integer non-legal types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143559
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 2 Nov 2011 18:03:14 +0000 (18:03 +0000)]
Fix the issue that r143552 was trying to address the _right_ way. One-register lists are legal on LDM/STM instructions, but we should not print the PUSH/POP aliases when they appear. This fixes round tripping on this instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143557
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Wed, 2 Nov 2011 17:56:38 +0000 (17:56 +0000)]
Replace tabs I added in this new line of code with spaces.
Thanks to Nick for spotting this!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143556
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 17:54:51 +0000 (17:54 +0000)]
tests: Clean up tests/CMakeLists.txt to drop some variable configuration we no
longer need substitutions for.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143555
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 2 Nov 2011 17:46:18 +0000 (17:46 +0000)]
The rules disallowing single-register reglist operands only apply to the POP alias, not to LDM/STM instructions. Revert r143552.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143553
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 2 Nov 2011 17:41:23 +0000 (17:41 +0000)]
Register list operands are not allowed to contain only a single register. Alternate encodings are used in that case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143552
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 2 Nov 2011 17:24:36 +0000 (17:24 +0000)]
Don't print two 0x prefixes when printing an address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143549
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 17:22:57 +0000 (17:22 +0000)]
Add back the top-level target for 'llvm-config' and the dependency edge
to force it to build after all library targets so it has complete
dependency information. This should fix broken 'make install' with
CMake.
This is a partial revert of r143540, but it doesn't revert the most
important part of that change: removing the dependency edge from LLVM
tools to the llvm-config script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143548
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 17:20:24 +0000 (17:20 +0000)]
Factor out an EmitIntExt function. No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143547
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 2 Nov 2011 17:19:57 +0000 (17:19 +0000)]
Rewrite LinearFunctionTestReplace to handle pointer-type IVs.
We've been hitting asserts in this code due to the many supported
combintions of modes (iv-rewrite/no-iv-rewrite) and IV types. This
second rewrite of the code attempts to deal with these cases systematically.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143546
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 16:55:57 +0000 (16:55 +0000)]
Fix a typo noticed by Peter Collingbourne. No one depends on this
working today, but it shouldn't corrupt state for some poor soul to
debug later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143545
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:57:05 +0000 (15:57 +0000)]
docs: Remove an out-of-date and unnecessary tool list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143544
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:56:58 +0000 (15:56 +0000)]
docs: Separate development process type of documentation from programming
documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143543
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:56:55 +0000 (15:56 +0000)]
docs: Remove UsingLibraries page, which was inaccurate / out-of-date and not
particularly useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143542
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:56:52 +0000 (15:56 +0000)]
build/Make: Get rid of llvm-config-perobj, which isn't used anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143541
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:56:38 +0000 (15:56 +0000)]
build/CMake: Remove llvm-config.target used to serialize tool builds on
llvm-config build, there is no longer a point to this after Chandler's work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143540
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 07:17:12 +0000 (07:17 +0000)]
Begin collecting some of the statistics for block placement discussed on
the mailing list. Suggestions for other statistics to collect would be
awesome. =]
Currently these are implemented as a separate pass guarded by a separate
flag. I'm not thrilled by that, but I wanted to be able to collect the
statistics for the old code placement as well as the new in order to
have a point of comparison. I'm planning on folding them into the single
pass if / when there is only one pass of interest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143537
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 2 Nov 2011 06:54:17 +0000 (06:54 +0000)]
More AVX2 instructions and intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143536
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 05:43:44 +0000 (05:43 +0000)]
Add parentheses to disambiguate the precedence of these operations and
silence -Wparentheses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143534
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 05:03:06 +0000 (05:03 +0000)]
The TableGen parts of the CMake build are seriously broken. This fixes
one aspect of them by having them use the (annoying, if not broken)
proper library dependency model for adding the LLVMTableGen library as
a dependency. This could manifest as a link order issue in the presence
of separate LLVM / Clang source builds with CMake and a linker that
really cares about such things.
Also, add the Support dependency to llvm-tblgen itself so that it
doesn't rely on TableGen's transitive Support dependency. A parallel
change for clang-tblgen will be forthcoming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143531
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 2 Nov 2011 04:42:13 +0000 (04:42 +0000)]
Add a bunch more X86 AVX2 instructions and their corresponding intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143529
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 00:44:16 +0000 (00:44 +0000)]
Rename show-diagnostics to something less ambiguous.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143525
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Wed, 2 Nov 2011 00:24:56 +0000 (00:24 +0000)]
Add support to the linker to lazily link in functions. This change only links functions marked with specific linkage (internal, private, linker_private, linker_private_weak, linker_private_weak_def_auto, linkonce, linkonce_odr, and available_externally) if they have uses in the destination module. Instead of automatically linking, these functions are placed onto a worklist to be processed in the final stage of linking. We iterate over the list and if any functions on the list have uses in the destination module, we link them in and repeat the process until no changes in the state (uses) has changed. This means that any functions in the LazilyLink worklist that have a use in the destination module will be linked in and none that don't.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143524
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 00:18:48 +0000 (00:18 +0000)]
Factor out a SelectTrunc function. No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143523
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 2 Nov 2011 00:02:45 +0000 (00:02 +0000)]
Broaden an assert to handle enable-iv-rewrite=true following r143183.
Narrowest possible fix for PR11279.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143522
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Tue, 1 Nov 2011 23:39:05 +0000 (23:39 +0000)]
Fixed a bug in the code to create a dwarf file and directory table entires when
it is separating the directory part from the basename of the FileName. Noticed
that this:
.file 1 "dir/foo"
when assembled got the two parts switched. Using the Mac OS X dwarfdump tool
it can be seen easily:
% dwarfdump -a a.out
include_directories[ 1] = 'foo'
Dir Mod Time File Len File Name
---- ---------- ---------- ---------------------------
file_names[ 1] 1 0x00000000 0x00000000 dir
...
Which should be:
...
include_directories[ 1] = 'dir'
Dir Mod Time File Len File Name
---- ---------- ---------- ---------------------------
file_names[ 1] 1 0x00000000 0x00000000 foo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143521
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 1 Nov 2011 22:38:31 +0000 (22:38 +0000)]
ARM label operands can be quoted.
For example, labels from Objective-C sources.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143511
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 1 Nov 2011 22:37:37 +0000 (22:37 +0000)]
ARM label operands can have an optional '#' before them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143510
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Tue, 1 Nov 2011 22:27:22 +0000 (22:27 +0000)]
First part of support for generating dwarf for assembly source files with the
-g flag. In this part we generate the .file for the source being assembled and
the .loc's for the assembled instructions.
The next part will be to generate the dwarf Compile Unit DIE and a dwarf
subprogram DIE for each non-temporary label.
Once the next part is done test cases will be added. rdar://
9275556
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143509
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 1 Nov 2011 22:18:13 +0000 (22:18 +0000)]
Fix disassembly of some VST1 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143507
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Tue, 1 Nov 2011 21:32:20 +0000 (21:32 +0000)]
rename getHostTriple into getDefaultTargetTriple
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143502
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Tue, 1 Nov 2011 21:31:44 +0000 (21:31 +0000)]
rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143501
91177308-0d34-0410-b5e6-
96231b3b80d8