Commit Graph

11 Commits

Author SHA1 Message Date
Dmitri Hrybenko
667443c7d1 CMake: install 'llvm-opt' with execution permissions
Swift SVN r25156
2015-02-11 01:08:49 +00:00
Jordan Rose
ebc47cab91 [CMake] llvm-opt should use the version of opt we built.
Previously, Debug/bin/llvm-opt would invoke Debug/bin/opt, and
Release/bin/llvm-opt would invoke Release/bin/opt. However, build-script
only ever builds one LLVM configuration, even if Swift is being built
by Xcode in multiple build configurations.

Swift SVN r24259
2015-01-08 03:02:18 +00:00
Dmitri Hrybenko
6670bb76ec Rewrite the CMake build system
Swift SVN r24124
2014-12-23 22:15:30 +00:00
Argyrios Kyrtzidis
c5e3700150 [CMake] Use the correct path for opt when setting up llvm-opt, when using xcodebuild.
Otherwise the LLVMPasses tests fail with the wrong path for opt.

Swift SVN r22866
2014-10-21 19:06:34 +00:00
Jordan Rose
fa42cac6d3 [utils/llvm-opt] Fix Michael's r21680 to handle Xcode's multi-config builds.
Swift SVN r21813
2014-09-09 22:38:08 +00:00
Michael Gottesman
ec92ba8ba6 [llvm-opt] Instead of guessing where SwiftLLVMPass dylib is, just get cmake to tell us where it is putting it.
Swift SVN r21680
2014-09-03 19:16:10 +00:00
Michael Gottesman
4c953d7f33 Rename OptimizeARC library => LLVMPasses library.
OptimizeARC does not only contain an optimize arc pass: the library also
includes aa. What this really is a repository of the extra passes and
infrastructure that we inject into LLVM. Thus LLVMPasses is a more descriptive
name. It also matches SILPasses.

I also taught lit how to use the new llvm-opt driver for running swift llvm
passes through opt without having to remember how to setup the dynamic swift
llvm pass dylib. You can use this in lit tests by using the substitution
%llvm-opt.

Swift SVN r21654
2014-09-02 20:51:40 +00:00
Michael Gottesman
50285565f9 Fix llvm-opt and leaks-runner for good.
Swift SVN r21297
2014-08-19 22:11:09 +00:00
Michael Gottesman
a36249f80b Just create the bin dir with mkdir -p to unblock people, bots for now.
Swift SVN r21284
2014-08-19 17:52:39 +00:00
Michael Gottesman
ba3386b60d Add ${SWIFT_BINARY_DIR}/bin as a dependency of llvm-opt and leaks-runner.
Swift SVN r21283
2014-08-19 17:43:07 +00:00
Michael Gottesman
a759420048 [llvm-opt] Add wrapper script "llvm-opt" that automatically loads swift llvm dylib.
This allows one to just run llvm-opt -swift-arc-optimize, etc without needing to
know anything about hooking up the dylib.

I also changed leaks-detector to use the same type of sequence of code as
llvm-opt. It was creating a folder and copying leaks-runner into the folder
instead of just copying leaks-runner into bin.

Swift SVN r21273
2014-08-19 05:51:51 +00:00