- Dec 21, 2022
-
-
Nathan Ridge authored
[clangd] Avoid triggering linkage computation for decl with unstable linkage in SymbolRelevanceSignals::computeASTSignals() Fixes https://github.com/clangd/clangd/issues/1427 Differential Revision: https://reviews.llvm.org/D140379
-
Yeting Kuo authored
There is room for optimization to use tail agnostic vslideup/vslidedown to lower some vector operations. D125546 is an revision for the kind of optimization. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D140393
-
Craig Topper authored
-
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D140362
-
Matt Arsenault authored
This reverts commit 3b0b0965. I hadn't noticed 638b2571
-
Roman Lebedev authored
As requested in https://reviews.llvm.org/D138238#inline-1356685
-
Roman Lebedev authored
For all other patterns, we consistently have both I and F variants, let's not diverge. Fixes https://github.com/llvm/llvm-project/issues/59628
-
Roman Lebedev authored
``` [ 50% 1/2][ 50% 00:01 + 00:01] Linking CXX executable bin/llvm-extract FAILED: bin/llvm-extract : && /usr/bin/clang++-15 -O3 -g -ggdb -march=native -UNDEBUG -gsplit-dwarf -gz -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -g -ggdb -march=native -UNDEBUG -gsplit-dwarf -gz -Wl,--gdb-index -Wl,--color-diagnostics -Wl,--gc-sections tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o -o bin/llvm-extract -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMPasses.so.16git lib/libLLVMIRPrinter.so.16git lib/libLLVMipo.so.16git lib/libLLVMBitWriter.so.16git lib/libLLVMIRReader.so.16git lib/libLLVMCore.so.16git lib/libLLVMSupport.so.16git -Wl,-rpath-link,/builddirs/llvm-project/build-Clang15/lib && : ld: error: undefined symbol: llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>::AnalysisManager() >>> referenced by llvm-extract.cpp:326 (/repositories/llvm-project/llvm/tools/llvm-extract/llvm-extract.cpp:326) >>> tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o:(main) >>> referenced by llvm-extract.cpp:373 (/repositories/llvm-project/llvm/tools/llvm-extract/llvm-extract.cpp:373) >>> tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o:(main) >>> referenced by llvm-extract.cpp:394 (/repositories/llvm-project/llvm/tools/llvm-extract/llvm-extract.cpp:394) >>> tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o:(main) ld: error: undefined symbol: llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>::AnalysisManager() >>> referenced by llvm-extract.cpp:328 (/repositories/llvm-project/llvm/tools/llvm-extract/llvm-extract.cpp:328) >>> tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o:(main) >>> referenced by llvm-extract.cpp:375 (/repositories/llvm-project/llvm/tools/llvm-extract/llvm-extract.cpp:375) >>> tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o:(main) >>> referenced by llvm-extract.cpp:396 (/repositories/llvm-project/llvm/tools/llvm-extract/llvm-extract.cpp:396) >>> tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o:(main) clang: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. ```
-
Matt Arsenault authored
It seems to not like the environment variable set syntax.
-
Douglas Yung authored
Fix test added in 95abdeba to set environment variables in a way that works on both Windows and linux. This should fix the test failure on Windows bots such as https://lab.llvm.org/buildbot/#/builders/216/builds/14829.
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D140444
-
Mitch Phillips authored
This reverts commit e43924a7. Reason: Patch broke the MSan buildbots. More information is available on the original phabricator review: https://reviews.llvm.org/D127812
-
Mitch Phillips authored
This reverts commit bf94eac6. Reason: Depends on reverted change https://reviews.llvm.org/D127812
-
Mitch Phillips authored
This reverts commit a43f3614. Reason: Depends on reverted change https://reviews.llvm.org/D127812
-
Aart Bik authored
Also, as a proof of concept, all functionality related to reductions has been refactored into private fields and a clean public API. As a result, some dead code was found as well. This approach also simplifies asserting on a proper environment state for each call. NOTE: making all other fields private and migrating more methods into this new class is still TBD in yes another next revision! Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D140443 -
Louis Dionne authored
Previously, we would be passing down -stdlib=libc++ from the Driver to CC1 whenever the default standard library on the platform was libc++, even if -stdlib= had not been passed to the Driver. This meant that we would pass -stdlib=libc++ in nonsensical circumstances, such as when compiling C code. This logic had been added in b534ce46 to make sure that header search paths were set up properly. However, since libc++ is now the default Standard Library on Darwin, passing this explicitly is not required anymore. Indeed, if no -stdlib= is specified, CC1 will end up using libc++ if it queries which standard library to use, without having to be told. Not passing -stdlib= at all to CC1 on Darwin should become possible once CC1 stops relying on it to set up framework search paths. Furthermore, this commit also removes a diagnostic checking whether the deployment target is too old to support libc++. Nowadays, all supported deployment targets use libc++ and compiling with libstdc++ is not supported anymore. The Driver was the wrong place to issue this diagnostic since it doesn't know whether libc++ will actually be linked against (e.g. C vs C++), which would lead to spurious diagnostics. Given that these targets are not supported anymore, we simply drop the diagnostic instead of trying to refactor it into CC1. This is a re-application of 6540f32d which had been reverted in 49dd02bd because it broke a compiler-rt test. The test had broken because we were compiling C code and passing -stdlib=libc++, which Clang will now warn about. rdar://103198514 Differential Revision: https://reviews.llvm.org/D139938
-
Peiming Liu authored
[mlir][sparse] introduce LevelFormat which do not encoding level properties of a sparse tensor level. Reviewed By: aartbik, wrengr Differential Revision: https://reviews.llvm.org/D140442
-
Roman Lebedev authored
Fixes https://github.com/llvm/llvm-project/issues/59377
-
Artem Dergachev authored
The assertion doesn't seem to hold due to ASTMatchers traversing code inside GNU StmtExpr twice. This can screw up our algorithm's invariants. We need a further investigation to properly fix this issue, but for now let's avoid the crash.
-
Matt Arsenault authored
These are going to waste a lot of time and produce clutter when we're bulk introducing crashes. Add a flag to disable this behavior in case this matters to a reproducer.
-
Maksim Panchenko authored
PrintInstructions was unused in BinaryFunction::print() and dump(). Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D140440
-
Kazu Hirata authored
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Jonas Devlieghere authored
-
Siva Chandra Reddy authored
This can be easily resurrected if required in future. It calls malloc directly. So, instead of updating an unused piece to the newer pattern of using the custom operator new, this patch just deletes it.
-
Kazu Hirata authored
This patch fixes: llvm/include/llvm/ADT/GenericUniformityImpl.h:752:8: error: unused variable 'printBlockSet' [-Werror,-Wunused-variable]
-
Roman Lebedev authored
When trying to measure latency of certain opcodes, e.g. `./bin/llvm-exegesis --opcode-name=BT32ri8 --mode=latency --repetition-mode=loop --benchmarks-file=- --max-configs-per-opcode=65536`, we'd pick such an aliasing instruction, and such an aliasing registers, that would alias with forbidden registers. And in particular with loop counter in `loop` repetition mode, which made the measurements never finish. This does not address all such cases, only the most obvious one. The added test case fails without the patch. Fixes https://github.com/llvm/llvm-project/issues/59441
-
Pavel Iliin authored
-
Nick Desaulniers authored
Follow a similar pattern as AMDGPUDAGToDAGISel's constructor so that we can use INITIALIZE_PASS to register a pass. This allows for more fine grain testability of SelectionDAGISel. Link: https://github.com/llvm/llvm-project/issues/59538 Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D140323
-
Matt Arsenault authored
-
Nick Desaulniers authored
Quite a few passes are not default constructible. In order to properly support -{start|stop}-{before|after}= for these passes, we would like to continue to use INITIALIZE_PASS, but not necessarily provide a default constructor. Delete the default constructors of classes derived from SelectionDAGISel. Link: https://github.com/llvm/llvm-project/issues/59538 Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D140349 -
Haojian Wu authored
-
Arthur Eubanks authored
-
Lei Huang authored
-
Arthur Eubanks authored
Removes some legacy passes specific to llvm-extract
-
Jonas Devlieghere authored
Verify that every DIE that's marked as kept, has a parent that's kept as well. This invariant should always hold and is easy to verify when asserts are enabled. Differential revision: https://reviews.llvm.org/D140227
-
Jonas Devlieghere authored
To improve deduplication across CUs within a single object file, 2b747241 changed the way we track ODR canonical candidates. The result is that some assumptions no longer hold. Because of the aforementioned change, the following condition assert(Ref > InputDIE.getOffset()); in DWARFLinker::DIECloner::cloneDieReferenceAttribute is no longer an invariant. An example of a situation where this assertion no longer holds is when we have decided to replace a backward reference in the current CU with a forward reference in a subsequent CU. The ODR canonical DIE hasn't been emitted yet, but the references DIE has an offset smaller than the current DIE. The assertion is only true if the referenced DIE was the ODR canonical DIE, which is no longer guaranteed to be part of the same CU. Big thanks to Alexey for putting a test together. Differential revision: https://reviews.llvm.org/D138176
-
Nikolas Klauser authored
Reviewed By: ldionne, Mordante, #libc Spies: jloser, libcxx-commits Differential Revision: https://reviews.llvm.org/D139189
-
Craig Topper authored
Split from D139873. Reviewed By: reames, kito-cheng Differential Revision: https://reviews.llvm.org/D140283
-
Craig Topper authored
riscv64 wants callees to sign extend signed and unsigned int returns. The caller can use this to avoid a sign extend if the result is used by a comparison since riscv64 only has 64-bit compares. InstCombine/SimplifyLibCalls aggressively turn memcmps that are only used by an icmp eq 0 into bcmp, but we lose the signext attribute that would have been present on the memcmp. This causes an unneeded sext.w in the generated assembly. This looks even sillier if bcmp is implemented alias to memcmp. In that case, not only did we not get any savings by using bcmp, we added an instruction. This probably applies to other functions, this just happens to be the one I noticed so far. See also the discussion here https://discourse.llvm.org/t/can-we-preserve-signext-return-attribute-when-converting-memcmp-to-bcmp/67126 Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D139901
-