Compare commits
357 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
78e975e88f | ||
|
901bdb19f1 | ||
|
b9d5a005d6 | ||
|
004b709e96 | ||
|
0cf0e0fcc8 | ||
|
38c19e024e | ||
|
d323e42667 | ||
|
4d5a2ef48a | ||
|
7790ff0825 | ||
|
13fa3366b4 | ||
|
00a5db5f3a | ||
|
f61fd6e557 | ||
|
96d4e517c5 | ||
|
d7b5dc38f6 | ||
|
d9ea1b48ed | ||
|
8ddd41e8d9 | ||
|
acf22be74c | ||
|
9d70f3b6d9 | ||
|
a49a481229 | ||
|
6a704c4759 | ||
|
6f02bbba2f | ||
|
bab8b9476f | ||
|
f07760fd8f | ||
|
547b9347c2 | ||
|
d62829b09a | ||
|
5dee6b644a | ||
|
77699b4333 | ||
|
f5b025e1f8 | ||
|
a0a7bdc94a | ||
|
15784b25a9 | ||
|
ab84dbf5d4 | ||
|
503ebd4079 | ||
|
785b893001 | ||
|
0a95f79eb7 | ||
|
f3e54d7b77 | ||
|
2b03740f59 | ||
|
dd29ab70a3 | ||
|
f059677e37 | ||
|
d78f6772be | ||
|
49f1cffac0 | ||
|
095898397b | ||
|
54ff648b33 | ||
|
06970df22f | ||
|
7d9203efc8 | ||
|
34be5374da | ||
|
e917285b3e | ||
|
317b7917e6 | ||
|
4ca785f8a6 | ||
|
aea8243575 | ||
|
d891d182b1 | ||
|
cf8888829a | ||
|
8eccc650c2 | ||
|
8fc4f00334 | ||
|
40468b1e90 | ||
|
d56ae49824 | ||
|
4ccbf0466c | ||
|
b5bb6c52ae | ||
|
f0b94fc76d | ||
|
f04627996a | ||
|
3988cf1bc0 | ||
|
b4db2c9955 | ||
|
4a6462c64c | ||
|
c8a90e4939 | ||
|
faa3d2dca7 | ||
|
2167c29b6c | ||
|
165caa696e | ||
|
a057ddec79 | ||
|
1bf09a7cfb | ||
|
c96d6793e9 | ||
|
a47388f920 | ||
|
1948d64c18 | ||
|
5636e80d6b | ||
|
a894547e62 | ||
|
4824795185 | ||
|
432475d32b | ||
|
7a93d34863 | ||
|
93d2074b7b | ||
|
8c9aac9934 | ||
|
da8f508d62 | ||
|
a9a9a3b7ea | ||
|
f963f98785 | ||
|
84b2f6d2df | ||
|
629a77b63c | ||
|
ffa0ad7b11 | ||
|
4da44423ea | ||
|
b772b3b219 | ||
|
e594b058f1 | ||
|
ff279e4625 | ||
|
2218119f3a | ||
|
3d213b0da3 | ||
|
699e7bbabc | ||
|
1afade5cd8 | ||
|
3ff2527fa4 | ||
|
025cf6ec25 | ||
|
440eb0e896 | ||
|
e0bd4cf7a2 | ||
|
acd922f57d | ||
|
539d4ba445 | ||
|
c0f49ce65f | ||
|
3df6c8a9d4 | ||
|
f4cd5f6cb8 | ||
|
e5951f48a3 | ||
|
29d4881c79 | ||
|
a264db526f | ||
|
70bb4c2830 | ||
|
f3d30bd5c7 | ||
|
ca4631e1f8 | ||
|
8f4eab1072 | ||
|
ac4d305132 | ||
|
3d29fda1ea | ||
|
c5c125e0d4 | ||
|
dd255866c2 | ||
|
cca2af2d07 | ||
|
c263265fc3 | ||
|
c28afb57b3 | ||
|
d95c34e467 | ||
|
383dd27625 | ||
|
7a52d8c344 | ||
|
4b6a509a38 | ||
|
4d11f51b66 | ||
|
e6b944d9d2 | ||
|
19288f2436 | ||
|
1bbe5adca1 | ||
|
05920e6f29 | ||
|
53af609b63 | ||
|
146ec0c4aa | ||
|
97474644bf | ||
|
a5fe5a1bb7 | ||
|
6448f2fb83 | ||
|
ce8c38530f | ||
|
0c3be08960 | ||
|
ba4dd40fc4 | ||
|
88bc7e0447 | ||
|
f943e7f14b | ||
|
44886631c9 | ||
|
307be8a531 | ||
|
262978a62c | ||
|
af4a723176 | ||
|
da62168279 | ||
|
1805a94f1f | ||
|
47b8fae685 | ||
|
fba8c442af | ||
|
894065ede8 | ||
|
3c6edb0d6b | ||
|
2a3c79157c | ||
|
3019f5f50a | ||
|
8e75711dec | ||
|
c244b9b7d1 | ||
|
861af016a7 | ||
|
f8d53342c2 | ||
|
8b72be44dd | ||
|
1c8a6cde28 | ||
|
10a19754ce | ||
|
7a851779bb | ||
|
933aa4780e | ||
|
d0a77df607 | ||
|
4fb79db876 | ||
|
a95cfcf5aa | ||
|
ca904f135a | ||
|
384bda605f | ||
|
64695d69a2 | ||
|
478ee5f860 | ||
|
cb91f5f879 | ||
|
82f10bfda6 | ||
|
52028d7261 | ||
|
a6aab7633e | ||
|
14f5e03f1b | ||
|
19b984da60 | ||
|
2ee1a75aac | ||
|
96649fa424 | ||
|
ca2a27c7f8 | ||
|
1f56909754 | ||
|
5aea06bdf0 | ||
|
394cb582d3 | ||
|
173294e694 | ||
|
abd386cc33 | ||
|
0b3c1fca1c | ||
|
6a92d8567c | ||
|
a510ba6576 | ||
|
3ac171699a | ||
|
a8e5b07ec1 | ||
|
cb08fc50fa | ||
|
67af680f81 | ||
|
5b7309a0cb | ||
|
cf5904acdb | ||
|
8fceae7d42 | ||
|
ee5f0d1c78 | ||
|
c1688f029b | ||
|
41799531c3 | ||
|
fa2d0d0bb1 | ||
|
826a3b9bbe | ||
|
b7fc1c0f82 | ||
|
f4bd583c14 | ||
|
71e12c6c83 | ||
|
440caf8ff8 | ||
|
0a9388755b | ||
|
34d599e903 | ||
|
4484a39549 | ||
|
8150742540 | ||
|
1d31e993db | ||
|
668585c6ab | ||
|
3f23b322d6 | ||
|
78ab5197f2 | ||
|
eaac0fa3d3 | ||
|
53ecfe1814 | ||
|
b04ba796eb | ||
|
283a960f2b | ||
|
eb791e93dd | ||
|
bf2cfe23d5 | ||
|
230d47c2ff | ||
|
0242d4d552 | ||
|
4ac733a9d6 | ||
|
9dd4cd3a17 | ||
|
f6033f2696 | ||
|
ab1203ad2d | ||
|
713098981a | ||
|
ccf33f4a84 | ||
|
8d395c3670 | ||
|
be655c46e5 | ||
|
fe12f5f743 | ||
|
e9eba4e0cd | ||
|
33d1985d4b | ||
|
3337b53c75 | ||
|
c6971175f4 | ||
|
a418044a54 | ||
|
dd9e07d29f | ||
|
069eca6dd2 | ||
|
9b3371e368 | ||
|
94fba1fe65 | ||
|
6531bd75df | ||
|
bb18301e2a | ||
|
4a3f4354c7 | ||
|
c9608480ef | ||
|
bd03f325e1 | ||
|
97e156aa42 | ||
|
4e85cfa1b5 | ||
|
e00c2256e8 | ||
|
2f5517cd53 | ||
|
b8204c16e0 | ||
|
a185901e95 | ||
|
30312b5797 | ||
|
74f5b79ee7 | ||
|
4040d82d1b | ||
|
cbfd76e5c0 | ||
|
b27d0335ad | ||
|
4bbca008d9 | ||
|
39fcb67ae0 | ||
|
9d73f9bb7a | ||
|
5e1a5c2175 | ||
|
3ce0b9ccd8 | ||
|
3a31d79945 | ||
|
e4d99d1bd8 | ||
|
23fedafb32 | ||
|
a8758deeb8 | ||
|
1fd52d5145 | ||
|
588e7c5ccd | ||
|
8dfeb9f925 | ||
|
9e49469714 | ||
|
dcd073e711 | ||
|
98be43ec03 | ||
|
5362a9b552 | ||
|
460419b933 | ||
|
de5c3ae498 | ||
|
9dca0ca4bc | ||
|
8fe0322526 | ||
|
db8da8feee | ||
|
0e3ec48b46 | ||
|
0b697ba2ef | ||
|
5f9e49a546 | ||
|
420ce4302c | ||
|
fc6bd59279 | ||
|
cfc53b6ee2 | ||
|
1c3272606c | ||
|
3bc0872412 | ||
|
2fb04f7706 | ||
|
e69facf843 | ||
|
194b08ba83 | ||
|
9ff19058fe | ||
|
18499e0ccf | ||
|
82f66d2993 | ||
|
3946039b09 | ||
|
03709243e8 | ||
|
30d75c98d6 | ||
|
d9bb825c22 | ||
|
b3232c7028 | ||
|
a5a420ce6d | ||
|
8b95ec6e4c | ||
|
a09d313c9e | ||
|
9bdfe6c66a | ||
|
999f90581f | ||
|
a8c599f15f | ||
|
8686d9a488 | ||
|
0b4dbd52ce | ||
|
b1c21fa55e | ||
|
68d1c11c89 | ||
|
a914126716 | ||
|
383ea0fe0b | ||
|
75d0f4e42d | ||
|
4bd5997c88 | ||
|
e60dbac558 | ||
|
05504a3c90 | ||
|
3fc5264af2 | ||
|
3107968a59 | ||
|
7ea8ecf20f | ||
|
09e7c11d3e | ||
|
ff6b65b9e1 | ||
|
b302e35e85 | ||
|
6668812d9f | ||
|
d3b17da7f8 | ||
|
60da43cf2b | ||
|
434321d311 | ||
|
bda980e972 | ||
|
c0c6405943 | ||
|
b8f7dc403d | ||
|
27c0ebc1cd | ||
|
c7b1517ba9 | ||
|
c73f9c2579 | ||
|
64041e30b5 | ||
|
a1caa14611 | ||
|
216ddcf1e4 | ||
|
5741fe2ce5 | ||
|
160b75597d | ||
|
e9ce7d8ed9 | ||
|
138479692a | ||
|
812c8a8570 | ||
|
851919d69e | ||
|
71feaf99c8 | ||
|
4ff9ecac24 | ||
|
8189a53440 | ||
|
c19d461213 | ||
|
09ee2abb73 | ||
|
7b85be29d7 | ||
|
d5c36b841a | ||
|
8f6b35fb7b | ||
|
a02ba103e4 | ||
|
d3f05fb311 | ||
|
1eb8bb2f36 | ||
|
48b530bc04 | ||
|
b952c1711d | ||
|
2c55a75585 | ||
|
c8c0f322f0 | ||
|
c6833e1538 | ||
|
a973d41142 | ||
|
4435f00bf2 | ||
|
74aa13e932 | ||
|
565c64d884 | ||
|
6f2b4849d5 | ||
|
09280fb25d | ||
|
20fb6e8591 | ||
|
b44f18cfbb | ||
|
719d6b03d2 | ||
|
fc7190b55a | ||
|
9644979fbe | ||
|
03bad00517 | ||
|
e2fa788ceb | ||
|
df8851e83a | ||
|
2d471bef0b |
@ -1 +0,0 @@
|
|||||||
llvm-2.2.tar.gz
|
|
70
.gitignore
vendored
Normal file
70
.gitignore
vendored
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
/cfe-*.src.tar.gz
|
||||||
|
/compiler-rt-*.src.tar.gz
|
||||||
|
/lldb-*.src.tar.gz
|
||||||
|
/llvm-*.src.tar.gz
|
||||||
|
/clang-3.4.src.tar.gz
|
||||||
|
/cfe-3.5.0.src.tar.xz
|
||||||
|
/compiler-rt-3.5.0.src.tar.xz
|
||||||
|
/lldb-3.5.0.src.tar.xz
|
||||||
|
/llvm-3.5.0.src.tar.xz
|
||||||
|
/cfe-3.6.0.src.tar.xz
|
||||||
|
/compiler-rt-3.6.0.src.tar.xz
|
||||||
|
/lldb-3.6.0.src.tar.xz
|
||||||
|
/llvm-3.6.0.src.tar.xz
|
||||||
|
/llvm-3.6.1.src.tar.xz
|
||||||
|
/compiler-rt-3.6.1.src.tar.xz
|
||||||
|
/cfe-3.6.1.src.tar.xz
|
||||||
|
/lldb-3.6.1.src.tar.xz
|
||||||
|
/cfe-3.6.2.src.tar.xz
|
||||||
|
/compiler-rt-3.6.2.src.tar.xz
|
||||||
|
/lldb-3.6.2.src.tar.xz
|
||||||
|
/llvm-3.6.2.src.tar.xz
|
||||||
|
/llvm-3.7.0.src.tar.xz
|
||||||
|
/cfe-3.7.0.src.tar.xz
|
||||||
|
/compiler-rt-3.7.0.src.tar.xz
|
||||||
|
/lldb-3.7.0.src.tar.xz
|
||||||
|
/llvm-3.7.1.src.tar.xz
|
||||||
|
/llvm-3.8.0rc2.src.tar.xz
|
||||||
|
/llvm-3.8.0rc3.src.tar.xz
|
||||||
|
/llvm-3.8.0.src.tar.xz
|
||||||
|
/llvm-3.8.1.src.tar.xz
|
||||||
|
/llvm-3.9.0.src.tar.xz
|
||||||
|
/llvm-3.9.1.src.tar.xz
|
||||||
|
/llvm-4.0.0.src.tar.xz
|
||||||
|
/llvm-4.0.1.src.tar.xz
|
||||||
|
/llvm-5.0.0.src.tar.xz
|
||||||
|
/llvm-5.0.1.src.tar.xz
|
||||||
|
/llvm-6.0.0rc1.src.tar.xz
|
||||||
|
/llvm-6.0.0rc2.src.tar.xz
|
||||||
|
/llvm-6.0.0.src.tar.xz
|
||||||
|
/llvm-6.0.1rc1.src.tar.xz
|
||||||
|
/llvm-6.0.1rc2.src.tar.xz
|
||||||
|
/llvm-6.0.1.src.tar.xz
|
||||||
|
/llvm-7.0.0rc1.src.tar.xz
|
||||||
|
/llvm-7.0.0rc2.src.tar.xz
|
||||||
|
/llvm-7.0.0rc3.src.tar.xz
|
||||||
|
/llvm-7.0.0.src.tar.xz
|
||||||
|
/llvm-7.0.1.src.tar.xz
|
||||||
|
/llvm-8.0.0rc1.src.tar.xz
|
||||||
|
/llvm-8.0.0rc2.src.tar.xz
|
||||||
|
/llvm-8.0.0rc3.src.tar.xz
|
||||||
|
/llvm-8.0.0rc4.src.tar.xz
|
||||||
|
/llvm-8.0.0.src.tar.xz
|
||||||
|
/llvm-9.0.0rc2.src.tar.xz
|
||||||
|
/llvm-9.0.0rc3.src.tar.xz
|
||||||
|
/llvm-9.0.0.src.tar.xz
|
||||||
|
/llvm-9.0.1.src.tar.xz
|
||||||
|
/llvm-10.0.0rc1.src.tar.xz
|
||||||
|
/llvm-10.0.0rc1.src.tar.xz.sig
|
||||||
|
/llvm-10.0.0rc2.src.tar.xz
|
||||||
|
/llvm-10.0.0rc2.src.tar.xz.sig
|
||||||
|
/llvm-10.0.0rc3.src.tar.xz
|
||||||
|
/llvm-10.0.0rc3.src.tar.xz.sig
|
||||||
|
/llvm-10.0.0rc4.src.tar.xz
|
||||||
|
/llvm-10.0.0rc4.src.tar.xz.sig
|
||||||
|
/llvm-10.0.0rc5.src.tar.xz
|
||||||
|
/llvm-10.0.0rc5.src.tar.xz.sig
|
||||||
|
/llvm-10.0.0rc6.src.tar.xz
|
||||||
|
/llvm-10.0.0rc6.src.tar.xz.sig
|
||||||
|
/llvm-10.0.0.src.tar.xz
|
||||||
|
/llvm-10.0.0.src.tar.xz.sig
|
@ -0,0 +1,66 @@
|
|||||||
|
From 8f6917ea11bd1bfbfe07f3577756d1c4abfdb916 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Stellard <tstellar@redhat.com>
|
||||||
|
Date: Fri, 6 Sep 2019 11:03:18 -0700
|
||||||
|
Subject: [PATCH] CMake: Split static library exports into their own export
|
||||||
|
file
|
||||||
|
|
||||||
|
---
|
||||||
|
llvm/cmake/modules/AddLLVM.cmake | 6 +++++-
|
||||||
|
llvm/cmake/modules/CMakeLists.txt | 3 +++
|
||||||
|
llvm/cmake/modules/LLVMConfig.cmake.in | 2 ++
|
||||||
|
3 files changed, 10 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
index 619e986..200fc45 100644
|
||||||
|
--- a/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
+++ b/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
@@ -691,7 +691,11 @@ macro(add_llvm_library name)
|
||||||
|
if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
||||||
|
(in_llvm_libs AND "llvm-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS) OR
|
||||||
|
NOT LLVM_DISTRIBUTION_COMPONENTS)
|
||||||
|
- set(export_to_llvmexports EXPORT LLVMExports)
|
||||||
|
+ if (ARG_SHARED)
|
||||||
|
+ set(export_to_llvmexports EXPORT LLVMExports)
|
||||||
|
+ else()
|
||||||
|
+ set(export_to_llvmexports EXPORT LLVMStaticExports)
|
||||||
|
+ endif()
|
||||||
|
set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
diff --git a/llvm/cmake/modules/CMakeLists.txt b/llvm/cmake/modules/CMakeLists.txt
|
||||||
|
index 9cf22b4..dc982d2 100644
|
||||||
|
--- a/llvm/cmake/modules/CMakeLists.txt
|
||||||
|
+++ b/llvm/cmake/modules/CMakeLists.txt
|
||||||
|
@@ -105,6 +105,7 @@ set(LLVM_CONFIG_BINARY_DIR "\${LLVM_INSTALL_PREFIX}")
|
||||||
|
set(LLVM_CONFIG_TOOLS_BINARY_DIR "\${LLVM_INSTALL_PREFIX}/bin")
|
||||||
|
set(LLVM_CONFIG_EXPORTS_FILE "\${LLVM_CMAKE_DIR}/LLVMExports.cmake")
|
||||||
|
set(LLVM_CONFIG_EXPORTS "${LLVM_EXPORTS}")
|
||||||
|
+set(LLVM_CONFIG_STATIC_EXPORTS_FILE "\${LLVM_CMAKE_DIR}/LLVMStaticExports.cmake")
|
||||||
|
configure_file(
|
||||||
|
LLVMConfig.cmake.in
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/LLVMConfig.cmake
|
||||||
|
@@ -121,6 +122,8 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
||||||
|
if(llvm_has_exports)
|
||||||
|
install(EXPORT LLVMExports DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}
|
||||||
|
COMPONENT cmake-exports)
|
||||||
|
+ install(EXPORT LLVMStaticExports DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}
|
||||||
|
+ COMPONENT cmake-exports)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
|
||||||
|
index 536031f..6ef54a0 100644
|
||||||
|
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
|
||||||
|
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
|
||||||
|
@@ -89,6 +89,8 @@ if(NOT TARGET LLVMSupport)
|
||||||
|
set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")
|
||||||
|
include("@LLVM_CONFIG_EXPORTS_FILE@")
|
||||||
|
@llvm_config_include_buildtree_only_exports@
|
||||||
|
+
|
||||||
|
+ include("@LLVM_CONFIG_STATIC_EXPORTS_FILE@" OPTIONAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# By creating intrinsics_gen here, subprojects that depend on LLVM's
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
@ -0,0 +1,65 @@
|
|||||||
|
From 9d496e978f59e153bb76e92229d5a524d92dee04 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Stellard <tstellar@redhat.com>
|
||||||
|
Date: Tue, 10 Sep 2019 13:33:48 -0700
|
||||||
|
Subject: [PATCH] CMake: Split test binary exports into their own export file
|
||||||
|
|
||||||
|
---
|
||||||
|
llvm/cmake/modules/AddLLVM.cmake | 7 ++++++-
|
||||||
|
llvm/cmake/modules/CMakeLists.txt | 3 +++
|
||||||
|
llvm/cmake/modules/LLVMConfig.cmake.in | 1 +
|
||||||
|
3 files changed, 10 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
index 200fc45..9eec7a7 100644
|
||||||
|
--- a/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
+++ b/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
@@ -953,7 +953,12 @@ macro(add_llvm_utility name)
|
||||||
|
set(export_to_llvmexports)
|
||||||
|
if (${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
||||||
|
NOT LLVM_DISTRIBUTION_COMPONENTS)
|
||||||
|
- set(export_to_llvmexports EXPORT LLVMExports)
|
||||||
|
+ if (${name} STREQUAL "not" OR ${name} STREQUAL "count" OR
|
||||||
|
+ ${name} STREQUAL "yaml-bench" OR ${name} STREQUAL "lli-child-target")
|
||||||
|
+ set(export_to_llvmexports EXPORT LLVMTestExports)
|
||||||
|
+ else()
|
||||||
|
+ set(export_to_llvmexports EXPORT LLVMExports)
|
||||||
|
+ endif()
|
||||||
|
set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
diff --git a/llvm/cmake/modules/CMakeLists.txt b/llvm/cmake/modules/CMakeLists.txt
|
||||||
|
index dc982d2..c861f45 100644
|
||||||
|
--- a/llvm/cmake/modules/CMakeLists.txt
|
||||||
|
+++ b/llvm/cmake/modules/CMakeLists.txt
|
||||||
|
@@ -106,6 +106,7 @@ set(LLVM_CONFIG_TOOLS_BINARY_DIR "\${LLVM_INSTALL_PREFIX}/bin")
|
||||||
|
set(LLVM_CONFIG_EXPORTS_FILE "\${LLVM_CMAKE_DIR}/LLVMExports.cmake")
|
||||||
|
set(LLVM_CONFIG_EXPORTS "${LLVM_EXPORTS}")
|
||||||
|
set(LLVM_CONFIG_STATIC_EXPORTS_FILE "\${LLVM_CMAKE_DIR}/LLVMStaticExports.cmake")
|
||||||
|
+set(LLVM_CONFIG_TEST_EXPORTS_FILE "\${LLVM_CMAKE_DIR}/LLVMTestExports.cmake")
|
||||||
|
configure_file(
|
||||||
|
LLVMConfig.cmake.in
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/LLVMConfig.cmake
|
||||||
|
@@ -124,6 +125,8 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
||||||
|
COMPONENT cmake-exports)
|
||||||
|
install(EXPORT LLVMStaticExports DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}
|
||||||
|
COMPONENT cmake-exports)
|
||||||
|
+ install(EXPORT LLVMTestExports DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}
|
||||||
|
+ COMPONENT cmake-exports)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
|
||||||
|
index 6ef54a0..d81b09a 100644
|
||||||
|
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
|
||||||
|
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
|
||||||
|
@@ -91,6 +91,7 @@ if(NOT TARGET LLVMSupport)
|
||||||
|
@llvm_config_include_buildtree_only_exports@
|
||||||
|
|
||||||
|
include("@LLVM_CONFIG_STATIC_EXPORTS_FILE@" OPTIONAL)
|
||||||
|
+ include("@LLVM_CONFIG_TEST_EXPORTS_FILE@" OPTIONAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# By creating intrinsics_gen here, subprojects that depend on LLVM's
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
|||||||
# Makefile for source rpm: llvm
|
|
||||||
# $Id$
|
|
||||||
NAME := llvm
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
12
gating.yaml
Normal file
12
gating.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_testing
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: org.centos.prod.ci.pipeline.allpackages-build.package.test.functional.complete}
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_stable
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: org.centos.prod.ci.pipeline.allpackages-build.package.test.functional.complete}
|
52
hans-gpg-key.asc
Normal file
52
hans-gpg-key.asc
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
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
|
||||||
|
67H2IH//2sf8dw==
|
||||||
|
=ADVe
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
17
lit.fedora.cfg.py
Normal file
17
lit.fedora.cfg.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
config.llvm_tools_dir = '/usr/bin'
|
||||||
|
config.llvm_shlib_dir = '%(llvm_shlib_dir)s' % lit_config.params
|
||||||
|
|
||||||
|
if hasattr(config, 'host_triple'):
|
||||||
|
# This means we are running lit regression tests
|
||||||
|
|
||||||
|
# Regression tests write output to this directory, so we need to be able to specify
|
||||||
|
# a temp directory when invoking lit. e.g. lit -Dllvm_obj_root=/tmp/lit
|
||||||
|
config.llvm_obj_root = "%(llvm_obj_root)s" % lit_config.params
|
||||||
|
lit_config.load_config(config, '%(llvm_test_root)s/lit.cfg.py' % lit_config.params)
|
||||||
|
else:
|
||||||
|
# This means we are running lit unit tests
|
||||||
|
|
||||||
|
# For unit tests, llvm_obj_root is used to find the unit test binaries.
|
||||||
|
config.llvm_obj_root = '%(llvm_unittest_bindir)s' % lit_config.params
|
||||||
|
lit_config.load_config(config, '%(llvm_test_root)s/Unit/lit.cfg.py' % lit_config.params)
|
@ -1,20 +0,0 @@
|
|||||||
diff -r d001baf31c4b tools/llvm-config/Makefile
|
|
||||||
--- a/tools/llvm-config/Makefile Sat Jan 19 21:47:39 2008 -0800
|
|
||||||
+++ b/tools/llvm-config/Makefile Sat Jan 19 21:49:20 2008 -0800
|
|
||||||
@@ -57,11 +57,11 @@ llvm-config.in: $(ConfigInIn) $(ConfigSt
|
|
||||||
# Build our final script.
|
|
||||||
$(ToolDir)/llvm-config: llvm-config.in $(FinalLibDeps)
|
|
||||||
$(Echo) "Building llvm-config script."
|
|
||||||
- $(Verb) $(ECHO) 's,@LLVM_CPPFLAGS@,$(SUB_CPPFLAGS),' > temp.sed
|
|
||||||
- $(Verb) $(ECHO) 's,@LLVM_CFLAGS@,$(SUB_CFLAGS),' >> temp.sed
|
|
||||||
- $(Verb) $(ECHO) 's,@LLVM_CXXFLAGS@,$(SUB_CXXFLAGS),' >> temp.sed
|
|
||||||
- $(Verb) $(ECHO) 's,@LLVM_LDFLAGS@,$(SUB_LDFLAGS),' >> temp.sed
|
|
||||||
- $(Verb) $(ECHO) 's,@LLVM_BUILDMODE@,$(BuildMode),' >> temp.sed
|
|
||||||
+ $(Verb) $(ECHO) 's!@LLVM_CPPFLAGS@!$(SUB_CPPFLAGS)!' > temp.sed
|
|
||||||
+ $(Verb) $(ECHO) 's!@LLVM_CFLAGS@!$(SUB_CFLAGS)!' >> temp.sed
|
|
||||||
+ $(Verb) $(ECHO) 's!@LLVM_CXXFLAGS@!$(SUB_CXXFLAGS)!' >> temp.sed
|
|
||||||
+ $(Verb) $(ECHO) 's!@LLVM_LDFLAGS@!$(SUB_LDFLAGS)!' >> temp.sed
|
|
||||||
+ $(Verb) $(ECHO) 's!@LLVM_BUILDMODE@!$(BuildMode)!' >> temp.sed
|
|
||||||
$(Verb) $(SED) -f temp.sed < $< > $@
|
|
||||||
$(Verb) $(RM) temp.sed
|
|
||||||
$(Verb) cat $(FinalLibDeps) >> $@
|
|
@ -1,797 +0,0 @@
|
|||||||
diff -r ba4f1d4ee0d4 include/llvm/ADT/BitVector.h
|
|
||||||
--- a/include/llvm/ADT/BitVector.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/ADT/BitVector.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -16,8 +16,9 @@
|
|
||||||
|
|
||||||
#include "llvm/Support/MathExtras.h"
|
|
||||||
#include <algorithm>
|
|
||||||
+#include <cassert>
|
|
||||||
#include <cstdlib>
|
|
||||||
-#include <cassert>
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/ADT/DenseMap.h
|
|
||||||
--- a/include/llvm/ADT/DenseMap.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/ADT/DenseMap.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -313,7 +313,7 @@
|
|
||||||
NumEntries = 0;
|
|
||||||
NumTombstones = 0;
|
|
||||||
NumBuckets = InitBuckets;
|
|
||||||
- assert(InitBuckets && (InitBuckets & InitBuckets-1) == 0 &&
|
|
||||||
+ assert(InitBuckets && (InitBuckets & (InitBuckets-1)) == 0 &&
|
|
||||||
"# initial buckets must be a power of two!");
|
|
||||||
Buckets = reinterpret_cast<BucketT*>(new char[sizeof(BucketT)*InitBuckets]);
|
|
||||||
// Initialize all the keys to EmptyKey.
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/ADT/ilist
|
|
||||||
--- a/include/llvm/ADT/ilist Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/ADT/ilist Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -40,6 +40,7 @@
|
|
||||||
|
|
||||||
#include "llvm/ADT/iterator"
|
|
||||||
#include <cassert>
|
|
||||||
+#include <cstdlib>
|
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/Analysis/LoopInfo.h
|
|
||||||
--- a/include/llvm/Analysis/LoopInfo.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/Analysis/LoopInfo.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -397,13 +397,14 @@
|
|
||||||
if (BranchInst *BI = dyn_cast<BranchInst>(BackedgeBlock->getTerminator()))
|
|
||||||
if (BI->isConditional()) {
|
|
||||||
if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) {
|
|
||||||
- if (ICI->getOperand(0) == Inc)
|
|
||||||
+ if (ICI->getOperand(0) == Inc) {
|
|
||||||
if (BI->getSuccessor(0) == getHeader()) {
|
|
||||||
if (ICI->getPredicate() == ICmpInst::ICMP_NE)
|
|
||||||
return ICI->getOperand(1);
|
|
||||||
} else if (ICI->getPredicate() == ICmpInst::ICMP_EQ) {
|
|
||||||
return ICI->getOperand(1);
|
|
||||||
}
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/Analysis/ScalarEvolutionExpressions.h
|
|
||||||
--- a/include/llvm/Analysis/ScalarEvolutionExpressions.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -252,11 +252,12 @@
|
|
||||||
virtual bool hasComputableLoopEvolution(const Loop *L) const {
|
|
||||||
bool HasVarying = false;
|
|
||||||
for (unsigned i = 0, e = getNumOperands(); i != e; ++i)
|
|
||||||
- if (!getOperand(i)->isLoopInvariant(L))
|
|
||||||
+ if (!getOperand(i)->isLoopInvariant(L)) {
|
|
||||||
if (getOperand(i)->hasComputableLoopEvolution(L))
|
|
||||||
HasVarying = true;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
+ }
|
|
||||||
return HasVarying;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/CodeGen/MachineRegisterInfo.h
|
|
||||||
--- a/include/llvm/CodeGen/MachineRegisterInfo.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/CodeGen/MachineRegisterInfo.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -207,8 +207,8 @@
|
|
||||||
// If the first node isn't one we're interested in, advance to one that
|
|
||||||
// we are interested in.
|
|
||||||
if (op) {
|
|
||||||
- if (!ReturnUses && op->isUse() ||
|
|
||||||
- !ReturnDefs && op->isDef())
|
|
||||||
+ if ((!ReturnUses && op->isUse()) ||
|
|
||||||
+ (!ReturnDefs && op->isDef()))
|
|
||||||
++*this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -236,8 +236,8 @@
|
|
||||||
Op = Op->getNextOperandForReg();
|
|
||||||
|
|
||||||
// If this is an operand we don't care about, skip it.
|
|
||||||
- while (Op && (!ReturnUses && Op->isUse() ||
|
|
||||||
- !ReturnDefs && Op->isDef()))
|
|
||||||
+ while (Op && ((!ReturnUses && Op->isUse()) ||
|
|
||||||
+ (!ReturnDefs && Op->isDef())))
|
|
||||||
Op = Op->getNextOperandForReg();
|
|
||||||
|
|
||||||
return *this;
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/CodeGen/SelectionDAGNodes.h
|
|
||||||
--- a/include/llvm/CodeGen/SelectionDAGNodes.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -802,8 +802,8 @@
|
|
||||||
static inline SDOperand getEmptyKey() { return SDOperand((SDNode*)-1, -1U); }
|
|
||||||
static inline SDOperand getTombstoneKey() { return SDOperand((SDNode*)-1, 0);}
|
|
||||||
static unsigned getHashValue(const SDOperand &Val) {
|
|
||||||
- return (unsigned)((uintptr_t)Val.Val >> 4) ^
|
|
||||||
- (unsigned)((uintptr_t)Val.Val >> 9) + Val.ResNo;
|
|
||||||
+ return ((unsigned)((uintptr_t)Val.Val >> 4) ^
|
|
||||||
+ (unsigned)((uintptr_t)Val.Val >> 9)) + Val.ResNo;
|
|
||||||
}
|
|
||||||
static bool isEqual(const SDOperand &LHS, const SDOperand &RHS) {
|
|
||||||
return LHS == RHS;
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/LinkTimeOptimizer.h
|
|
||||||
--- a/include/llvm/LinkTimeOptimizer.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/LinkTimeOptimizer.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -16,6 +16,7 @@
|
|
||||||
#define __LTO_H__
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
+#include <cstring>
|
|
||||||
#include <vector>
|
|
||||||
#include <set>
|
|
||||||
#include <llvm/ADT/hash_map>
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/Support/Streams.h
|
|
||||||
--- a/include/llvm/Support/Streams.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/Support/Streams.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -16,6 +16,7 @@
|
|
||||||
#define LLVM_SUPPORT_STREAMS_H
|
|
||||||
|
|
||||||
#include <iosfwd>
|
|
||||||
+#include <ostream>
|
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/Target/SubtargetFeature.h
|
|
||||||
--- a/include/llvm/Target/SubtargetFeature.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/Target/SubtargetFeature.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -21,6 +21,7 @@
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <iosfwd>
|
|
||||||
+#include <cstring>
|
|
||||||
#include "llvm/Support/DataTypes.h"
|
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
diff -r ba4f1d4ee0d4 include/llvm/Target/TargetJITInfo.h
|
|
||||||
--- a/include/llvm/Target/TargetJITInfo.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/include/llvm/Target/TargetJITInfo.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -17,8 +17,9 @@
|
|
||||||
#ifndef LLVM_TARGET_TARGETJITINFO_H
|
|
||||||
#define LLVM_TARGET_TARGETJITINFO_H
|
|
||||||
|
|
||||||
+#include <vector>
|
|
||||||
#include <cassert>
|
|
||||||
-#include <vector>
|
|
||||||
+#include "llvm/Support/DataTypes.h"
|
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
class Function;
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Analysis/Analysis.cpp
|
|
||||||
--- a/lib/Analysis/Analysis.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Analysis/Analysis.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -10,6 +10,7 @@
|
|
||||||
#include "llvm-c/Analysis.h"
|
|
||||||
#include "llvm/Analysis/Verifier.h"
|
|
||||||
#include <fstream>
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Analysis/IPA/Andersens.cpp
|
|
||||||
--- a/lib/Analysis/IPA/Andersens.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Analysis/IPA/Andersens.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -139,7 +139,7 @@
|
|
||||||
|
|
||||||
Constraint(ConstraintType Ty, unsigned D, unsigned S, unsigned O = 0)
|
|
||||||
: Type(Ty), Dest(D), Src(S), Offset(O) {
|
|
||||||
- assert(Offset == 0 || Ty != AddressOf &&
|
|
||||||
+ assert((Offset == 0 || Ty != AddressOf) &&
|
|
||||||
"Offset is illegal on addressof constraints");
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1931,7 +1931,7 @@
|
|
||||||
|
|
||||||
C.Src = FindEquivalentNode(RHSNode, RHSLabel);
|
|
||||||
C.Dest = FindEquivalentNode(FindNode(LHSNode), LHSLabel);
|
|
||||||
- if (C.Src == C.Dest && C.Type == Constraint::Copy
|
|
||||||
+ if ((C.Src == C.Dest && C.Type == Constraint::Copy)
|
|
||||||
|| Seen.count(C))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Analysis/IPA/GlobalsModRef.cpp
|
|
||||||
--- a/lib/Analysis/IPA/GlobalsModRef.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Analysis/IPA/GlobalsModRef.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -115,11 +115,12 @@
|
|
||||||
/// case the most generic behavior of this function should be returned.
|
|
||||||
virtual ModRefBehavior getModRefBehavior(Function *F, CallSite CS,
|
|
||||||
std::vector<PointerAccessInfo> *Info) {
|
|
||||||
- if (FunctionRecord *FR = getFunctionInfo(F))
|
|
||||||
+ if (FunctionRecord *FR = getFunctionInfo(F)) {
|
|
||||||
if (FR->FunctionEffect == 0)
|
|
||||||
return DoesNotAccessMemory;
|
|
||||||
else if ((FR->FunctionEffect & Mod) == 0)
|
|
||||||
return OnlyReadsMemory;
|
|
||||||
+ }
|
|
||||||
return AliasAnalysis::getModRefBehavior(F, CS, Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Analysis/ScalarEvolution.cpp
|
|
||||||
--- a/lib/Analysis/ScalarEvolution.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Analysis/ScalarEvolution.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -1994,13 +1994,14 @@
|
|
||||||
Instruction *I = dyn_cast<Instruction>(V);
|
|
||||||
if (I == 0 || !L->contains(I->getParent())) return 0;
|
|
||||||
|
|
||||||
- if (PHINode *PN = dyn_cast<PHINode>(I))
|
|
||||||
+ if (PHINode *PN = dyn_cast<PHINode>(I)) {
|
|
||||||
if (L->getHeader() == I->getParent())
|
|
||||||
return PN;
|
|
||||||
else
|
|
||||||
// We don't currently keep track of the control flow needed to evaluate
|
|
||||||
// PHIs, so we cannot handle PHIs inside of loops.
|
|
||||||
return 0;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
// If we won't be able to constant fold this expression even if the operands
|
|
||||||
// are constants, return early.
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Archive/Archive.cpp
|
|
||||||
--- a/lib/Archive/Archive.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Archive/Archive.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -18,6 +18,8 @@
|
|
||||||
#include "llvm/Module.h"
|
|
||||||
#include "llvm/Support/MemoryBuffer.h"
|
|
||||||
#include "llvm/System/Process.h"
|
|
||||||
+#include <memory>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
// getMemberSize - compute the actual physical size of the file member as seen
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Archive/ArchiveInternals.h
|
|
||||||
--- a/lib/Archive/ArchiveInternals.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Archive/ArchiveInternals.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -17,6 +17,8 @@
|
|
||||||
#include "llvm/Bitcode/Archive.h"
|
|
||||||
#include "llvm/System/TimeValue.h"
|
|
||||||
#include "llvm/ADT/StringExtras.h"
|
|
||||||
+
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
#define ARFILE_MAGIC "!<arch>\n" ///< magic string
|
|
||||||
#define ARFILE_MAGIC_LEN (sizeof(ARFILE_MAGIC)-1) ///< length of magic string
|
|
||||||
diff -r ba4f1d4ee0d4 lib/AsmParser/LLLexer.cpp
|
|
||||||
--- a/lib/AsmParser/LLLexer.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/AsmParser/LLLexer.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -18,6 +18,8 @@
|
|
||||||
|
|
||||||
#include <list>
|
|
||||||
#include "llvmAsmParser.h"
|
|
||||||
+
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
diff -r ba4f1d4ee0d4 lib/AsmParser/Parser.cpp
|
|
||||||
--- a/lib/AsmParser/Parser.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/AsmParser/Parser.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -14,6 +14,7 @@
|
|
||||||
#include "ParserInternals.h"
|
|
||||||
#include "llvm/Module.h"
|
|
||||||
#include "llvm/Support/MemoryBuffer.h"
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Bitcode/Reader/BitReader.cpp
|
|
||||||
--- a/lib/Bitcode/Reader/BitReader.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Bitcode/Reader/BitReader.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -11,6 +11,7 @@
|
|
||||||
#include "llvm/Bitcode/ReaderWriter.h"
|
|
||||||
#include "llvm/Support/MemoryBuffer.h"
|
|
||||||
#include <string>
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/CodeGen/MachOWriter.cpp
|
|
||||||
--- a/lib/CodeGen/MachOWriter.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/CodeGen/MachOWriter.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -38,6 +38,7 @@
|
|
||||||
#include "llvm/Support/OutputBuffer.h"
|
|
||||||
#include "llvm/Support/Streams.h"
|
|
||||||
#include <algorithm>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
/// AddMachOWriter - Concrete function to add the Mach-O writer to the function
|
|
||||||
diff -r ba4f1d4ee0d4 lib/ExecutionEngine/ExecutionEngine.cpp
|
|
||||||
--- a/lib/ExecutionEngine/ExecutionEngine.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -26,7 +26,8 @@
|
|
||||||
#include "llvm/System/DynamicLibrary.h"
|
|
||||||
#include "llvm/System/Host.h"
|
|
||||||
#include "llvm/Target/TargetData.h"
|
|
||||||
-#include <math.h>
|
|
||||||
+#include <cmath>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
STATISTIC(NumInitBytes, "Number of bytes of global vars initialized");
|
|
||||||
diff -r ba4f1d4ee0d4 lib/ExecutionEngine/ExecutionEngineBindings.cpp
|
|
||||||
--- a/lib/ExecutionEngine/ExecutionEngineBindings.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/ExecutionEngine/ExecutionEngineBindings.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -15,6 +15,7 @@
|
|
||||||
#include "llvm-c/ExecutionEngine.h"
|
|
||||||
#include "llvm/ExecutionEngine/GenericValue.h"
|
|
||||||
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/ExecutionEngine/Interpreter/Execution.cpp
|
|
||||||
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -23,8 +23,9 @@
|
|
||||||
#include "llvm/ADT/Statistic.h"
|
|
||||||
#include "llvm/Support/Debug.h"
|
|
||||||
#include "llvm/Support/MathExtras.h"
|
|
||||||
+#include <algorithm>
|
|
||||||
#include <cmath>
|
|
||||||
-#include <algorithm>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
STATISTIC(NumDynamicInsts, "Number of dynamic instructions executed");
|
|
||||||
diff -r ba4f1d4ee0d4 lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
|
|
||||||
--- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -29,6 +29,7 @@
|
|
||||||
#include <csignal>
|
|
||||||
#include <map>
|
|
||||||
#include <cmath>
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
#ifdef __linux__
|
|
||||||
#include <cxxabi.h>
|
|
||||||
diff -r ba4f1d4ee0d4 lib/ExecutionEngine/Interpreter/Interpreter.cpp
|
|
||||||
--- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -18,6 +18,7 @@
|
|
||||||
#include "llvm/DerivedTypes.h"
|
|
||||||
#include "llvm/Module.h"
|
|
||||||
#include "llvm/ModuleProvider.h"
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
static struct RegisterInterp {
|
|
||||||
diff -r ba4f1d4ee0d4 lib/ExecutionEngine/JIT/JITMemoryManager.cpp
|
|
||||||
--- a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -17,6 +17,8 @@
|
|
||||||
#include <map>
|
|
||||||
#include <vector>
|
|
||||||
#include <cassert>
|
|
||||||
+#include <cstdlib>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Support/CommandLine.cpp
|
|
||||||
--- a/lib/Support/CommandLine.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Support/CommandLine.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -29,6 +29,7 @@
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <cerrno>
|
|
||||||
#include <cstring>
|
|
||||||
+#include <climits>
|
|
||||||
using namespace llvm;
|
|
||||||
using namespace cl;
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Support/FileUtilities.cpp
|
|
||||||
--- a/lib/Support/FileUtilities.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Support/FileUtilities.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -16,6 +16,7 @@
|
|
||||||
#include "llvm/System/Path.h"
|
|
||||||
#include "llvm/System/MappedFile.h"
|
|
||||||
#include "llvm/ADT/StringExtras.h"
|
|
||||||
+#include <cstdlib>
|
|
||||||
#include <cstring>
|
|
||||||
#include <cctype>
|
|
||||||
using namespace llvm;
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Support/FoldingSet.cpp
|
|
||||||
--- a/lib/Support/FoldingSet.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Support/FoldingSet.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -18,6 +18,7 @@
|
|
||||||
#include "llvm/ADT/APFloat.h"
|
|
||||||
#include "llvm/Support/MathExtras.h"
|
|
||||||
#include <cassert>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Support/Statistic.cpp
|
|
||||||
--- a/lib/Support/Statistic.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Support/Statistic.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -28,6 +28,7 @@
|
|
||||||
#include "llvm/ADT/StringExtras.h"
|
|
||||||
#include <algorithm>
|
|
||||||
#include <ostream>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
// GetLibSupportInfoOutputFile - Return a file stream to print our output on.
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Support/StringExtras.cpp
|
|
||||||
--- a/lib/Support/StringExtras.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Support/StringExtras.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -12,6 +12,7 @@
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
#include "llvm/ADT/StringExtras.h"
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
/// getToken - This function extracts one token from source, ignoring any
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Target/Sparc/SparcAsmPrinter.cpp
|
|
||||||
--- a/lib/Target/Sparc/SparcAsmPrinter.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Target/Sparc/SparcAsmPrinter.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -31,6 +31,7 @@
|
|
||||||
#include "llvm/Support/CommandLine.h"
|
|
||||||
#include "llvm/Support/MathExtras.h"
|
|
||||||
#include <cctype>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
STATISTIC(EmittedInsts, "Number of machine instrs printed");
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Target/X86/X86JITInfo.cpp
|
|
||||||
--- a/lib/Target/X86/X86JITInfo.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Target/X86/X86JITInfo.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -18,6 +18,7 @@
|
|
||||||
#include "llvm/CodeGen/MachineCodeEmitter.h"
|
|
||||||
#include "llvm/Config/alloca.h"
|
|
||||||
#include <cstdlib>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Transforms/IPO/SimplifyLibCalls.cpp
|
|
||||||
--- a/lib/Transforms/IPO/SimplifyLibCalls.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -30,6 +30,7 @@
|
|
||||||
#include "llvm/Support/Debug.h"
|
|
||||||
#include "llvm/Target/TargetData.h"
|
|
||||||
#include "llvm/Transforms/IPO.h"
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
/// This statistic keeps track of the total number of library calls that have
|
|
||||||
diff -r ba4f1d4ee0d4 lib/Transforms/Scalar/LoopUnroll.cpp
|
|
||||||
--- a/lib/Transforms/Scalar/LoopUnroll.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/Transforms/Scalar/LoopUnroll.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -36,8 +36,9 @@
|
|
||||||
#include "llvm/ADT/STLExtras.h"
|
|
||||||
#include "llvm/ADT/SmallPtrSet.h"
|
|
||||||
#include "llvm/IntrinsicInst.h"
|
|
||||||
+#include <algorithm>
|
|
||||||
+#include <climits>
|
|
||||||
#include <cstdio>
|
|
||||||
-#include <algorithm>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
STATISTIC(NumCompletelyUnrolled, "Number of loops completely unrolled");
|
|
||||||
diff -r ba4f1d4ee0d4 lib/VMCore/AutoUpgrade.cpp
|
|
||||||
--- a/lib/VMCore/AutoUpgrade.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/VMCore/AutoUpgrade.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -18,6 +18,7 @@
|
|
||||||
#include "llvm/Instructions.h"
|
|
||||||
#include "llvm/ParameterAttributes.h"
|
|
||||||
#include "llvm/Intrinsics.h"
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/VMCore/ConstantFold.cpp
|
|
||||||
--- a/lib/VMCore/ConstantFold.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/VMCore/ConstantFold.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -658,25 +658,28 @@
|
|
||||||
case Instruction::Xor:
|
|
||||||
return ConstantInt::get(C1V ^ C2V);
|
|
||||||
case Instruction::Shl:
|
|
||||||
- if (uint32_t shiftAmt = C2V.getZExtValue())
|
|
||||||
+ if (uint32_t shiftAmt = C2V.getZExtValue()) {
|
|
||||||
if (shiftAmt < C1V.getBitWidth())
|
|
||||||
return ConstantInt::get(C1V.shl(shiftAmt));
|
|
||||||
else
|
|
||||||
return UndefValue::get(C1->getType()); // too big shift is undef
|
|
||||||
+ }
|
|
||||||
return const_cast<ConstantInt*>(CI1); // Zero shift is identity
|
|
||||||
case Instruction::LShr:
|
|
||||||
- if (uint32_t shiftAmt = C2V.getZExtValue())
|
|
||||||
+ if (uint32_t shiftAmt = C2V.getZExtValue()) {
|
|
||||||
if (shiftAmt < C1V.getBitWidth())
|
|
||||||
return ConstantInt::get(C1V.lshr(shiftAmt));
|
|
||||||
else
|
|
||||||
return UndefValue::get(C1->getType()); // too big shift is undef
|
|
||||||
+ }
|
|
||||||
return const_cast<ConstantInt*>(CI1); // Zero shift is identity
|
|
||||||
case Instruction::AShr:
|
|
||||||
- if (uint32_t shiftAmt = C2V.getZExtValue())
|
|
||||||
+ if (uint32_t shiftAmt = C2V.getZExtValue()) {
|
|
||||||
if (shiftAmt < C1V.getBitWidth())
|
|
||||||
return ConstantInt::get(C1V.ashr(shiftAmt));
|
|
||||||
else
|
|
||||||
return UndefValue::get(C1->getType()); // too big shift is undef
|
|
||||||
+ }
|
|
||||||
return const_cast<ConstantInt*>(CI1); // Zero shift is identity
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1081,18 +1084,20 @@
|
|
||||||
// Ok, we ran out of things they have in common. If any leftovers
|
|
||||||
// are non-zero then we have a difference, otherwise we are equal.
|
|
||||||
for (; i < CE1->getNumOperands(); ++i)
|
|
||||||
- if (!CE1->getOperand(i)->isNullValue())
|
|
||||||
+ if (!CE1->getOperand(i)->isNullValue()) {
|
|
||||||
if (isa<ConstantInt>(CE1->getOperand(i)))
|
|
||||||
return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT;
|
|
||||||
else
|
|
||||||
return ICmpInst::BAD_ICMP_PREDICATE; // Might be equal.
|
|
||||||
+ }
|
|
||||||
|
|
||||||
for (; i < CE2->getNumOperands(); ++i)
|
|
||||||
- if (!CE2->getOperand(i)->isNullValue())
|
|
||||||
+ if (!CE2->getOperand(i)->isNullValue()) {
|
|
||||||
if (isa<ConstantInt>(CE2->getOperand(i)))
|
|
||||||
return isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT;
|
|
||||||
else
|
|
||||||
return ICmpInst::BAD_ICMP_PREDICATE; // Might be equal.
|
|
||||||
+ }
|
|
||||||
return ICmpInst::ICMP_EQ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1121,20 +1126,22 @@
|
|
||||||
if (C1->isNullValue()) {
|
|
||||||
if (const GlobalValue *GV = dyn_cast<GlobalValue>(C2))
|
|
||||||
// Don't try to evaluate aliases. External weak GV can be null.
|
|
||||||
- if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage())
|
|
||||||
+ if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage()) {
|
|
||||||
if (pred == ICmpInst::ICMP_EQ)
|
|
||||||
return ConstantInt::getFalse();
|
|
||||||
else if (pred == ICmpInst::ICMP_NE)
|
|
||||||
return ConstantInt::getTrue();
|
|
||||||
+ }
|
|
||||||
// icmp eq/ne(GV,null) -> false/true
|
|
||||||
} else if (C2->isNullValue()) {
|
|
||||||
if (const GlobalValue *GV = dyn_cast<GlobalValue>(C1))
|
|
||||||
// Don't try to evaluate aliases. External weak GV can be null.
|
|
||||||
- if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage())
|
|
||||||
+ if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage()) {
|
|
||||||
if (pred == ICmpInst::ICMP_EQ)
|
|
||||||
return ConstantInt::getFalse();
|
|
||||||
else if (pred == ICmpInst::ICMP_NE)
|
|
||||||
return ConstantInt::getTrue();
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isa<ConstantInt>(C1) && isa<ConstantInt>(C2)) {
|
|
||||||
diff -r ba4f1d4ee0d4 lib/VMCore/Core.cpp
|
|
||||||
--- a/lib/VMCore/Core.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/VMCore/Core.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
#include "llvm/Support/MemoryBuffer.h"
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstdlib>
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 lib/VMCore/Instructions.cpp
|
|
||||||
--- a/lib/VMCore/Instructions.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/VMCore/Instructions.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -182,11 +182,12 @@
|
|
||||||
///
|
|
||||||
Value *PHINode::hasConstantValue(bool AllowNonDominatingInstruction) const {
|
|
||||||
// If the PHI node only has one incoming value, eliminate the PHI node...
|
|
||||||
- if (getNumIncomingValues() == 1)
|
|
||||||
+ if (getNumIncomingValues() == 1) {
|
|
||||||
if (getIncomingValue(0) != this) // not X = phi X
|
|
||||||
return getIncomingValue(0);
|
|
||||||
else
|
|
||||||
return UndefValue::get(getType()); // Self cycle is dead.
|
|
||||||
+ }
|
|
||||||
|
|
||||||
// Otherwise if all of the incoming values are the same for the PHI, replace
|
|
||||||
// the PHI node with the incoming value.
|
|
||||||
@@ -194,13 +195,14 @@
|
|
||||||
Value *InVal = 0;
|
|
||||||
bool HasUndefInput = false;
|
|
||||||
for (unsigned i = 0, e = getNumIncomingValues(); i != e; ++i)
|
|
||||||
- if (isa<UndefValue>(getIncomingValue(i)))
|
|
||||||
+ if (isa<UndefValue>(getIncomingValue(i))) {
|
|
||||||
HasUndefInput = true;
|
|
||||||
- else if (getIncomingValue(i) != this) // Not the PHI node itself...
|
|
||||||
+ } else if (getIncomingValue(i) != this) { // Not the PHI node itself...
|
|
||||||
if (InVal && getIncomingValue(i) != InVal)
|
|
||||||
return 0; // Not the same, bail out.
|
|
||||||
else
|
|
||||||
InVal = getIncomingValue(i);
|
|
||||||
+ }
|
|
||||||
|
|
||||||
// The only case that could cause InVal to be null is if we have a PHI node
|
|
||||||
// that only has entries for itself. In this case, there is no entry into the
|
|
||||||
@@ -441,8 +443,8 @@
|
|
||||||
cast<FunctionType>(cast<PointerType>(Fn->getType())->getElementType());
|
|
||||||
FTy = FTy; // silence warning.
|
|
||||||
|
|
||||||
- assert((NumArgs == FTy->getNumParams()) ||
|
|
||||||
- (FTy->isVarArg() && NumArgs > FTy->getNumParams()) &&
|
|
||||||
+ assert(((NumArgs == FTy->getNumParams()) ||
|
|
||||||
+ (FTy->isVarArg() && NumArgs > FTy->getNumParams())) &&
|
|
||||||
"Calling a function with bad signature");
|
|
||||||
|
|
||||||
for (unsigned i = 0, e = NumArgs; i != e; i++) {
|
|
||||||
@@ -1027,12 +1029,13 @@
|
|
||||||
if (!isa<PointerType>(Ptr)) return 0; // Type isn't a pointer type!
|
|
||||||
|
|
||||||
// Handle the special case of the empty set index set...
|
|
||||||
- if (NumIdx == 0)
|
|
||||||
+ if (NumIdx == 0) {
|
|
||||||
if (AllowCompositeLeaf ||
|
|
||||||
cast<PointerType>(Ptr)->getElementType()->isFirstClassType())
|
|
||||||
return cast<PointerType>(Ptr)->getElementType();
|
|
||||||
else
|
|
||||||
return 0;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
unsigned CurIdx = 0;
|
|
||||||
while (const CompositeType *CT = dyn_cast<CompositeType>(Ptr)) {
|
|
||||||
@@ -2319,7 +2322,7 @@
|
|
||||||
assert(Op0Ty == Op1Ty &&
|
|
||||||
"Both operands to ICmp instruction are not of the same type!");
|
|
||||||
// Check that the operands are the right type
|
|
||||||
- assert(Op0Ty->isInteger() || isa<PointerType>(Op0Ty) &&
|
|
||||||
+ assert((Op0Ty->isInteger() || isa<PointerType>(Op0Ty)) &&
|
|
||||||
"Invalid operand types for ICmp instruction");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
diff -r ba4f1d4ee0d4 lib/VMCore/Value.cpp
|
|
||||||
--- a/lib/VMCore/Value.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/lib/VMCore/Value.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -307,7 +307,7 @@
|
|
||||||
void User::replaceUsesOfWith(Value *From, Value *To) {
|
|
||||||
if (From == To) return; // Duh what?
|
|
||||||
|
|
||||||
- assert(!isa<Constant>(this) || isa<GlobalValue>(this) &&
|
|
||||||
+ assert((!isa<Constant>(this) || isa<GlobalValue>(this)) &&
|
|
||||||
"Cannot call User::replaceUsesofWith on a constant!");
|
|
||||||
|
|
||||||
for (unsigned i = 0, E = getNumOperands(); i != E; ++i)
|
|
||||||
diff -r ba4f1d4ee0d4 tools/llvm-db/Commands.cpp
|
|
||||||
--- a/tools/llvm-db/Commands.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/tools/llvm-db/Commands.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -21,6 +21,7 @@
|
|
||||||
#include "llvm/Support/FileUtilities.h"
|
|
||||||
#include "llvm/ADT/StringExtras.h"
|
|
||||||
#include <iostream>
|
|
||||||
+#include <cstdlib>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
/// getCurrentLanguage - Return the current source language that the user is
|
|
||||||
diff -r ba4f1d4ee0d4 tools/llvm-ld/llvm-ld.cpp
|
|
||||||
--- a/tools/llvm-ld/llvm-ld.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/tools/llvm-ld/llvm-ld.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -38,6 +38,7 @@
|
|
||||||
#include "llvm/System/Signals.h"
|
|
||||||
#include <fstream>
|
|
||||||
#include <memory>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
// Input/Output Options
|
|
||||||
diff -r ba4f1d4ee0d4 tools/llvm-upgrade/UpgradeInternals.h
|
|
||||||
--- a/tools/llvm-upgrade/UpgradeInternals.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/tools/llvm-upgrade/UpgradeInternals.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -22,7 +22,7 @@
|
|
||||||
#include "llvm/ADT/StringExtras.h"
|
|
||||||
#include <list>
|
|
||||||
#include <iostream>
|
|
||||||
-
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
// Global variables exported from the lexer.
|
|
||||||
extern int yydebug;
|
|
||||||
diff -r ba4f1d4ee0d4 tools/llvmc/llvmc.cpp
|
|
||||||
--- a/tools/llvmc/llvmc.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/tools/llvmc/llvmc.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -21,6 +21,7 @@
|
|
||||||
#include "llvm/Support/ManagedStatic.h"
|
|
||||||
#include "llvm/System/Signals.h"
|
|
||||||
#include <iostream>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
diff -r ba4f1d4ee0d4 utils/PerfectShuffle/PerfectShuffle.cpp
|
|
||||||
--- a/utils/PerfectShuffle/PerfectShuffle.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/utils/PerfectShuffle/PerfectShuffle.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -17,7 +17,7 @@
|
|
||||||
#include <iostream>
|
|
||||||
#include <vector>
|
|
||||||
#include <cassert>
|
|
||||||
-
|
|
||||||
+#include <cstdlib>
|
|
||||||
struct Operator;
|
|
||||||
|
|
||||||
// Masks are 4-nibble hex numbers. Values 0-7 in any nibble means that it takes
|
|
||||||
diff -r ba4f1d4ee0d4 utils/TableGen/AsmWriterEmitter.cpp
|
|
||||||
--- a/utils/TableGen/AsmWriterEmitter.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/utils/TableGen/AsmWriterEmitter.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -242,11 +242,12 @@
|
|
||||||
|
|
||||||
unsigned MismatchOperand = ~0U;
|
|
||||||
for (unsigned i = 0, e = Operands.size(); i != e; ++i) {
|
|
||||||
- if (Operands[i] != Other.Operands[i])
|
|
||||||
+ if (Operands[i] != Other.Operands[i]) {
|
|
||||||
if (MismatchOperand != ~0U) // Already have one mismatch?
|
|
||||||
return ~1U;
|
|
||||||
else
|
|
||||||
MismatchOperand = i;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
return MismatchOperand;
|
|
||||||
}
|
|
||||||
diff -r ba4f1d4ee0d4 utils/TableGen/CodeGenDAGPatterns.cpp
|
|
||||||
--- a/utils/TableGen/CodeGenDAGPatterns.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/utils/TableGen/CodeGenDAGPatterns.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -1318,14 +1318,14 @@
|
|
||||||
while (TPN->ApplyTypeConstraints(P, false))
|
|
||||||
/* Resolve all types */;
|
|
||||||
|
|
||||||
- if (TPN->ContainsUnresolvedType())
|
|
||||||
+ if (TPN->ContainsUnresolvedType()) {
|
|
||||||
if (iter == 0)
|
|
||||||
throw "Value #" + utostr(i) + " of PredicateOperand '" +
|
|
||||||
DefaultOps[iter][i]->getName() + "' doesn't have a concrete type!";
|
|
||||||
else
|
|
||||||
throw "Value #" + utostr(i) + " of OptionalDefOperand '" +
|
|
||||||
DefaultOps[iter][i]->getName() + "' doesn't have a concrete type!";
|
|
||||||
-
|
|
||||||
+ }
|
|
||||||
DefaultOpInfo.DefaultOps.push_back(TPN);
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -r ba4f1d4ee0d4 utils/TableGen/CodeGenRegisters.h
|
|
||||||
--- a/utils/TableGen/CodeGenRegisters.h Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/utils/TableGen/CodeGenRegisters.h Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -15,9 +15,10 @@
|
|
||||||
#ifndef CODEGEN_REGISTERS_H
|
|
||||||
#define CODEGEN_REGISTERS_H
|
|
||||||
|
|
||||||
+#include "llvm/CodeGen/ValueTypes.h"
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
-#include "llvm/CodeGen/ValueTypes.h"
|
|
||||||
+#include <cstdlib>
|
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
class Record;
|
|
||||||
diff -r ba4f1d4ee0d4 utils/TableGen/DAGISelEmitter.cpp
|
|
||||||
--- a/utils/TableGen/DAGISelEmitter.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/utils/TableGen/DAGISelEmitter.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -1059,7 +1059,7 @@
|
|
||||||
Code += "), 0";
|
|
||||||
emitCode(Code2 + Code + ");");
|
|
||||||
|
|
||||||
- if (NodeHasChain)
|
|
||||||
+ if (NodeHasChain) {
|
|
||||||
// Remember which op produces the chain.
|
|
||||||
if (!isRoot)
|
|
||||||
emitCode(ChainName + " = SDOperand(" + NodeName +
|
|
||||||
@@ -1067,6 +1067,7 @@
|
|
||||||
else
|
|
||||||
emitCode(ChainName + " = SDOperand(" + NodeName +
|
|
||||||
", " + utostr(NumResults+NumDstRegs) + ");");
|
|
||||||
+ }
|
|
||||||
|
|
||||||
if (!isRoot) {
|
|
||||||
NodeOps.push_back("Tmp" + utostr(ResNo));
|
|
||||||
diff -r ba4f1d4ee0d4 utils/TableGen/TGLexer.cpp
|
|
||||||
--- a/utils/TableGen/TGLexer.cpp Wed Mar 05 22:42:42 2008 -0800
|
|
||||||
+++ b/utils/TableGen/TGLexer.cpp Wed Mar 05 23:15:18 2008 -0800
|
|
||||||
@@ -17,6 +17,8 @@
|
|
||||||
#include <ostream>
|
|
||||||
#include "llvm/Config/config.h"
|
|
||||||
#include <cctype>
|
|
||||||
+#include <cstdlib>
|
|
||||||
+#include <cstring>
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
TGLexer::TGLexer(MemoryBuffer *StartBuf) : CurLineNo(1), CurBuf(StartBuf) {
|
|
9
llvm-Config-config.h
Normal file
9
llvm-Config-config.h
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include <bits/wordsize.h>
|
||||||
|
|
||||||
|
#if __WORDSIZE == 32
|
||||||
|
#include "config-32.h"
|
||||||
|
#elif __WORDSIZE == 64
|
||||||
|
#include "config-64.h"
|
||||||
|
#else
|
||||||
|
#error "Unknown word size"
|
||||||
|
#endif
|
9
llvm-Config-llvm-config.h
Normal file
9
llvm-Config-llvm-config.h
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include <bits/wordsize.h>
|
||||||
|
|
||||||
|
#if __WORDSIZE == 32
|
||||||
|
#include "llvm-config-32.h"
|
||||||
|
#elif __WORDSIZE == 64
|
||||||
|
#include "llvm-config-64.h"
|
||||||
|
#else
|
||||||
|
#error "Unknown word size"
|
||||||
|
#endif
|
58
run-lit-tests
Executable file
58
run-lit-tests
Executable file
@ -0,0 +1,58 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "usage: `basename $0` [OPTIONS]"
|
||||||
|
echo " --threads NUM The number of threads to use for running tests."
|
||||||
|
echo " --multilib-arch ARCH Use this option to test 32-bit libs/binaries on"
|
||||||
|
echo " 64-bit hosts."
|
||||||
|
}
|
||||||
|
|
||||||
|
threads_arg=''
|
||||||
|
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case $1 in
|
||||||
|
--threads)
|
||||||
|
shift
|
||||||
|
threads_arg="--threads $1"
|
||||||
|
;;
|
||||||
|
--multilib-arch)
|
||||||
|
shift
|
||||||
|
ARCH=$1
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "unknown option: $1"
|
||||||
|
echo ""
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
ARCH=`rpm --eval '%_arch'`
|
||||||
|
fi
|
||||||
|
|
||||||
|
case $ARCH in
|
||||||
|
arm)
|
||||||
|
;&
|
||||||
|
i686)
|
||||||
|
LIB_DIR="/usr/lib/"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
LIB_DIR="/usr/lib64/"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cd $(mktemp -d)
|
||||||
|
ln -s /usr/include include
|
||||||
|
tar -xzf /usr/share/llvm/src/test.tar.gz
|
||||||
|
ln -s $ARCH.site.cfg.py test/lit.site.cfg.py
|
||||||
|
ln -s $ARCH.site.cfg.py test/Unit/lit.site.cfg.py
|
||||||
|
lit -v -s $threads_arg test \
|
||||||
|
-Dllvm_obj_root=`pwd` \
|
||||||
|
-Dllvm_test_root=`pwd`/test \
|
||||||
|
-Dllvm_unittest_bindir=$LIB_DIR/llvm \
|
||||||
|
-Dllvm_shlib_dir=$LIB_DIR
|
3
sources
3
sources
@ -1 +1,2 @@
|
|||||||
c16f89f0f28b66db0b776dfb2997cc40 llvm-2.2.tar.gz
|
SHA512 (llvm-10.0.0.src.tar.xz) = 7dc961aacee3a01ecc002ff2b688a2ef50661856d2abd5ecc90566ffcad7566e4976736cd339ea96592e452cd5a17aaceba9712b2effec805661cca8ff020ee7
|
||||||
|
SHA512 (llvm-10.0.0.src.tar.xz.sig) = 2e4c61af5d84db4bc7a8ab51367210c529ae02e401b7a73a449f79bf9d92654ccf36fdef0f552c8850df0e94bcafce2359180ad0cdf720be7c874a782a936878
|
||||||
|
1
tests/.fmf/version
Normal file
1
tests/.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
16
tests/build-compat/runtest.sh
Executable file
16
tests/build-compat/runtest.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
dnf download --disablerepo=* --enablerepo=test-llvm --source llvm
|
||||||
|
|
||||||
|
# The src.rpm is available in the directory the test run from.
|
||||||
|
set +e
|
||||||
|
mock --resultdir=. --old-chroot --with compat_build --rebuild *.src.rpm
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
cat root.log
|
||||||
|
cat build.log
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
5
tests/provision.fmf
Normal file
5
tests/provision.fmf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
standard-inventory-qcow2:
|
||||||
|
qemu:
|
||||||
|
m: 2G
|
30
tests/tests.yml
Normal file
30
tests/tests.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
required_packages:
|
||||||
|
- llvm-test
|
||||||
|
- rust
|
||||||
|
- cargo
|
||||||
|
tests:
|
||||||
|
- regression-tests:
|
||||||
|
dir: ./
|
||||||
|
run: /usr/libexec/tests/llvm/run-lit-tests --threads 1
|
||||||
|
- rust-sanity:
|
||||||
|
dir: ./
|
||||||
|
run: cargo new hello && cd hello && cargo run
|
||||||
|
# There is a bug in the build process when it runs out of disk space
|
||||||
|
# while stripping binaries, which causes the strip to fail, but does
|
||||||
|
# not fail the build. This results in a libLLVM.so that is over 2GB
|
||||||
|
# which breaks the nightly compose. So this test checks that libLLVM.so
|
||||||
|
# is less than 100MB to ensure it was successfully stripped.
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1793250
|
||||||
|
- libllvm-size:
|
||||||
|
dir: ./
|
||||||
|
run: test `stat -L -c %s /usr/lib64/libLLVM.so` -lt 100000000
|
||||||
|
# This test ensures that the spec file still builds correctly with
|
||||||
|
# %global compat_build 1
|
||||||
|
# FIXME: This fails, because the CI system has a hard-coded timeout of 4
|
||||||
|
# hours.
|
||||||
|
#- build-compat
|
31
tests/testsllvm-devel.yml
Normal file
31
tests/testsllvm-devel.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
pre_tasks:
|
||||||
|
# Make sure we uninstall all sub-packages, so we can test that the cmake files
|
||||||
|
# in llvm-devel are useable when only llvm-devel is installed.
|
||||||
|
- name: Uninstall llvm sub-packages
|
||||||
|
package:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
tags: classic
|
||||||
|
with_items:
|
||||||
|
- llvm
|
||||||
|
- llvm-devel
|
||||||
|
- llvm-doc
|
||||||
|
- llvm-googletest
|
||||||
|
- llvm-libs
|
||||||
|
- llvm-static
|
||||||
|
- llvm-test
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags: classic
|
||||||
|
required_packages:
|
||||||
|
- llvm-devel
|
||||||
|
- cmake
|
||||||
|
- ninja-build
|
||||||
|
- gcc
|
||||||
|
- gcc-c++
|
||||||
|
repositories:
|
||||||
|
- repo: "https://src.fedoraproject.org/tests/llvm.git"
|
||||||
|
dest: "llvm"
|
||||||
|
tests:
|
||||||
|
- llvm/llvm-devel-cmake
|
Loading…
Reference in New Issue
Block a user