- Nov 10, 2021
-
-
Joseph Huber authored
This patch removes the assumption propagation that was added in D110655 primarily to get assumption informatino on opaque call sites for optimizations. The analysis done in D111445 allows us to do this more intelligently in the back-end. Depends on D111445 Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D111463
-
Joseph Huber authored
This patch uses the abstract attributor introduced in D111054 to get the assumption values instead of the `hasAssumption` function. This also calls it so assumption information should propagate throug the device where applicabile. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D111445
-
Joseph Huber authored
This patch introduces a new abstract attributor instance that propagates assumption information from functions. Conceptually, if a function is only called by functions that have certain assumptions, then we can apply the same assumptions to that function. This problem is similar to calculating the dominator set, but the assumptions are merged instead of nodes. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D111054
-
Kostya Serebryany authored
add tracing for loads and stores. The primary goal is to have more options for data-flow-guided fuzzing, i.e. use data flow insights to perform better mutations or more agressive corpus expansion. But the feature is general puspose, could be used for other things too. Pipe the flag though clang and clang driver, same as for the other SanitizerCoverage flags. While at it, change some plain arrays into std::array. Tests: clang flags test, LLVM IR test, compiler-rt executable test. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D113447
-
Saleem Abdulrasool authored
This splits out the generated headers and conditonalises them upon the target being enabled. The motivation here is that the RISCV header alone added 10MB to the resource directory, which was previously at 10MB, increasing the build size and time. This header is contributing ~50% of the size of the resource headers (~10MB). The ARM generated headers are contributing about ~10% or 1MB. This could be extended further adding only the static resource headers for the targets that the LLVM build supports. The changes to the tests for ARM mirror what the RISCV target already did and rnk identified as a possible issue. Testing: cmake -G Ninja -D LLVM_TARGETS_TO_BUILD=X86 -D LLVM_ENABLE_PROJECTS="clang;lld" ../clang ninja check-clang Differential Revision: https://reviews.llvm.org/D112890 Reviewed By: craig.topper
-
Arthur Eubanks authored
This reverts commit ee765256. Causes crashes, see comments in D104827.
-
James Y Knight authored
(Apparently no buildbots enable both examples and plugins!)
-
Itay Bookstein authored
Previously, the Backend_Emit{Nothing,BC,LL} modes did not run the LLVM verifier since it is usually added via the TargetMachine::addPassesToEmitFile method according to the DisableVerify parameter. This is called from EmitAssemblyHelper::AddEmitPasses, which is only relevant for BackendAction-s that require CodeGen. Note: * In these particular situations the verifier is added to the optimization pipeline rather than the codegen pipeline so that it runs prior to the BC/LL emission pass. * This change applies to both the old and the new PMs. * Because the clang tests use -emit-llvm ubiquitously, this change will enable the verifier for them. * A small bug is fixed in emitIFuncDefinition so that the clang/test/CodeGen/ifunc.c test would pass: the emitIFuncDefinition incorrectly passed the GlobalDecl of the IFunc itself to the call to GetOrCreateLLVMFunction for creating the resolver. Signed-off-by:Itay Bookstein <ibookstein@gmail.com> Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D113352
-
Itay Bookstein authored
Signed-off-by:
Itay Bookstein <ibookstein@gmail.com> Reviewed By: MaskRay, erichkeane Differential Revision: https://reviews.llvm.org/D112868
-
Itay Bookstein authored
Signed-off-by:
Itay Bookstein <ibookstein@gmail.com> Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D113431
-
Itay Bookstein authored
Signed-off-by:
Itay Bookstein <ibookstein@gmail.com> Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D113504
-
serge-sans-paille authored
This reverts commit 7f92a1a8. It triggers an assert, see http://45.33.8.238/linux/60293/step_9.txt "AST/Decl.h:277: llvm::StringRef clang::NamedDecl::getName() const: Assertion `Name.isIdentifier() && "Name is not a simple identifier"' failed."
-
Alexander Shaposhnikov authored
Clean up dead code in X86InstrInfo.cpp and AArch64InstrInfo.cpp Test plan: make check-all Differential revision: https://reviews.llvm.org/D111151
-
Aaron Puchert authored
We treat them as variables of course, though if they have function pointer type we treat them as functions, i.e. allow parameter and return value specifications. Just like VarDecls. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D111266
-
Aaron Puchert authored
We were doing this already for type aliases, and it deduplicates the code looking through aliases and pointers to find a function type. As a side effect, this finds two warnings that we apparently missed before. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D111264
-
Aaron Puchert authored
Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D111262
-
David Blaikie authored
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D113474
-
Nikita Popov authored
-
David Tenty authored
and to the new `runtimes` top level CMakeLists.txt since the old path is now deprecated. This requires a slight adjustment of the libcxxabi CMake, since there are required macro definitions we previously got via the `llvm/CMakeList.txt` path. Reviewed By: ldionne, #libc, #libc_abi Differential Revision: https://reviews.llvm.org/D113403
-
C. Rayroud authored
The coding style of some projects requires to have more control on space before opening parentheses. The goal is to add the support of clang-format to more projects. For example adding a space only for function definitions or declarations. This revision adds SpaceBeforeParensOptions to configure each option independently from one another. Differentiel Revision: https://reviews.llvm.org/D110833
-
Björn Schäpers authored
Differential Revision: https://reviews.llvm.org/D113320
-
serge-sans-paille authored
Detect when an identifier contains some Right-To-Left characters. This pass relates to https://trojansource.codes/ This is a recommit of 299aa4df with missing option registration fixed. Differential Revision: https://reviews.llvm.org/D112914
-
Ellis Hoag authored
This test was introduced in https://reviews.llvm.org/D112337 and breaks on mac. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D113506
-
Luís Ferreira authored
This patch adds a fuzzing helper tool for D demangler by feeding the demangler API with pseudo-random null terminated strings with the help of libfuzzer heuristics. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D111432
-
Ilya Yanok authored
Changes from commit 1db137b1 added iteration over hash map that can result in non-deterministic order. Fix that by using a SmallMapVector to preserve the order. Differential Revision: https://reviews.llvm.org/D113468
-
Gulfem Savrun Yeniceri authored
This patch fixes some issues introduced in https://reviews.llvm.org/D108942: 1) Remove the default label to fix the bots that use -Werror,-Wcovered-switch-default 2) Modify the malformed test to fix the bots that are built without zlib support 3) Modify some error messages in malformed profiles
-
David Green authored
This adds half and fptoi.sat variants of the tests in fcvt_combine.ll, and regenerates the resulting check lines.
-
Matt Arsenault authored
Update these to include -NEXT to avoid spurious changes in a future commit.
-
Andrzej Warzynski authored
This patch extends the `FIRToLLVMLowering` pass in Flang by adding a hook to transform `fir.store`/`fir.load` to `llvm.store`/`fir.load`, respectively. This is part of the upstreaming effort from the `fir-dev` branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Differential Revision: https://reviews.llvm.org/D113090 Patch originally written by: Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Nikita Popov authored
The implementation for and/or is the same, apart from the choice of exactIntersectWith() vs exactUnionWith(). Extract a common function to make future extension easier.
-
LLVM GN Syncbot authored
-
Atmn Patel authored
The existing CGOpenMPRuntimeAMDGCN and CGOpenMPRuntimeNVPTX classes are just code bloat. By removing them, the codebase gets a bit cleaner. Reviewed By: jdoerfert, JonChesterfield, tianshilei1992 Differential Revision: https://reviews.llvm.org/D113421
-
Mogball authored
In preparation for implementation subrange lookup on attributes. Depends on D113039 Reviewed By: jpienaar, Chia-hungDuan Differential Revision: https://reviews.llvm.org/D113128
-
Nikita Popov authored
Rather than testing for many specific combinations of predicates and values, compute the exact icmp regions for both comparisons and check whether they union/intersect exactly. If they do, construct the equivalent icmp for the new range. Assuming that the existing code handled all possible cases, this should be NFC. Differential Revision: https://reviews.llvm.org/D113367
-
Yonghong Song authored
For the declaration like below: int __tag1 * __tag1 __tag2 *g Commit 41860e60 ("BPF: Support btf_type_tag attribute") implemented the following encoding: VAR(g) -> __tag1 --> __tag2 -> pointer -> __tag1 -> pointer -> int Some further experiments with linux btf_type_tag support, esp. with generating attributes in vmlinux.h, and also some internal discussion showed the following format is more desirable: VAR(g) -> pointer -> __tag2 -> __tag1 -> pointer -> __tag1 -> int The format makes it similar to other modifier like 'const', e.g., const int *g which has encoding VAR(g) -> PTR -> CONST -> int Differential Revision: https://reviews.llvm.org/D113496
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D113132
-
Jorge Gorbe Moya authored
The change causes multiple clang-tidy tests to fail under ASan. This reverts commit 00769572.
-
Sanjay Patel authored
-
Mark de Wever authored
During the review of D112660 it turned out the tests for `std::forward_list::merge` are incomplete. Adds tests for the rvalue reference overloads. The tests are extended to better test the Effects [forward.list.ops]/25 and Remarks [forward.list.ops]/27 of the function: - x is empty after the merge. - Pointers and references to the moved elements of x now refer to those same elements but as members of *this. - Iterators referring to the moved elements will continue to refer to their elements, but they now behave as iterators into *this, not into x. - The algorithm is stable. Reviewed By: Quuxplusone, #libc, ldionne Differential Revision: https://reviews.llvm.org/D113364
-