Commit Graph

283 Commits

Author SHA1 Message Date
Chandler Carruth 9c394e3f89 Remove autoconf support for runtest and tclsh, some of the last vestigal
bits of DejaGNU.

Eric, you may want to remove the TCLSH bits from aclocal.m4 and
regenerate... I didn't want to touch the m4 file lest something
exploded.

llvm-svn: 159308
2012-06-27 23:53:41 +00:00
Chandler Carruth 276abc5d4a Exclude both libcxx and compiler-rt until we get their CMake builds
suitable for building as a whole-project.

llvm-svn: 159241
2012-06-27 00:30:08 +00:00
Simon Atanasyan 15c4aed428 Add mipsel-* to the list of targets recognized by configure script.
llvm-svn: 158670
2012-06-18 19:06:25 +00:00
Justin Holewinski 907f7606f2 Remove the PTX back-end and all of its artifacts (triple, etc.)
This back-end was deprecated in favor of the NVPTX back-end.

NV_CONTRIB

llvm-svn: 157417
2012-05-24 21:38:21 +00:00
Benjamin Kramer 6764af97bc Update all outdated autoconf files in the sample project.
We might just use symlinks here, but I'm afraid of possible portability issues.

llvm-svn: 156235
2012-05-05 15:02:39 +00:00
Justin Holewinski ae556d3ef7 This patch adds a new NVPTX back-end to LLVM which supports code generation for NVIDIA PTX 3.0. This back-end will (eventually) replace the current PTX back-end, while maintaining compatibility with it.
The new target machines are:

nvptx (old ptx32) => 32-bit PTX
nvptx64 (old ptx64) => 64-bit PTX

The sources are based on the internal NVIDIA NVPTX back-end, and
contain more functionality than the current PTX back-end currently
provides.

NV_CONTRIB

llvm-svn: 156196
2012-05-04 20:18:50 +00:00
Evgeniy Stepanov b7ff9b1599 Update config.sub in the sample project.
This change replaces projects/sample/autoconf/config.sub with a copy of
autoconf/config.sub.

llvm-svn: 155703
2012-04-27 10:27:32 +00:00
Michael J. Spencer 9125493efe Remove llvm-ld and llvm-stub (which is only used by llvm-ld).
llvm-ld is no longer useful and causes confusion and so it is being removed.

* Does not work very well on Windows because it must call a gcc like driver to
  assemble and link.
* Has lots of hard coded paths which are wrong on many systems.
* Does not understand most of ld's options.
* Can be partially replaced by llvm-link | opt | {llc | as, llc -filetype=obj} |
  ld, or fully replaced by Clang.

I know of no production use of llvm-ld, and hacking use should be
replaced by Clang's driver.

llvm-svn: 155147
2012-04-19 19:27:54 +00:00
Sylvestre Ledru e8235fef31 Fix a problem in the target detection for Debian GNU/HURD
llvm-svn: 154117
2012-04-05 19:34:15 +00:00
Sylvestre Ledru 4cf7dae516 Fix a problem in the target detection for Debian GNU/kFreeBSD
llvm-svn: 154114
2012-04-05 18:53:09 +00:00
Eric Christopher 56079c1e72 Add InitializeNativeTargetDisassembler function.
Patch by Ojab.

llvm-svn: 153476
2012-03-26 21:56:56 +00:00
Eric Christopher eb75cc26af Add some fixes to the configure script for isInf and add
--enable-libcpp to projects/sample.

Patch by Dmitri Shubin with additional fixes by me.

llvm-svn: 153425
2012-03-26 02:09:01 +00:00
Eric Christopher 64a232343a Remove the C backend.
llvm-svn: 153307
2012-03-23 05:50:46 +00:00
Benjamin Kramer e815db6140 configure: Don't require a perl interpreter to be present, LLVM's buildsystem doesn't depend on perl anymore.
llvm-svn: 152234
2012-03-07 17:07:20 +00:00
Rafael Espindola 42e94d11a1 Enable -Wcovered-switch-default again, but add -Werror to the checks to make
sure we don't use it with compilers that don't support it.

llvm-svn: 151665
2012-02-28 23:32:06 +00:00
Chandler Carruth 0bd3913d96 Temporarily revert r151609, which enabled a new warning for LLVM and
Clang builds. The detection logic for compilers that support the warning
isn't working. Rafael is going to investigate it, but didn't want people
to have to wade through build spam until then.

llvm-svn: 151649
2012-02-28 19:26:56 +00:00
Rafael Espindola 334eaeae8e Enable -Wcovered-switch-default as it matches the switch style used in llvm.
llvm-svn: 151609
2012-02-28 02:01:55 +00:00
Rafael Espindola ec217f6ad6 Replace the old --with-cxx-* configure options with a single --with-gcc-toolchain
that just uses the new toolchain probing logic. This fixes linking with -m32 on
64 bit systems (the /32 dir was not being added to the search).

llvm-svn: 149651
2012-02-03 00:59:30 +00:00
Rafael Espindola fbd1d8be54 Regenerate configure.
llvm-svn: 149391
2012-01-31 17:18:47 +00:00
Sebastian Pop 99ab273a77 revert r147542 after comments from Joerg Sonnenberger
llvm-svn: 147608
2012-01-05 18:28:46 +00:00
Sebastian Pop 0f357d6c22 use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJIT
Get back getHostTriple.

For JIT compilation, use the host triple instead of the default
target: this fixes some JIT testcases that used to fail when the
compiler has been configured as a cross compiler.

llvm-svn: 147542
2012-01-04 19:47:22 +00:00
Tony Linthicum 1213a7a57f Hexagon backend support
llvm-svn: 146412
2011-12-12 21:14:40 +00:00
Daniel Dunbar 27a7489a03 LLVMBuild: Remove trailing newline, which irked me.
llvm-svn: 146409
2011-12-12 19:48:00 +00:00
Daniel Dunbar bf9bba47a1 build: Add initial cut at LLVMBuild.txt files.
llvm-svn: 143634
2011-11-03 18:53:17 +00:00
Sebastian Pop ec2fb226d8 rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE
llvm-svn: 143501
2011-11-01 21:31:44 +00:00
Sebastian Pop f29a9b8c0b derive LLVM_HOSTTRIPLE from target
llvm-svn: 143500
2011-11-01 21:30:04 +00:00
Dan Gohman 4c9fca99c9 Remove the Alpha backend.
llvm-svn: 143164
2011-10-27 22:56:32 +00:00
Daniel Dunbar bfc62b06e2 projects/sample: Switch over to imported Makefile setup.
- This will require you to manually reconfigure the projects/sample project (by running projects/config/sample/config.status --recheck) if you haven't updated/built since the 1st part of this commit went in.

llvm-svn: 143148
2011-10-27 21:25:09 +00:00
Eric Christopher 49709ad6d0 Handle newer cases for freebsd which is approaching 10.0 and not 1.0.
Patch by Dimitry Andric!

llvm-svn: 142995
2011-10-26 00:42:12 +00:00
Dan Gohman b43c36f391 Remove the Blackfin backend.
llvm-svn: 142880
2011-10-25 00:05:42 +00:00
Dan Gohman dfc96aea90 Remove the SystemZ backend.
llvm-svn: 142878
2011-10-24 23:48:32 +00:00
Daniel Dunbar 28435a668c Regenerate projects/sample/configure.
llvm-svn: 142457
2011-10-18 23:10:58 +00:00
Daniel Dunbar 1e5e5011ab projects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that projects/sample is standalone and not tied to the LLVM build setup.
- This currently just moves over all of the behavior from LLVM. Eventually all of the configure checks that are directly needed by the LLVM build setup should probably go away, and the project should manage their own configuration checks if necessary.

 - This is the 1st half of this work, the actual Makefile.common hasn't moved over yet. I've tried to stage this in such a way that incremental builds will properly reconfigure for most active developers (the Makefiles don't handle reconfiguring in a perfectly reliable way, and I haven't found an easy way to make them do so).

llvm-svn: 142456
2011-10-18 23:10:47 +00:00
Chris Lattner 0ab5e2cded Fix a ton of comment typos found by codespell. Patch by
Luis Felipe Strano Moraes!

llvm-svn: 129558
2011-04-15 05:18:47 +00:00
Peter Collingbourne 5be5391df0 Regen configure
llvm-svn: 121646
2010-12-12 21:42:01 +00:00
Peter Collingbourne 607e0bd7c7 Fix paths; AutoRegen.sh changes its current working directory to be the
autoconf directory, but these paths need to be relative to the main
source directory.  Patch originally by Dan Gohman, r67655.

Also, cause configure.ac to find absolute paths to LLVM source and
object trees.   Together, fixes PR1220.

llvm-svn: 121645
2010-12-12 21:41:56 +00:00
Michael J. Spencer ab425d8360 I swear I did a make clean and make before committing all this...
llvm-svn: 120304
2010-11-29 18:47:54 +00:00
Daniel Dunbar 4026664697 projects: Don't try to build libcxx if one happens to have it checked out into
llvm/projects.

llvm-svn: 113490
2010-09-09 15:49:32 +00:00
Eric Christopher 08928d8e23 Remove bogus link.
llvm-svn: 108518
2010-07-16 06:33:36 +00:00
Jakob Stoklund Olesen 37c42a3d02 Remove many calls to TII::isMoveInstr. Targets should be producing COPY anyway.
TII::isMoveInstr is going tobe completely removed.

llvm-svn: 108507
2010-07-16 04:45:42 +00:00
Wesley Peck b0da6135bd Testing subversion commit access
llvm-svn: 96948
2010-02-23 15:11:17 +00:00
Oscar Fuentes 37b3c48ef7 CMake: Fixed syntax in conditional.
llvm-svn: 96221
2010-02-15 15:17:05 +00:00
Jakob Stoklund Olesen 924b4ca59b Oops.
llvm-svn: 95670
2010-02-09 17:24:21 +00:00
Jakob Stoklund Olesen bd9e50fc91 clang test suite
llvm-svn: 95667
2010-02-09 17:20:03 +00:00
Eric Christopher 843b717a91 Fix autoconf llvm srcdir location for generic projects.
Patch by Torvald Riegel!

llvm-svn: 94405
2010-01-25 04:10:28 +00:00
Daniel Dunbar e0b374b5ef CMake: Don't try to descend into projects/compiler-rt, it doesn't work.
llvm-svn: 94187
2010-01-22 18:14:27 +00:00
Daniel Dunbar ff24e1aa4c Don't try to build compiler-rt if it happens to be checked out into projects/
llvm-svn: 93729
2010-01-18 17:52:28 +00:00
Chandler Carruth 56869f22c4 Move DataTypes.h to include/llvm/System, update all users. This breaks the last
direct inclusion edge from System to Support.

llvm-svn: 85086
2009-10-26 01:35:46 +00:00
Torok Edwin d70eebee51 install-sh chmods to 0755 by default, and this causes 'git diff' to show
that all the Makefiles changed mode.
Fix this by tellint install-sh to chmod
only to 0644, these are not executable files after all!

llvm-svn: 80371
2009-08-28 16:12:48 +00:00
Chris Lattner 3912036c25 remove dead makefile flags.
llvm-svn: 74065
2009-06-24 05:29:56 +00:00
Dan Gohman 7f570d5491 Revert r67655 and r67656, as they are breaking the build. I'm
not going to persue this further at this time.

llvm-svn: 67666
2009-03-25 00:52:11 +00:00
Dan Gohman 1e7602a20e LLVM's master Makefile.common is in LLVM_SRC_ROOT, not LLVM_OBJ_ROOT.
llvm-svn: 67658
2009-03-25 00:09:05 +00:00
Dan Gohman 9d4d283024 Regenerate configure.
llvm-svn: 67656
2009-03-24 23:47:11 +00:00
Dan Gohman 34be8be297 Fix paths; AutoRegen.sh changes its current working directory to be the
autoconf directory, but these paths need to be relative to the main
source directory.

llvm-svn: 67655
2009-03-24 23:46:25 +00:00
Dan Gohman afcd6a3133 Update for autoconf 2.6x;
llvm-svn: 67654
2009-03-24 23:45:13 +00:00
Dan Gohman 24e02b1043 Fix bash-isms.
llvm-svn: 67647
2009-03-24 20:21:37 +00:00
Oscar Fuentes afbe97542f CMake: auto-discover project files under the projects/ subdirectory.
Patch by Viktar Zviarovich!

llvm-svn: 66230
2009-03-06 01:16:52 +00:00
Nick Lewycky a3784b98ae Add "sample" documentation to sample project.
This fixes part of PR2793.

llvm-svn: 56198
2008-09-15 05:31:29 +00:00
Matthijs Kooijman a2509a1a48 Allow the test suite to be checked out into projects/test-suite.
We will keep the old projects/llvm-test working for existing installs.

The changes to configure are made manually, since I lack autoconf-2.6. Someone
might want to run AutoGen.sh to see if that changes anything.

llvm-svn: 52675
2008-06-24 13:01:57 +00:00
Chris Lattner 11cc8b3c14 remove attributions from the rest of the llvm makefiles.
llvm-svn: 45416
2007-12-29 20:11:13 +00:00
John Criswell 2660cef6d7 Convert .cvsignore files
llvm-svn: 37801
2007-06-29 16:35:07 +00:00
Chris Lattner 8597d69961 avoid collision with /usr/bin/sample if this ever gets installed.
llvm-svn: 34387
2007-02-18 03:03:41 +00:00
Chris Lattner 24a0e7b8f4 remove obsolete comment
llvm-svn: 33292
2007-01-17 05:26:57 +00:00
Reid Spencer e6fd0e826b For PR1074:
Remove the projects/Stacker directory. LLVM is now free of dependency
on llvm-gcc.

llvm-svn: 33278
2007-01-17 02:18:44 +00:00
Chris Lattner 59585a61fc relax type
llvm-svn: 32993
2007-01-07 08:39:27 +00:00
Reid Spencer bc013ba367 For PR950:
Convert signed integer types to signless.

llvm-svn: 32786
2006-12-31 05:50:28 +00:00
Reid Spencer 266e42b312 For PR950:
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.

llvm-svn: 32751
2006-12-23 06:05:41 +00:00
Chris Lattner 874e55d551 switch statistic over, remove misspelt comment.
llvm-svn: 32704
2006-12-19 23:03:41 +00:00
Reid Spencer 2b768652db Update for llvm-gcc4 build.
llvm-svn: 32533
2006-12-13 08:03:25 +00:00
Reid Spencer d845dc00c7 Change createInferredCast calls to more accurate cast creation calls.
llvm-svn: 32520
2006-12-13 00:47:58 +00:00
Bill Wendling f3baad3ee1 Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.

llvm-svn: 32298
2006-12-07 01:30:32 +00:00
Devang Patel e06e9fdf0b Detemplatize the Statistic class.
llvm-svn: 32283
2006-12-06 19:00:27 +00:00
Bill Wendling afd54eb8b6 Replacing std::iostreams with llvm iostreams. Some of these changes involve
adding a temporary wrapper around the ostream to make it friendly to
functions expecting an LLVM stream. This should be fixed in the future.

llvm-svn: 31990
2006-11-29 00:19:40 +00:00
Reid Spencer 6c38f0bb07 For PR950:
The long awaited CAST patch. This introduces 12 new instructions into LLVM
to replace the cast instruction. Corresponding changes throughout LLVM are
provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
exception of 175.vpr which fails only on a slight floating point output
difference.

llvm-svn: 31931
2006-11-27 01:05:10 +00:00
Reid Spencer fdff938a7e For PR950:
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.

llvm-svn: 31542
2006-11-08 06:47:33 +00:00
Reid Spencer 0f43e646f8 Don't check variables before they are set.
Be careful about blanks when checking LLVMGCC variable.

llvm-svn: 31455
2006-11-05 03:58:44 +00:00
Reid Spencer b795c434e5 Make sample project -pedantic clean.
llvm-svn: 31391
2006-11-03 00:09:53 +00:00
Reid Spencer c4e5de55a2 Make Stacker Runtime -pedantic clean.
llvm-svn: 31390
2006-11-03 00:08:08 +00:00
Reid Spencer de46e48420 For PR786:
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining
issues when they see them. All changes pass DejaGnu tests and Olden.

llvm-svn: 31380
2006-11-02 20:25:50 +00:00
Reid Spencer 7eb55b395f For PR950:
Replace the REM instruction with UREM, SREM and FREM.

llvm-svn: 31369
2006-11-02 01:53:59 +00:00
Reid Spencer 7e80b0b31e For PR950:
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.

llvm-svn: 31195
2006-10-26 06:15:43 +00:00
Reid Spencer e0fc4dfc22 For PR950:
This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.

llvm-svn: 31063
2006-10-20 07:07:24 +00:00
Reid Spencer 62ad409c2b Don't build the runtime library if LLVMGCC is not configured.
llvm-svn: 30691
2006-10-02 19:10:56 +00:00
Chris Lattner eb45775347 Stacker doesn't build universal right.
llvm-svn: 30675
2006-09-30 00:24:20 +00:00
Chris Lattner 537b547468 Fix a race condition in the makefile that broke grawp's tester last night.
llvm-svn: 29873
2006-08-25 17:15:23 +00:00
Reid Spencer 2f94c5d186 For PR797:
Update to reflect ParseException becoming ParseError (from Parser.h)

llvm-svn: 29766
2006-08-18 09:07:54 +00:00
Reid Spencer 2da905c53b Drop the -s2048 option, it is specified incorrectly and the correct
specification can't be handled by llvmc (= confuses it)

llvm-svn: 29764
2006-08-18 09:00:22 +00:00
Reid Spencer e6458c3fb2 For PR780:
1. Change the usage of LOADABLE_MODULE so that it implies all the things
   necessary to make a loadable module. This reduces the user's burdern to
   get a loadable module correctly built.
2. Document the usage of LOADABLE_MODULE in the MakefileGuide
3. Adjust the makefile for lib/Transforms/Hello to use the new specification
   for building loadable modules
4. Adjust the sample project to not attempt to build a shared library for
   its little library. This was just wasteful and not instructive at all.

llvm-svn: 29551
2006-08-07 23:12:15 +00:00
Chris Lattner 5096bfd80f Stacker uses EH.
llvm-svn: 29032
2006-07-07 00:20:39 +00:00
Chris Lattner 16cf81306e Don't pass target name into TargetData anymore, it is never used or needed.
llvm-svn: 28831
2006-06-16 18:23:49 +00:00
Chris Lattner d1fe870e08 Fix build on systems with broken bison
llvm-svn: 28658
2006-06-02 18:21:11 +00:00
Reid Spencer a62f097c96 For PR786:
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.

llvm-svn: 28614
2006-06-01 01:55:21 +00:00
Reid Spencer a647c7ff42 Use archive libraries instead of object files for VMCore, BCReader,
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.

llvm-svn: 28610
2006-06-01 01:30:27 +00:00
Chris Lattner 36d256f170 Avoid defining dead result
llvm-svn: 28246
2006-05-12 17:29:40 +00:00
Reid Spencer b687ce80cd Have the AutoRegen.sh script prompt the user for the LLVM src and obj
directories if it can't find them. Then, replace those values into the
configure.ac script and pass them to the LLVM_CONFIG_PROJECT so that the
values become the default for llvm_src and llvm_obj variables. In this way
the user is required to input this exactly once, and the scripts take it
from there.

llvm-svn: 27798
2006-04-18 06:27:47 +00:00
Reid Spencer 04896a7d71 Distribute the Stacker samples directory.
llvm-svn: 27648
2006-04-13 06:16:37 +00:00
Reid Spencer d538792a85 Distribute the lex/yacc files from the cvs version.
llvm-svn: 27628
2006-04-12 20:55:23 +00:00
Reid Spencer f90ea1d2aa Ignored generated files.
llvm-svn: 27016
2006-03-23 23:53:13 +00:00
Reid Spencer 1148363c55 Ignore generated files.
llvm-svn: 27015
2006-03-23 23:51:43 +00:00
Chris Lattner a7c9234fde Convert over to the new way of handling lex/bison checked into cvs
llvm-svn: 26209
2006-02-15 07:26:07 +00:00