hanchenye-llvm-project/llvm
Pete Cooper 7c4d7b8fbe Construct ArrayRef<const T*> from vector<T>
ArrayRef already has a SFINAE constructor which can construct ArrayRef<const T*> from ArrayRef<T*>.

This adds methods to do the same directly from SmallVector and std::vector.  This avoids an intermediate step through the use of makeArrayRef.

Also update the users of this in LICM and SROA to remove the now unnecessary makeArrayRef call.

Reviewed by David Blaikie.

llvm-svn: 237309
2015-05-13 22:43:09 +00:00
..
autoconf Deprecate in-source autotools builds 2015-05-04 02:04:54 +00:00
bindings IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
cmake Allow the CMake option 'LLVM_ABI_BREAKING_CHECKS' to be undefined. 2015-05-12 22:49:18 +00:00
docs [lib/Fuzzer] update docs about test corpuses in git 2015-05-13 22:42:28 +00:00
examples [Orc] Reapply r236465 with fixes for the MSVC bots. 2015-05-05 17:37:18 +00:00
include Construct ArrayRef<const T*> from vector<T> 2015-05-13 22:43:09 +00:00
lib Construct ArrayRef<const T*> from vector<T> 2015-05-13 22:43:09 +00:00
projects build: make libunwind a proper project 2015-04-25 01:47:39 +00:00
test InstrProf: Fix display of large numbers in llvm-cov 2015-05-13 22:41:48 +00:00
tools InstrProf: Fix display of large numbers in llvm-cov 2015-05-13 22:41:48 +00:00
unittests InstrProf: Treat functions with a coverage map but no profile as unreached 2015-05-13 22:03:04 +00:00
utils MC: Modernize MCOperand API naming. NFC. 2015-05-13 18:37:00 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitignore Ignore compile_commands.json only at the root of the tree. 2015-03-26 18:55:42 +00:00
CMakeLists.txt [CMake] Updates to llvm-shlib to support overriding exports list and added an option to export all symbols. 2015-04-13 21:29:46 +00:00
CODE_OWNERS.TXT Added Andrey Churbanov as the owner of the OpenMP runtime library code 2015-05-05 20:17:53 +00:00
CREDITS.TXT
LICENSE.TXT Update for a new year. 2015-03-12 01:25:29 +00:00
LLVMBuild.txt
Makefile
Makefile.common
Makefile.config.in Deprecate in-source autotools builds 2015-05-04 02:04:54 +00:00
Makefile.rules
README.txt Revert test commit at revision 233535. 2015-03-30 12:39:03 +00:00
configure Deprecate in-source autotools builds 2015-05-04 02:04:54 +00:00
llvm.spec.in

README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you're writing a package for LLVM, see docs/Packaging.rst for our
suggestions.