- Feb 11, 2022
-
-
Shubham Sandeep Rastogi authored
This change adds support for dsymutil to be able to dump out the new swift5 reflection sections called swift5_proto and swift5_protos. The test is also updated to check for this. Differential Revision: https://reviews.llvm.org/D119310
-
Douglas Yung authored
The test sometimes fails on Windows due to a warning emitted by bash about not being able to find the /tmp directory causing this test to randomly fail. This update makes the test more flexible to account for this possibility and should hopefully make it more reliable. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D118691
-
Shubham Sandeep Rastogi authored
Build Failure: https://green.lab.llvm.org/green/job/lldb-cmake/41267/ Differential Revision: https://reviews.llvm.org/D119473
-
Aart Bik authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D119465
-
Teresa Johnson authored
Minor efficiency fix. There is no reason to perform the same set lookup repeatedly in the inner loop as it is invariant there. Differential Revision: https://reviews.llvm.org/D119474
-
Aaron Ballman authored
A significant number of our tests in C accidentally use functions without prototypes. This patch converts the function signatures to have a prototype for the situations where the test is not specific to K&R C declarations. e.g., void func(); becomes void func(void); This is the seventh batch of tests being updated (there are a significant number of other tests left to be updated).
-
David Green authored
-
Simon Pilgrim authored
Remove superfluous variable initialization, the variable is assigned by both paths immediately afterward.
-
River Riddle authored
These functions allow for defining pattern fragments usable within the `match` and `rewrite` sections of a pattern. The main structure of Constraints and Rewrites functions are the same, and are similar to functions in other languages; they contain a signature (i.e. name, argument list, result list) and a body: ```pdll // Constraint that takes a value as an input, and produces a value: Constraint Cst(arg: Value) -> Value { ... } // Constraint that returns multiple values: Constraint Cst() -> (result1: Value, result2: ValueRange); ``` When returning multiple results, each result can be optionally be named (the result of a Constraint/Rewrite in the case of multiple results is a tuple). These body of a Constraint/Rewrite functions can be specified in several ways: * Externally In this case we are importing an external function (registered by the user outside of PDLL): ```pdll Constraint Foo(op: Op); Rewrite Bar(); ``` * In PDLL (using PDLL constructs) In this case, the body is defined using PDLL constructs: ```pdll Rewrite BuildFooOp() { // The result type of the Rewrite is inferred from the return. return op<my_dialect.foo>; } // Constraints/Rewrites can also implement a lambda/expression // body for simple one line bodies. Rewrite BuildFooOp() => op<my_dialect.foo>; ``` * In PDLL (using a native/C++ code block) In this case the body is specified using a C++(or potentially other language at some point) code block. When building PDLL in AOT mode this will generate a native constraint/rewrite and register it with the PDL bytecode. ```pdll Rewrite BuildFooOp() -> Op<my_dialect.foo> [{ return rewriter.create<my_dialect::FooOp>(...); }]; ``` Differential Revision: https://reviews.llvm.org/D115836 -
River Riddle authored
This allows for defining simple patterns in a single line. The lambda body of a Pattern expects a single operation rewrite statement: ``` Pattern => replace op<my_dialect.foo>(operands: ValueRange) with operands; ``` Differential Revision: https://reviews.llvm.org/D115835
-
Martin Storsjö authored
This brings the mingw build back to zero build warnings as it was at some earlier time. Differential Revision: https://reviews.llvm.org/D119134
-
Simon Pilgrim authored
The pointer is dereferenced immediately, so assert the cast is correct instead of returning nullptr
-
Simon Pilgrim authored
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D119329
-
Philip Reames authored
This exploits the immutability introduced in d334fec1.
-
Huihui Zhang authored
Test simplified: test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir
-
YASHASVI KHATAVKAR authored
-
YASHASVI KHATAVKAR authored
-
YASHASVI KHATAVKAR authored
-
YASHASVI KHATAVKAR authored
-
YASHASVI KHATAVKAR authored
-
YASHASVI KHATAVKAR authored
-
YASHASVI KHATAVKAR authored
-
YASHASVI KHATAVKAR authored
-
serge-sans-paille authored
Most notably, llvm/Object/Binary.h no longer includes llvm/Support/MemoryBuffer.h llvm/Object/MachOUniversal*.h no longer include llvm/Object/Archive.h llvm/Object/TapiUniversal.h no longer includes llvm/Object/TapiFile.h llvm-project preprocessed size: before: 1068185081 after: 1068324320 Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup Differential Revision: https://reviews.llvm.org/D119457
-
Louis Dionne authored
We are moving away from building the runtimes with LLVM_ENABLE_PROJECTS, however the documentation was largely outdated. This commit updates all the documentation I could find to use LLVM_ENABLE_RUNTIMES instead of LLVM_ENABLE_PROJECTS for building runtimes. Note that in the near future, libcxx, libcxxabi and libunwind will stop supporting being built with LLVM_ENABLE_PROJECTS altogether. I don't know what the plans are for other runtimes like libc, openmp and compiler-rt, so I didn't make any changes to the documentation that would imply something for those projects. Once this lands, I will also cherry-pick this on the release/14.x branch to make sure that LLVM's documentation is up-to-date and reflects what we intend to support in the future. Differential Revision: https://reviews.llvm.org/D119351
-
Evgenii Stepanov authored
Summary: This is neccessary to support solaris/sparc9 where some userspace addresses have all top bits set, as well as, potentially, kernel memory on aarch64. This change does not update the compiler side (HWASan IR pass) which needs to be done separately for the affected targets. Reviewers: ro, vitalybuka Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D91827
-
Johannes Doerfert authored
New users might want to check bins without a load or store instruction at hand. Since we use those instructions only to find the offset and size of the access anyway, we can expose an offset and size interface to the outside world as well. This commit mainly moves code around and exposes a class (OffsetAndSize) as well as a method forallInterferingAccesses in AAPointerInfo. Differential Revision: https://reviews.llvm.org/D119249
-
Johannes Doerfert authored
The oversight caused us to ignore call sites that are effectively dead when we computed reachability (or more precise the call edges of a function). The problem is that loads in the readonly callee might depend on stores prior to the callee. If we do not track the call edge we mistakenly assumed the store before the call cannot reach the load. The problem is nicely visible in: `llvm/test/Transforms/Attributor/ArgumentPromotion/basictest.ll` Caused by D118673. Fixes https://github.com/llvm/llvm-project/issues/53726
-
Johannes Doerfert authored
When we privatize a pointer (~argument promotion) we introduce new private allocas as replacement. These need to be placed in the alloca address space as later passes cannot properly deal with them otherwise. Fixes https://github.com/llvm/llvm-project/issues/53725
-
Vitaly Buka authored
#53721 suggests that it should work after https://reviews.llvm.org/D119461
-
Krzysztof Drewniak authored
Having clarified that executing the SerializeToHsaco pass can depend on a ROCm installation, switch from calling lld as a library to using the copy of lld guaranteed to be included in a ROCm install. This removes the workaround introduced in D119277 Reviewed By: whchung Differential Revision: https://reviews.llvm.org/D119463
-
Peter Klausler authored
The second argument to the ASSOCIATED intrinsic must be a valid pointer or target. The test for this property only checked the last symbol in a data-reference, but any symbol in the reference with the POINTER or TARGET attribute will do. Differential Revision: https://reviews.llvm.org/D119450
-
Kirill Bobyrev authored
This prevents matching of defaulted comparison operators. Resolves: https://github.com/llvm/llvm-project/issues/53355 Author: Febbe (Fabian Keßler)
-
Nikolas Klauser authored
Add vector<bool>::reference::operator(bool) const Reviewed By: Quuxplusone, ldionne, #libc Spies: BRevzin, libcxx-commits Differential Revision: https://reviews.llvm.org/D117736
-
Michael Jones authored
the vector class, due to being dynamically resized, needs malloc. This fixes the build so that it only includes it when malloc should be available. Differential Revision: https://reviews.llvm.org/D119464
-
Michał Górny authored
Fix passing the port and IP address with the wrong endianness in get_sock_peer_name() that causes the connect() to fail inside without an outgoing network interface (it's trying to connect to 1.0.0.127 instead of 127.0.0.1). Differential Revision: https://reviews.llvm.org/D119461
-
Shilei Tian authored
This patch refines the logic to determine grid size as previous method can escape the check of whether `CudaBlocksPerGrid` could be greater than the actual hardware limit. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D119311
-
Adrian Prantl authored
to work around build failure introduced in https://reviews.llvm.org/D119036
-
Michael Jones authored
Add a basic implementation of the vector class for use internally to LLVM-libc. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D118954
-