- Mar 25, 2021
-
-
Thomas Preud'homme authored
FindAvailableLoadedValue() relies on FindAvailablePtrLoadStore() to run the alias analysis when searching for an equivalent value. However, FindAvailablePtrLoadStore() calls the alias analysis framework with a memory location for the load constructed from an address and a size, which thus lacks TBAA metadata info. This commit modifies FindAvailablePtrLoadStore() to accept an optional memory location as parameter to allow FindAvailableLoadedValue() to create it based on the load instruction, which would then have TBAA metadata info attached. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D99206
-
Alexey Bataev authored
If emit inlined region for master/critical directives, no need to clear lambda/block context data, otherwise the variables cannot be found and it causes a crash at compile time. Differential Revision: https://reviews.llvm.org/D99280
-
Thomas Preud'homme authored
(D99206)
-
Alexandre Ganea authored
As reported here: https://bugs.llvm.org/show_bug.cgi?id=48378#c0 and here: https://github.com/rust-lang/rust/issues/81051 since 79657e23, some programs such as llvm-ar don't work properly on Windows 7. The issue is shown in the snippet by Oleksandr Prodan: https://pastebin.com/v51m3uBU In essence, once the 'DeleteFile' flag has been set on FILE_DISPOSITION_INFO, the file path can't be queried anymore with GetFinalPathNameByHandleW. This however works on Windows 10, GetFinalPathNameByHandleW would return sucessfully. To workaround the issue, we simply reset the 'DeleteFile' flag before even checking if we're dealing with a network file. Tested with `llvm-ar r empty.a a.obj` ran on a network mount. At the moment, we cannot specifically add a test coverage for this, since it requres mounting a network drive.
-
Nikita Popov authored
This produced a compile error with GCC: llvm-project/polly/lib/Transform/ScheduleOptimizer.cpp:1220:49: error: cannot convert ‘bool’ to ‘llvm::TargetTransformInfo::RegisterKind’ 1220 | RegisterBitwidth = TTI->getRegisterBitWidth(true);
-
Aaron Puchert authored
The original implementation didn't fire on non-template classes when a base class was an instantiation of a template with a dependent base. In that case the base of the base is dependent as seen from the base, but not from the class we're interested in, which isn't a template. Also it simplifies the code a lot. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D98724
-
David Green authored
This UpperBound unrolling was already enabled so long as a series of conditions in ARMTTIImpl::getUnrollingPreferences pass. This just always enables it as it can help fully unroll loops that would not otherwise pass those tests. Differential Revision: https://reviews.llvm.org/D99174
-
Sanjay Patel authored
-
Jianzhou Zhao authored
Supported strrchr, strrstr, strto*, recvmmsg, recrmsg, nanosleep, memchr, snprintf, socketpair, sprintf, getocketname, getsocketopt, gettimeofday, getpeername. strcpy was added because the test of sprintf need it. It will be committed by D98966. Please ignore it when reviewing. This is a part of https://reviews.llvm.org/D95835. Reviewed By: gbalats Differential Revision: https://reviews.llvm.org/D99109
-
Thomas Preud'homme authored
-
Matt Morehouse authored
Use `#if SANITIZER_LINUX` instead of `#if defined(...)`.
-
Roman Lebedev authored
-
- Mar 24, 2021
-
-
Konstantin Zhuravlyov authored
- Add target id support (https://clang.llvm.org/docs/ClangOffloadBundler.html#target-id) - Add code object v4 support (https://llvm.org/docs/AMDGPUUsage.html#elf-code-object) - Add kernarg_size to kernel descriptor - Change trap handler ABI to no longer move queue pointer into s[0:1] - Cleanup ELF definitions - Add V2, V3, V4 suffixes to make a clear distinction for code object version - Consolidate note names Differential Revision: https://reviews.llvm.org/D95638
-
Tim Keith authored
Binding labels start as expressions but they have to evaluate to constant character of default kind, so they can be represented as an std::string. Leading and trailing blanks have to be removed, so the folded expression isn't exactly right anyway. So all BIND(C) symbols now have a string binding label, either the default or user-supplied one. This is recorded in the .mod file. Add WithBindName mix-in for details classes that can have a binding label so that they are all consistent. Add GetBindName() and SetBindName() member functions to Symbol. Add tests that verifies that leading and trailing blanks are ignored in binding labels and that the default label is folded to lower case. Differential Revision: https://reviews.llvm.org/D99208
-
Dmitri Gribenko authored
-
Matt Morehouse authored
mremap is only available on Linux.
-
David Green authored
-
Tobias Gysi authored
All linalg operations having a region builder shall call it during op creation. Calling it during vectorization is obsolete. Differential Revision: https://reviews.llvm.org/D99168
-
Sanjay Patel authored
Potential missing fold noted in D98152
-
Sander de Smalen authored
This patch changes the interface to take a RegisterKind, to indicate whether the register bitwidth of a scalar register, fixed-width vector register, or scalable vector register must be returned. Reviewed By: paulwalker-arm Differential Revision: https://reviews.llvm.org/D98874
-
Nico Weber authored
This reverts commit 50fd426f and tweaks things for the reland: SystemZAsmLexer is now SystemZAsmLexerTests.
-
Nashe Mncube authored
The VSelectCombine handler within AArch64ISelLowering, uses an interface call which only expects fixed vectors. This generates a warning when the call is made on a scalable vector. This warning has been suppressed with this change, by using the ElementCount interface, which supports both fixed and scalable vectors. I have also added a regression test which recreates the warning. Differential Revision: https://reviews.llvm.org/D98249
-
Michael Kruse authored
The targets polly-update-format and check-polly-format process new files only after running cmake again. This is why it was missed in the last commit.
-
Anirudh Prasad authored
- https://reviews.llvm.org/rGb605cfb336989705f391d255b7628062d3dfe9c3 was reverted due to sanitizer bugs in the introduced unit-test (specifically in the Address sanitizer https://lab.llvm.org/buildbot/#/builders/5/builds/5697) - This patch attempts to rectify that, as well as re-factor parts of the test - The issue was previously, within the `setupCallToAsmParser` function in the unit-test, `SrcMgr` was declared as a local variable. `SrcMgr` owns a unique pointer. Since the variable goes out of scope at the end of the function, the unique pointer is released. - This patch, moves the declaration of the `SrcMgr` variable to a class field, since the scope will remain until the class's destructor is invoked (which in this case is at the end of the unit test) - Furthermore, this patch also moves the `MCContext Ctx` declaration from a local variable instance inside a function, to a unique pointer class field. This ensures the instantiation of the MCContext remains until the tear down of the test. Reviewed By: abhina.sreeskantharajan Differential Revision: https://reviews.llvm.org/D99004
-
Alex Zinenko authored
Index type is an integer type of target-specific bitwidth present in many MLIR operations (loops, memory accesses). Converting values of this type to fixed-size integers has always been problematic. Introduce a data layout entry to specify the bitwidth of `index` in a given layout scope, defaulting to 64 bits, which is a commonly used assumption, e.g., in constants. Port builtin-to-LLVM type conversion to use this data layout entry when converting `index` type and untie it from pointer size. This is particularly relevant for GPU targets. Keep a possibility to forcibly override the index type in lowerings. Depends On D98525 Reviewed By: herhut Differential Revision: https://reviews.llvm.org/D98937
-
Alex Zinenko authored
Even if the layout specification is missing from an op that supports it, the op is still expected to provide meaningful responses to data layout queries. Forward them to the op instead of directly calling the default implementation. Depends On D98524 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D98525
-
Alex Zinenko authored
This is useful for bit-packing types such as vectors and tuples as well as for exotic architectures that have non-8-bit bytes. Depends On D98500 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D98524
-
Alex Zinenko authored
ModuleOp is a natural place to provide scoped data layout information. However, it is undesirable for ModuleOp to implement the entirety of DataLayoutOpInterface because that would require either pushing the interface inside the IR library instead of a separate library, or putting the default implementation of the interface as inline functions in headers leading to binary bloat. Instead, ModuleOp accepts an arbitrary data layout spec attribute and has a dedicated hook to extract it, and DataLayout is modified to know about ModuleOp particularities. Reviewed By: herhut, nicolasvasilache Differential Revision: https://reviews.llvm.org/D98500
-
Simon Pilgrim authored
If we're truncating to vXi1 from a wider type, then prefer the original wider vector as is simplifies folding the separate truncations + extensions. AVX1 this is only worth it for v8i1 cases, not v4i1 where we're always better off truncating down to v4i32 for movmsk. Helps with some regressions encountered in D96609
-
Dmitry Polukhin authored
This diff patch fixes issue with new line character after check name and before comma. Also ignores all other types of spaces like TAB. Test Plan: ninja check-clang-tools Differential Revision: https://reviews.llvm.org/D99180
-
Marek Kurdej authored
As an extension, accept such lambdas in previous standards with a warning. * http://eel.is/c++draft/expr.prim.lambda * http://wg21.link/P1102 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D98433
-
Stefan Pintilie authored
Add an option to tell the compiler that it can use privileged instructions. This patch only adds the option. Backend implementation will be added in a future patch. Reviewed By: lei, amyk Differential Revision: https://reviews.llvm.org/D99193
-
Vinicius Tinti authored
The option `--prefix-strip` is only used when `--prefix` is not empty. It removes N initial directories from absolute paths before adding the prefix. This matches GNU's objdump behavior. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D96679
-
Haojian Wu authored
incomplete type. Differential Revision: https://reviews.llvm.org/D99165
-
Joseph Huber authored
Summary: Currently the OMPIRBuilder overwrites the function's existing attributes when it assigns the ones defined in OMPKinds.def. This changes the behaviour to append the current function's attributes with them instead. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D98740
-
Anastasia Stulova authored
Files compiled with C++ for OpenCL mode can now have a distinct file extension - clcpp, then clang driver picks the compilation mode automatically (-x clcpp) without the use of -cl-std=clc++. Differential Revision: https://reviews.llvm.org/D96771
-
Alexey Bataev authored
Removed redundant code for IsConsecutive variable.
-
Nico Weber authored
-
Nicolas Vasilache authored
Fix the BlockAndValueMapping update that was missing entries for scf.for op's blockIterArgs. Skip cloning subtensors of the padded tensor as the logic for these is separate. Add a filter to drop side-effecting ops. Tests are beefed up to verify the IR is sound in all hoisting configurations for 2-level 3-D tiled matmul. Differential Revision: https://reviews.llvm.org/D99255
-