NAKAMURA Takumi
2c1a4cce4c
Makefile.rules: Let OPTIONAL_PARALLEL_DIRS accept out-of-tree absolute path.
...
llvm-svn: 142101
2011-10-16 02:54:19 +00:00
NAKAMURA Takumi
c5554c9de3
Add -D__STDC_FORMAT_MACROS to use PRIx64.
...
llvm-svn: 141663
2011-10-11 12:51:44 +00:00
Peter Collingbourne
fb3d935649
Build system infrastructure for multiple tblgens.
...
llvm-svn: 141266
2011-10-06 01:51:51 +00:00
Eric Christopher
cafab2ef2e
More llvmc bits. Spotted by Benjamin on IRC.
...
llvm-svn: 140124
2011-09-20 00:42:28 +00:00
Jim Grosbach
bcb36be8e3
TableGen'erated MC lowering for simple pseudo-instructions.
...
This allows the (many) pseudo-instructions we have that map onto a single
real instruction to have their expansion during MC lowering handled
automatically instead of the current cumbersome manual expansion required.
These sorts of pseudos are common when an instruction is used in situations
that require different MachineInstr flags (isTerminator, isBranch, et. al.)
than the generic instruction description has. For example, using a move
to the PC to implement a branch.
llvm-svn: 134704
2011-07-08 17:36:35 +00:00
Evan Cheng
c9c090d7a5
Rename XXXGenSubtarget.inc to XXXGenSubtargetInfo.inc for consistency.
...
llvm-svn: 134281
2011-07-01 22:36:09 +00:00
Daniel Dunbar
d1c487cd00
build/Darwin: Fix epic typo fail.
...
llvm-svn: 134036
2011-06-28 22:30:17 +00:00
Evan Cheng
1e210d08d8
Merge XXXGenRegisterNames.inc into XXXGenRegisterInfo.inc
...
llvm-svn: 134024
2011-06-28 20:07:07 +00:00
Evan Cheng
247533179a
Starting to refactor Target to separate out code that's needed to fully describe
...
target machine from those that are only needed by codegen. The goal is to
sink the essential target description into MC layer so we can start building
MC based tools without needing to link in the entire codegen.
First step is to refactor TargetRegisterInfo. This patch added a base class
MCRegisterInfo which TargetRegisterInfo is derived from. Changed TableGen to
separate register description from the rest of the stuff.
llvm-svn: 133782
2011-06-24 01:44:41 +00:00
NAKAMURA Takumi
b2507b3926
Don't force remove config.cache on reconfiguration.
...
config.cache will be used by the person who specifies '-C' to configure.
config.cache's inconsistency should be responsible to him.
Re-configuration would spend so much on cygming without '-C', esp. cygwin.
llvm-svn: 133252
2011-06-17 11:08:09 +00:00
Daniel Dunbar
0315d4a335
build/configure: Add support for --with-extra-ld-options flag (to provide extra
...
options just to pass to ld).
llvm-svn: 133206
2011-06-16 22:30:38 +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
Daniel Dunbar
0625b1f860
build: Add support for a SHOW_DIAGNOSTICS build variable.
...
If enabled, this will attempt to use the CC_LOG_DIAGNOSTICS feature I dropped
into Clang to print a log of all the diagnostics generated during an individual
build (from the top-level). Not sure if this will actually be useful, but for
now it is handy for testing the option.
llvm-svn: 129312
2011-04-11 22:37:39 +00:00
Chris Lattner
077f0179bb
LLVMCC_EMITIR_FLAG is already either -emit-llvm or -fplugin-arg-dragonegg-emit-ir, so don't add an extra leading -. Clang doesn't accept --emit-llvm.
...
llvm-svn: 129232
2011-04-09 19:56:28 +00:00
Chris Lattner
96d2507e79
make stuff work when LLVMCC_OPTION is something like installed-clang, not just clang.
...
llvm-svn: 129229
2011-04-09 19:53:16 +00:00
Chris Lattner
8872ec3ff0
revert accidental commit.
...
llvm-svn: 129191
2011-04-09 06:01:28 +00:00
Chris Lattner
2bd7015de5
fix a potentially serious bug in AliasSet::removeCallSite
...
where we shrunk the list without updating the end iterator.
By inspection, from PR9639.
llvm-svn: 129190
2011-04-09 05:51:34 +00:00
NAKAMURA Takumi
2035ab2816
Makefile.rules: [PR2928] "make install" may install include files along explicit pattern, not to install CMake's building stuff.
...
llvm-svn: 127325
2011-03-09 09:11:27 +00:00
NAKAMURA Takumi
0b26c3a674
Reapply r127073(partially): Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of $(ECHO).
...
On mingw and python/w32, lit would not be expected to understand MSYS-style path.
llvm-svn: 127239
2011-03-08 12:25:10 +00:00
Eric Christopher
bb8599ade5
Prepend LD.Flags before LDFLAGS to avoid overriding necessary paths.
...
Patch by Jack Howarth.
llvm-svn: 127152
2011-03-07 04:25:12 +00:00
Jakob Stoklund Olesen
42fc943f21
Revert r127073: "Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of $(ECHO)."
...
It broke the llvm-gcc-native-mingw32 buildbot, and we need all of them to be green for the 2.9 branch.
Takumi, please reapply after we branch, preferably with a fix ;-)
llvm-svn: 127107
2011-03-05 18:55:06 +00:00
NAKAMURA Takumi
e9dc4d309a
Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of $(ECHO).
...
On mingw and python/w32, lit would not be expected to understand MSYS-style path.
llvm-svn: 127073
2011-03-05 09:46:45 +00:00
Chris Lattner
22b7495ec8
Better OpenBSD support, patch by Amit Kulkarni. I have no way to test
...
that this doesn't break gold, but it seems reasonable to me.
llvm-svn: 126135
2011-02-21 18:38:56 +00:00
Stephen Wilson
a16825106c
Do not try to descend into optional build directories if they do not
...
exist. This makes the build logic symmetric for both the in tree and
out of tree cases.
llvm-svn: 126070
2011-02-20 03:51:07 +00:00
Rafael Espindola
4e03719cce
Factor the computation of the basename of libraries. This avoids renaming
...
them on install. Before we would have LLVMgold.so on the build directory but
libLLVMgold.so on the install dir.
llvm-svn: 124821
2011-02-03 22:01:15 +00:00
Daniel Dunbar
c1c4e9589a
build: Shared libraries shouldn't used RPATH on Darwin, only main executables
...
should use that.
llvm-svn: 121231
2010-12-08 02:29:26 +00:00
Daniel Dunbar
21e71e948b
build: Don't force -flat_namespace or '-undefined suppress' on unsuspecting users of LLVM makefiles, these options really shouldn't be used on Darwin.
...
llvm-svn: 121223
2010-12-08 01:48:05 +00:00
Charles Davis
54c9eb6fff
Now to chant the magical incantation that will exorcise the System library
...
from LLVM forever:
grep -lR "llvm/System" * | grep -v .svn | xargs sed -ie 's#llvm/System#llvm/Support#g'
llvm-svn: 120314
2010-11-29 19:44:50 +00:00
Michael J. Spencer
447762da85
Merge System into Support.
...
llvm-svn: 120298
2010-11-29 18:16:10 +00:00
NAKAMURA Takumi
98fa0159fc
unittests/JITTests: Don't use --export-dynamic but --export-all-symbols on cygming.
...
GNU ld/PECOFF accepts but ignores them below;
--version-script
--export-dynamic
--rpath
FIXME: autoconf should be aware of them.
llvm-svn: 120179
2010-11-26 09:32:02 +00:00
Duncan Sands
1bc5303aed
Using LLVMCC_EMITIR_FLAG rather than hard-coding -emit-llvm
...
(dragonegg cannot use -emit-llvm so needs a different flag
to everyone else).
llvm-svn: 120155
2010-11-25 21:14:55 +00:00
Chris Lattner
9007c368c6
remove JIT support from the Alpha backend. The JIT will be moving to MC,
...
and the Alpha backend isn't MCized yet. Approved by Andrew.
llvm-svn: 119051
2010-11-14 18:24:41 +00:00
Jim Grosbach
cd536df63c
Add rule to build MC'ized CodeEmitter.
...
llvm-svn: 118207
2010-11-03 23:46:01 +00:00
Mikhail Glushenkov
f4a6809231
Remove -llvmc-temp-hack from tblgen.
...
llvm-svn: 117197
2010-10-23 07:32:53 +00:00
Peter Collingbourne
a92b66ec47
Standardise all build-mode affecting {EN,DIS}ABLE_* make options to
...
test equality to 1, and fix/update documentation to reflect this
llvm-svn: 117094
2010-10-22 12:54:34 +00:00
Rafael Espindola
6db2837f7f
Don't pass --export-dynamic if TOOL_NO_EXPORTS is set.
...
llvm-svn: 116550
2010-10-15 00:58:12 +00:00
Chris Lattner
28f034c21a
Generalize tblgen's dag parsing logic to handle arbitrary expressions
...
as the operator of the dag. Specifically, this allows parsing things
like (F.x 4) in addition to just (a 4).
Unfortunately, this runs afoul of an idiom being used by llvmc. It
is using dags like (foo [1,2,3]) to represent a list of stuff being
passed into foo. With this change, this is parsed as a [1,2,3]
subscript on foo instead of being the first argument to the dag.
Cope with this in the short term by requiring a "-llvmc-temp-hack"
argument to tblgen to get the old parsing behavior.
llvm-svn: 115742
2010-10-06 04:55:48 +00:00
NAKAMURA Takumi
b9699070e8
Makefile.rules: Fix breakage on cygming --enable-shared.
...
This has been applied already in r115093 on release_28.
llvm-svn: 115487
2010-10-04 02:32:21 +00:00
Jim Grosbach
d4ee8453a6
Remove self-described temporary hack. A bit over a year seems a reasonable
...
delay. Anton and PIC16 folks, if this is still good to keep, please go ahead
and add it back in with an updated comment about when would be a good time
to revisit.
llvm-svn: 115358
2010-10-01 22:32:12 +00:00
Daniel Dunbar
923e3eabf3
build: Add support for a TOOL_ORDER_FILE variable so commands can build with an
...
order file on Darwin.
llvm-svn: 114050
2010-09-16 00:42:32 +00:00
NAKAMURA Takumi
9c8a97ce0a
Makefile.rules: LOADABLE_MODULE/Win32: "all" components may be linked
...
only when ENABLE_SHARED=1.
Loadable module for Win32 requires all symbols resolved for linking.
llvm-svn: 113579
2010-09-10 06:27:02 +00:00
Daniel Dunbar
4c5301d38e
build: Allow subdir Makefiles to provide an alternate location for the SRCDIR
...
Makefile, which can be used to allow building out of tree sources.
llvm-svn: 113503
2010-09-09 17:38:11 +00:00
Dan Gohman
02ab9a69b9
Fix Windows stuff to follow the existing source organization.
...
llvm-svn: 112976
2010-09-03 17:29:33 +00:00
Mikhail Glushenkov
a15f44daa8
Revert "Rules for win32 ld shouldn't fire when cross-compiling."
...
This reverts commit 012b374e5b46fe93a8fdf605f5929fa8239e0960.
llvm-svn: 112963
2010-09-03 15:42:38 +00:00
Mikhail Glushenkov
60b696db37
Rules for win32 ld shouldn't fire when cross-compiling.
...
llvm-svn: 112954
2010-09-03 09:57:52 +00:00
Chris Lattner
c19eaaa9d4
have the makefiles check the llvm-config error code instead of charging
...
on an producing weird link errors. Patch by Yuri Gribov!
llvm-svn: 112714
2010-09-01 16:11:17 +00:00
Dan Gohman
a610304ed9
Fix the "Finished Creating" messages for aliases to print the
...
right name.
llvm-svn: 111340
2010-08-18 01:35:53 +00:00
Anton Korobeynikov
51b8b1d36c
This patch enables ENABLE_SHARED=1 to build DLL based LLVM toolchain on MingW & Cygwin.
...
Patch by Takumi Nakamura!
llvm-svn: 111268
2010-08-17 19:03:03 +00:00
Mikhail Glushenkov
938e976b90
llvmc: remove dynamic plugins.
...
llvm-svn: 111094
2010-08-15 07:07:12 +00:00
Mikhail Glushenkov
84fc4586f7
Simplify generating LLVMC_BUILTIN_PLUGIN.
...
Patch by NAKAMURA Takumi!
llvm-svn: 110680
2010-08-10 14:49:29 +00:00