- Mar 24, 2020
-
-
Vitaly Buka authored
-
Matt Arsenault authored
Since intrinsics can now specify when an argument is required to be constant, it is now OK to replace arguments with variables if they aren't. This means intrinsics must now be accurately marked with immarg.
-
Johannes Doerfert authored
See rational here: https://reviews.llvm.org/D71830#1922656 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D76173
-
Johannes Doerfert authored
See rational here: https://reviews.llvm.org/D71847#1922648 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D76170
-
Eli Friedman authored
The only reason we export symbols from these tools is to support plugins; if we don't have plugins, exporting symbols just bloats the executable and makes LTO less effective. See review of D75879 for the discussion that led to this patch. Differential Revision: https://reviews.llvm.org/D76527
-
LLVM GN Syncbot authored
-
Jonas Devlieghere authored
Revert "[analyzer][NFC] Tie CheckerRegistry to CheckerManager, allow CheckerManager to be constructed for non-analysis purposes" Temporarily reverting this patch because it breaks the modules build.
-
Matt Arsenault authored
-
Matt Arsenault authored
Currently all GlobalISel unittests use a hardcoded AArch64 target machine. Factor this so I can write some for AMDGPU specific known bits unittests.
-
Matt Arsenault authored
I think we can save the MRI argument from these since it's in GISelKnownBits already, but currently not accessible. Implementation deferred to avoid dependency on other patches.
-
Andrew Ng authored
Differential Revision: https://reviews.llvm.org/D76544
-
MaheshRavishankar authored
When trying to fold an operation during operation creation check that the operation folding succeeds before inserting the op. Differential Revision: https://reviews.llvm.org/D76415
-
shafik authored
This adds a formatter for libc++ std::unique_ptr. I also refactored GetValueOfCompressedPair(...) out of LibCxxList.cpp since I need the same functionality and it made sense to share it. Differential Revision: https://reviews.llvm.org/D76476
-
Fangrui Song authored
[CMake] Fix AMDGPUTests -DBUILD_SHARED_LIBS=on builds and trim dependencies of AMDGPUTests and AMDDwarfTests after D76357/G24698e52 FAILED: unittests/Target/AMDGPU/AMDGPUTests ... ld.lld: error: undefined symbol: llvm::MCRegisterInfo::getLLVMRegNum(unsigned int, bool) const >>> referenced by DwarfRegMappings.cpp:60 (/usr/local/google/home/maskray/llvm/llvm/unittests/Target/AMDGPU/DwarfRegMappings.cpp:60) >>> unittests/Target/AMDGPU/CMakeFiles/AMDGPUTests.dir/DwarfRegMappings.cpp.o:(AMDGPUDwarfRegMappingTests_TestWave64DwarfRegMapping_Test::TestBody()) >>> referenced by DwarfRegMappings.cpp:82 (/usr/local/google/home/maskray/llvm/llvm/unittests/Target/AMDGPU/DwarfRegMappings.cpp:82) >>> unittests/Target/AMDGPU/CMakeFiles/AMDGPUTests.dir/DwarfRegMappings.cpp.o:(AMDGPUDwarfRegMappingTests_TestWave32DwarfRegMapping_Test::TestBody()) A -DBUILD_SHARED_LIBS=off build is good because AMDGPUCodeGen pulls in MC. A -DBUILD_SHARED_LIBS=on build requires all direct dependencies (MC) to be listed becuase llvm/cmake/modules/HandleLLVMOptions.cmake uses -Wl,-z,defs
-
Chris Lattner authored
Summary: Also eliminate the redunant anon namespace around the already static function. Reviewers: herhut Subscribers: hiraditya, steven_wu, dexonsmith, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, csigg, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, Joonsoo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76627
-
Sanjay Patel authored
Two one-use checks were added with rGfdcb2710, but only the first one is necessary to limit an increase in instruction count. The second transform only creates one instruction, so it is always a reasonable canonicalization/optimization.
-
Fangrui Song authored
This behavior matches GNU ld and seems reasonable. ``` // If a SECTIONS command is not specified .text.* -> .text .rodata.* -> .rodata .init_array.* -> .init_array ``` A proposed Linux feature CONFIG_FG_KASLR may depend on the GNU ld behavior. Reword a comment about -z keep-text-section-prefix and a comment about CommonSection (deleted by rL286234). Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D75225
-
LLVM GN Syncbot authored
-
Fangrui Song authored
-
Jonathan Coe authored
Reviewers: krasimir Reviewed By: krasimir Subscribers: cfe-commits, MyDeveloperDay Tags: #clang-format, #clang Differential Revision: https://reviews.llvm.org/D76621
-
Alexey Bataev authored
Added basic support (parsing/sema/serialization) for exclusive clause in scan directives.
-
AndreyChurbanov authored
Added missed initialization of td_last_tied field for taskloop tasks. Differential Revision: https://reviews.llvm.org/D75673
-
Fangrui Song authored
-
Jonas Devlieghere authored
Reproducers are unsupported on Windows. Rather than having a UNSUPPORTED line in every test, just skip the whole subdirectory.
-
Johannes Doerfert authored
Validation of the found runtime library functions declarations types (return and argument types) with the expected types. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D76058
-
Johannes Doerfert authored
Exposed by D76058 and tested once that one lands.
-
Benjamin Kramer authored
Fixes unused variable warning in Release builds.
-
Fangrui Song authored
-
Adam Balogh authored
Upon calling one of the functions `std::advance()`, `std::prev()` and `std::next()` iterators could get out of their valid range which leads to undefined behavior. If all these funcions are inlined together with the functions they call internally (e.g. `__advance()` called by `std::advance()` in some implementations) the error is detected by `IteratorRangeChecker` but the bug location is inside the STL implementation. Even worse, if the budget runs out and one of the calls is not inlined the bug remains undetected. This patch fixes this behavior: all the bugs are detected at the point of the STL function invocation. Differential Revision: https://reviews.llvm.org/D76379
-
Alexandre Ganea authored
warning: comparison of integers of different signs: 'const unsigned long long' and 'const int' [-Wsign-compare]
-
David Green authored
-
Louis Dionne authored
It's hard to imagine someone using a recent version of libc++ with a roughly 3 years old Clang. Since we're not testing libc++ with Clang 3.5 anyway, claiming support for it is somewhat of a lie. Note that we don't test Clang 4 either, however I have no reason to bump the requirement beyond Clang 4 at the moment, whereas removing Clang 3.5 allows simplifying the test suite. Differential Revision: https://reviews.llvm.org/D76618
-
Fred Riss authored
The newly introduced tests for unsetting environment variables is failing on Windows. Skip the test there to allow investigation. It seems like setting inherit-env to false was never tested before. Could it be that the Windows process launcher doesn't honor this setting?
-
Ram Nalamothu authored
Fixes the build failures introduced by 24698e52
-
Kristóf Umann authored
[analyzer][NFC] Tie CheckerRegistry to CheckerManager, allow CheckerManager to be constructed for non-analysis purposes Its been a while since my CheckerRegistry related patches landed, allow me to refresh your memory: During compilation, TblGen turns clang/include/clang/StaticAnalyzer/Checkers/Checkers.td into (build directory)/tools/clang/include/clang/StaticAnalyzer/Checkers/Checkers.inc. This is a file that contains the full name of the checkers, their options, etc. The class that is responsible for parsing this file is CheckerRegistry. The job of this class is to establish what checkers are available for the analyzer (even from plugins and statically linked but non-tblgen generated files!), and calculate which ones should be turned on according to the analyzer's invocation. CheckerManager is the class that is responsible for the construction and storage of checkers. This process works by first creating a CheckerRegistry object, and passing itself to CheckerRegistry::initializeManager(CheckerManager&), which will call the checker registry functions (for example registerMallocChecker) on it. The big problem here is that these two classes lie in two different libraries, so their interaction is pretty awkward. This used to be far worse, but I refactored much of it, which made things better but nowhere near perfect. --- This patch changes how the above mentioned two classes interact. CheckerRegistry is mainly used by CheckerManager, and they are so intertwined, it makes a lot of sense to turn in into a field, instead of a one-time local variable. This has additional benefits: much of the information that CheckerRegistry conveniently holds is no longer thrown away right after the analyzer's initialization, and opens the possibility to pass CheckerManager in the shouldRegister* function rather then LangOptions (D75271). There are a few problems with this. CheckerManager isn't the only user, when we honor help flags like -analyzer-checker-help, we only have access to a CompilerInstance class, that is before the point of parsing the AST. CheckerManager makes little sense without ASTContext, so I made some changes and added new constructors to make it constructible for the use of help flags. Differential Revision: https://reviews.llvm.org/D75360
-
Yaxun (Sam) Liu authored
Differential Revision: https://reviews.llvm.org/D70172
-
zoecarver authored
This patch fixes 2586. Just tests. NFC. Differential Revision: https://reviews.llvm.org/D63050
-
- Mar 23, 2020
-
-
Chris Lattner authored
Summary: This allows the custom parser/printer hooks to do interesting things with the SSA names. This patch: - Adds a new 'getResultName' method to OpAsmParser that allows a parser implementation to get information about its result names, along with a getNumResults() method that allows op parser impls to know how many results are expected. - Adds a OpAsmPrinter::printOperand overload that takes an explicit stream. - Adds a test.string_attr_pretty_name operation that uses these hooks to do fancy things with the result name. Reviewers: rriddle! Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76205
-
Reid Kleckner authored
Otherwise, the Win64 unwinder considers direct branches to such empty trailing BBs to be a branch out of the function. It treats such a branch as a tail call, which can only be part of an epilogue. If the unwinder misclassifies such a branch as part of the epilogue, it will fail to unwind the stack further. This can lead to bad stack traces, or failure to handle exceptions properly. This is described in https://llvm.org/PR45064#c4, and by the comment at the top of the X86AvoidTrailingCallPass.cpp file. It should be safe to insert int3 for such blocks. An empty trailing BB that reaches this pass is pretty much guaranteed to be unreachable. If a program executed such a block, it would fall off the end of the function. Most of the complexity in this patch comes from threading through the "EHFuncletEntry" boolean on the MIRParser and registering the pass so we can stop and start codegen around it. I used an MIR test because we should teach LLVM to optimize away these branches as a follow-up. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D76531
-
Sanjay Patel authored
This is NFC-ish. The results should be identical, but perf is hopefully better with the fast-path for no scaling. Added a unit test for that. The code is adapted from what used to be the DAGCombiner equivalent function before D76508 (rG0eeee83d).
-