This project is mirrored from https://github.com/llvm/llvm-project.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
- Jan 08, 2022
-
-
Christian Sigg authored
- Prevent symbols from being stripped so that it can run with 'RelWithDebInfo'. - Adjust llvm-support CHECKs after code changes. - Polish mlir-support CHECKs as suggested in https://reviews.llvm.org/D116646. Differential Revision: https://reviews.llvm.org/D116837
-
Lang Hames authored
This should fix the build failure at https://lab.llvm.org/buildbot/#/builders/165/builds/12997
-
Lang Hames authored
Inspired by LLVM_DEBUG, but using environment variables rather than command line options. Code can use ORC_RT_DEBUG(...) (if ORC_RT_DEBUG_TYPE is set), or ORC_RT_DEBUG_WITH_TYPE(<type>, ...) (if ORC_RT_DEBUG_TYPE is not set. E.g. in headers). Debug logging is enabled in the executor by setting the ORC_RT_DEBUG environment variable. Debug logging can be restricted by type by setting the ORC_RT_DEBUG_TYPES environment variable to a comma separated list of types, e.g. ORC_RT_DEBUG_TYPES=macho_platform,sps. Differential Revision: https://reviews.llvm.org/D116139
-
Lang Hames authored
-
Lang Hames authored
These types performed identical roles. Merging them simplifies interoperability between JITLink and ORC APIs (allowing us to address a few FIXMEs).
-
Kazu Hirata authored
-
owenca authored
Differential Revision: https://reviews.llvm.org/D116318
-
Tanya Lattner authored
-
Craig Topper authored
By default we return the width of an LMUL=1 register. We can enable testing with larger LMUL values by returning a larger bit width. This patch adds a RISCV specific option to provide a LMUL which will be multiplied by the LMUL=1 bit width. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D116339
-
Kazu Hirata authored
-
Kito Cheng authored
getMinVectorRegisterBitWidth means what vector types is supported in this target, and actually RISC-V support all fixed length vector types with vector length less than `getMinRVVVectorSizeInBits`, so set it to 16, means 2 x i8, that is minimal fixed length vector size in theory. That also fixed one issue, some testcase migth become non-vectorizable when `-riscv-v-vector-bits-min` set to larger value, because the vector size is smaller than `-riscv-v-vector-bits-min`. For example, following code can vectorize by SLP with `-riscv-v-vector-bits-min=128` or `-riscv-v-vector-bits-min=256`, but can't vectorize `-riscv-v-vector-bits-min=512` or larger: ``` void foo(double *da) { da[0] = 0; da[1] = 1; da[2] = 2; da[3] = 3; } ``` Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D116534
-
Jun Zhang authored
This is just a test commit to check whether the permission I got is correct or not.
-
Mehdi Amini authored
a32300a6 changed it to create a ThreadPool eagerly so that it gets reused across buffers, however it also made it so that we create a ThreadPool early even if we're not gonna use it later because of the command line option `--mlir-disable-threading` is provided. Fix #53056 Reland 45adf608 after build fixes Differential Revision: https://reviews.llvm.org/D116848
-
Mehdi Amini authored
This reverts commit 45adf608. Build is broken
-
Nico Weber authored
This reverts commit 3ca69283. 492de35d relanded in feeff8a3. The reland only uses CMAKE_INSTALL_INCLUDEDIR and not CMAKE_INSTALL_BINDIR in llvm-config, so this reland reflects that.
-
John Demme authored
Currently, compiles with LLVM_ENABLE_THREADS=OFF fail due to this symbol missing. Add it but assert as calling code is (and should be) checking that threading is enabled. Differential Revision: https://reviews.llvm.org/D116846
-
Mehdi Amini authored
a32300a6 changed it to create a ThreadPool eagerly so that it gets reused across buffers, however it also made it so that we create a ThreadPool early even if we're not gonna use it later because of the command line option `--mlir-disable-threading` is provided. Fix #53056 Differential Revision: https://reviews.llvm.org/D116848
-
Ben Wagner authored
When building libcxx, libcxxabi, and libunwind the build environment may specify any number of sanitizers. For some build feature tests these sanitizers must be disabled to prevent spurious linking errors. With -fsanitize= this is straight forward with -fno-sanitize=all. With -fsanitize-coverage= there is no -fno-sanitize-coverage=all, but there is the equivalent undocumented but tested -fsanitize-coverage=0. The current build rules fail to disable 'trace-pc-guard'. By disabling all sanitize-coverage flags, including 'trace-pc-guard', possible spurious linker errors are prevented. In particular, this allows libcxx, libcxxabi, and libunwind to be built with HonggFuzz. CMAKE_REQUIRED_FLAGS is extra compile flags when running CMake build configuration steps (like check_cxx_compiler_flag). It does not affect the compile flags for the actual build of the project (unless of course these flags change whether or not a given source compiles and links or not). So libcxx, libcxxabi, and libunwind will still be built with any specified sanitize-coverage as before. The build configuration steps (which are mostly checking to see if certain compiler flags are available) will not try to compile and link "int main() { return 0;}" (or other specified source) with sanitize-coverage (which can fail to link at this stage in building, since the final compile flags required are yet to be determined). The change to LIBFUZZER_CFLAGS was done to keep it consistent with the obvious intention of disabling all sanitize-coverage. This appears to be intentional, preventing the fuzzer driver itself from showing up in any coverage calculations. Reviewed By: #libunwind, #libc, #libc_abi, ldionne, phosek Differential Revision: https://reviews.llvm.org/D116050
-
Kazu Hirata authored
Identified with readability-redundant-member-init.
-
Julian Lettner authored
Lower Python requirements: 3.7 -> 3.6 Workaround introduced in: ebd8eee6
-
Vitaly Buka authored
Even if findImplementors does not use uninitialized parameter it's still UB and it's going to be detected by msan with: -Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1 Differential Revision: https://reviews.llvm.org/D116827
-
Julian Lettner authored
Specify `ASAN_SYMBOLIZER_PATH` when running simulator tests. This will unblock simulator testing in GreenDragon (Apple's open source testing).
-
John Ericson authored
This is the patch for LLVM proper in my series for adding GNUInstallDirs support in all project. Additionally: Create a new `CACHE STRING` variable, `LLVM_EXAMPLES_INSTALL_DIR`, to control where the examples are installed on analogy with the other variables. --- This patch supersedes D28234, which tried to do the same thing but hand-rolled without GNUInstallDirs. This patch nearly reverts commit 3 0fc88bf1dc15a72e2d9809d28019d386b7a7cc0, which was a revert of a prior attempt." (I had to add a space here or else Phabricator detects a reference cycle and won't let me do the form submit.) Reviewed By: compnerd Differential Revision: https://reviews.llvm.org/D100810
-
Yuanfang Chen authored
Users could pass flags by environment variables like CFLAGS/CXXFLAGS/LDFLAGS or by using CMAKE_<LANG>_FLAGS_INIT/CMAKE_<t>_LINKER_FLAGS_INIT. So this toolchain file should append to INIT flags instead. Otherwise, user flags would be discarded here by assigning to CMAKE_<LANG>_FLAGS directly. Reviewed By: smeenai, mstorsjo Differential Revision: https://reviews.llvm.org/D116709
-
Walter Erquinigo authored
This adds some important remarks to the data formatter documentation. Differential Revision: https://reviews.llvm.org/D115974
-
Jonas Devlieghere authored
The lldbconfig module was necessary to run the LLDB test suite against a reproducer. Since this functionality has been removed, the module is no longer necessary.
-
John Ericson authored
@beanz tells me it should in fact exists, and it would be bad to put a list of dirs in `LLVM_LIBRARY_DIR`. I am therefore making some changes to help avoid this an other mistakes: - Use a separate `LLVM_CONFIG_LIBRARY_DIR` (no "S") variable so we don't start putting a list in `LLVM_LIBRARY_DIR` by mistake. - Define the individual dir variables first, and the define the list of dirs variables programmatically. Also, I rearranged the definitions of the "regular" single dirs below so `LLVM_BINARY_DIR`, which is the unsuffixed one, comes first before the suffixed ones. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D116497
-
Baoshan Pang authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D116574
-
Vitaly Buka authored
Or code like this have UB passing uninitialized CmpValue: ``` int64_t CmpMask, CmpValue; if (!TII->analyzeCompare(MI, SrcReg, SrcReg2, CmpMask, CmpValue)) return false; if (TII->optimizeCompareInstr(MI, SrcReg, SrcReg2, CmpMask, CmpValue, MRI)) { ``` Detected by msan with: -Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1 Differential Revision: https://reviews.llvm.org/D116831
-
Vitaly Buka authored
Detected by msan with: -Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1 Differential Revision: https://reviews.llvm.org/D116830
-
Vitaly Buka authored
Detected by msan with: -Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1 Differential Revision: https://reviews.llvm.org/D116829
-
Vitaly Buka authored
Detected by msan with: -Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1 Differential Revision: https://reviews.llvm.org/D116828
-
Vitaly Buka authored
If the function returns true, it should set all output paremeters, similar to Output::preflightElement, or we have UB on code like: ``` void *SaveInfo; if (io.preflightFlowElement(i, SaveInfo)) io.postflightFlowElement(SaveInfo); ``` It's going to be detected by msan with: -Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1 Differential Revision: https://reviews.llvm.org/D116826
-
Sumanth Gundapaneni authored
-
Amy Huang authored
[-fms-extensions] Make some exception specification warnings/errors compatible with what cl.exe does Make clang-cl error when a function definition is missing 'noexcept', and succeed without warnings when missing '__declspec(nothrow)' or 'throw'. Fixes pr52860 Differential Revision: https://reviews.llvm.org/D116256
-
Nick Desaulniers authored
When performing CFG based analyses, don't forget to check the child statements of an asm goto, such as the expressions used for inputs+outputs. Fixes: https://github.com/llvm/llvm-project/issues/51024 Fixes: https://github.com/ClangBuiltLinux/linux/issues/1439 Reviewed By: void, jyknight, jyu2, efriedma Differential Revision: https://reviews.llvm.org/D116059
-
Philip Reames authored
strdup/strndup are already partially implemented, move remaining comment to relevant place. Remaining named routines are copy routines and mostly handled via intrinsics already - they do not allocate new memory.
-
Jonas Devlieghere authored
-
Groverkss authored
This operation already exists in FlatAffineConstraints but is added to IntegerPolyhedron to keep consistancy in available methods.
-
Roman Lebedev authored
-