- Mar 24, 2021
-
-
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
-
Simon Pilgrim authored
Prefer broadcast from scalar on AVX targets as this makes it easier for later folds to strip away bitcasts etc. This helps a lot with the AVX1 poor codegen from PR49658. There's a trivial regression in bitcast-int-to-vector-bool-*ext.ll tests due to SimplifyDemandedBits not being able to see a multi-use case, but there's bigger existing codegen issues to be addressed first in those tests (unnecessary NOTs).
-
Andrea Di Biagio authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Cleanup the gather_v8i32_v8i32 IR to more closely match how the middle-end will optimise the vector geps (exposing more splats). This helps the gather scalarization case a lot, but shows a missed opportunity for AVX512 gathers to recognise uniform-constant indices. And none of the cases realise that some of the gathers are really blended broadcasts....
-
alex-t authored
Folding EXEC copy into it's single use may lead to constant bus constraint violation as it adds one more SGPR operand. This change makes it validate the user instruction with the new SGPR operand and only fold it if it is legal. Reviewed By: rampitec, arsenm Differential Revision: https://reviews.llvm.org/D98888 -
David Zarzycki authored
This reverts commit dd391e1e. This patch causes 17 LLDB test regressions on Fedora 33 (x86-64).
-
Florian Hahn authored
We know if the loop contains FP instructions preventing vectorization after we are done with legality checks. This patch updates the code the check for un-vectorizable FP operations earlier, to avoid unnecessarily running the cost model and picking a vectorization factor. It also makes the code more direct and moves the check to a position where similar checks are done. I might be missing something, but I don't see any reason to handle this check differently to other, similar checks. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D98633
-
Jan Svoboda authored
This patch documents how `ModuleDepCollector{,PP}` work and what their members store. Also renames somewhat vague `MainDeps` to `FileDeps` and `Deps` to `ModularDeps`. Depends on D98943. Reviewed By: Bigcheese Differential Revision: https://reviews.llvm.org/D98950 -
Jan Svoboda authored
This patch extracts the `ModuleName` and `ContextHash` members of `ClangModuleDep`, `FullDependencies` and `ModuleDeps` into a single struct `ModuleID`. This makes it easier to understand how the full dependency graph works. Reviewed By: Bigcheese, dexonsmith Differential Revision: https://reviews.llvm.org/D98943
-
Andrew Savonichev authored
This is a follow-up for: D98604 [MCA] Ensure that writes occur in-order When instructions are aligned by the order of writes, they retire in-order naturally. There is no need for an RCU, so it is disabled. Differential Revision: https://reviews.llvm.org/D98628
-
Stefan Pintilie authored
In order to have the same option on power PC LLVM and power PC gcc the option will be changed from -mrop-protection to -mrop-protect. The feature will be off by default and turned on when the option is used. Reviewed By: lei, amyk Differential Revision: https://reviews.llvm.org/D99185
-
Gabor Marton authored
-
Ella Ma authored
Required by D83660. Test cases may want to use the host compiler to compile some mocks for the test case. This patch adds two substitutions `%host_cc` and `%host_cxx` to use the host compilers set via variable `CMAKE_C_COMPILER` and `CMAKE_CXX_COMPILER`. Patch by Ella Ma! Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D98918
-
Roman Lebedev authored
-
Vladislav Vinogradov authored
Use new `MemRefType::getMemorySpace` method with generic Attribute in cases, where there is no specific logic around the memory space. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D99154
-
Ta-Wei Tu authored
-
Ta-Wei Tu authored
The `InductionPHI` is not necessarily the increment instruction, as demonstrated in pr49571.ll. This patch removes the assertion and instead bails out from the `LoopFlatten` pass if that happens. This fixes https://bugs.llvm.org/show_bug.cgi?id=49571 Reviewed By: SjoerdMeijer Differential Revision: https://reviews.llvm.org/D99252
-
Ta-Wei Tu authored
Reviewed By: SjoerdMeijer, fhahn Differential Revision: https://reviews.llvm.org/D99251
-
Martin Storsjö authored
When building in MSVC mode (in release mode), the assert(false) don't make the end of the function unreachable, so add return statements to silence compiler warnings (treated as errors). Also change 'virtual' into 'override', which was requested in review, as these files require C++11. Differential Revision: https://reviews.llvm.org/D99214
-
Raphael Isemann authored
This got removed in 68bb51ac and this enabled the test on macOS (where it just causes lldb-server to crash). Re-adding the decorator to get the tests passing again.
-
Jason Molenda authored
I was playing around with main bin spec LC_NOTEs and noticed a small oversight in the parsing of user process corefile notes.
-
Nigel Perks authored
XCore default subtarget does not support 8-byte stack alignment. These failures can be seen on builder clang-xcore-ubuntu-20-x64 on staging buildbot. Differential Revision: https://reviews.llvm.org/D99092
-
Yvan Roux authored
Now that AArch64 mapping symbols are correctly handled by llvm-symbolizer this test can be re-enabled on that target.
-
Andy Wingo authored
This commit adds a full WasmTableType to MCSymbolWasm, differing from the current situation (just an ElemType) in that it additionally records a WasmLimits. We add support for specifying the limits in .S files also, via the following syntax variations: .tabletype SYM, ELEMTYPE .tabletype SYM, ELEMTYPE, MINSIZE .tabletype SYM, ELEMTYPE, MINSIZE, MAXSIZE Depends on D99186. Differential Revision: https://reviews.llvm.org/D99191
-
Mehdi Amini authored
This mechanism makes it possible for a dialect to not register all operations but still answer interface-based queries. This can useful for dialects that are "open" or connected to an external system and still interoperate with the compiler. It can also open up the possibility to have a more extensible compiler at runtime: the compiler does not need a pre-registration for each operation and the dialect can inject behavior dynamically. Reviewed By: rriddle, jpienaar Differential Revision: https://reviews.llvm.org/D93085
-
Balázs Kéri authored
Reviewed By: shafik Differential Revision: https://reviews.llvm.org/D99188
-
Andy Wingo authored
This patch renames the "Initial" member of WasmLimits to the name used in the spec, "Minimum". In the core WebAssembly specification, the Limits data type has one required "min" member and one optional "max" member, indicating the minimum required size of the corresponding table or memory, and the maximum size, if any. Although the WebAssembly spec does instantiate locally-defined tables and memories with the initial size being equal to the minimum size, it can't impose such a requirement for imports. It doesn't make sense to require an initial size for a memory import, for example. The compiler can only sensibly express the minimum and maximum sizes. See https://github.com/WebAssembly/js-types/blob/master/proposals/js-types/Overview.md#naming-of-size-limits for a related discussion that agrees that the right name of "initial" is "minimum" when querying the type of a table or memory from JavaScript. (Of course it still makes sense for JS to speak in terms of an initial size when it explicitly instantiates memories and tables.) Differential Revision: https://reviews.llvm.org/D99186
-
Fangrui Song authored
This is used by Fuchsia for a Debian jessie based sysroot.
-
Jason Molenda authored
Depending on include order, these can cause build errors when including the llvm MachO.h where these are defined as enums. Update the list to include some more names.
-
Jim Lin authored
Copysign from double and to double patterns have lack of HasStdExtD predicate. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D99234
-
Alex Orlov authored
This fixes https://bugs.llvm.org/show_bug.cgi?id=48009 bug. Reviewed By: erik.pilkington, krisb Differential Revision: https://reviews.llvm.org/D98687
-
Fangrui Song authored
-
Michael Kruse authored
-
Chuanqi Xu authored
-
Nemanja Ivanovic authored
There are a number of functions in altivec.h that use vector __int128 which isn't supported on AIX. Those functions need to be guarded for targets that don't support the type. Furthermore, the functions that produce quadword instructions without using the type need a builtin. This patch adds the macro guards to altivec.h using the __SIZEOF_INT128__ which is only defined on targets that support the __int128 type.
-
Max Kazantsev authored
The original comment says the same thing twice, and does not mention that edges entering the block are also in the same bundle (which seems true from what the underlying code is doing). Differential Revision: https://reviews.llvm.org/D99144 Reviewed By: RKSimon
-