- Jan 18, 2022
-
-
Nicolas Vasilache authored
Differential revision: https://reviews.llvm.org/D117323
-
Victor Perez authored
Split vp.reduction.* intrinsics by splitting the vector to reduce in two halves, perform the reduction operation in each one of them and accumulate the results of both operations. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117469
-
Pavel Labath authored
Return our PythonObject wrappers instead of raw PyObjects (obfuscated as void *). This ensures that ownership (reference counts) of python objects is automatically tracked. Differential Revision: https://reviews.llvm.org/D117462
-
Nicolas Vasilache authored
Differential revision: https://reviews.llvm.org/D117326
-
Alex Zinenko authored
The constructor function was being defined without indicating its "__init__" name, which made it interpret it as a regular fuction rather than a constructor. When overload resolution failed, Pybind would attempt to print the arguments actually passed to the function, including "self", which is not initialized since the constructor couldn't be called. This would result in "__repr__" being called with "self" referencing an uninitialized MLIR C API object, which in turn would cause undefined behavior when attempting to print in C++. Fix this by specifying the correct name. This in turn uncovers the fact the the mechanism used by PybindAdaptors.h to bind constructors directly as "__init__" functions taking "self" is deprecated by Pybind. Instead, leverage the fact that the adaptors are intended for attrbutes/types that cannot have additional data members and are all ultimately instances of "PyAttribute"/"PyType" C++ class. In constructors of derived classes, construct an instance of the base class first, then steal its internal pointer to the C++ object to construct the instance of the derived class. On top of that, the definition of the function was incorrectly indicated as the method on the "None" object instead of being the method of its parent class. This would result in a second problem when Pybind would attempt to print warnings pointing to the parent class since the "None" does not have a "__name__" field or its C API equivalent. Fix this by specifying the correct parent class by looking it up by name in the parent module. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D117325
-
Haojian Wu authored
The early-claim hack was removed in 96f5cc1e, we see a regression about captured var-decl in lambda. Fixes https://github.com/clangd/clangd/issues/990. Differential Revision: https://reviews.llvm.org/D117472
-
Nikita Popov authored
Integrate intersection with assumes into getBlockValue(), to ensure that it is consistently performed. We were doing it in nearly all places, but for example missed it for select inputs.
-
Nikita Popov authored
The incoming values of selects are currently not intersected with assumes.
-
Florian Hahn authored
The file uses std::ratio without including the correct header. Previously ratio was indirectly provided through chrono in libc++ but that's not the case any longer. This should fix a build failure with modules enabled: https://green.lab.llvm.org/green/job/clang-stage2-Rthinlto/5185/console
-
Bjorn Pettersson authored
Commit 2bddab25 removed a piece of code from DwarfDebug::emitDebugLocEntry that according to code comments "Make sure comments stay aligned". This patch restores that piece of code, together with the addition of some extra checks in an existing lit test to work as a regression test. Without this patch we incorrectly get .byte 159 # 0 instead of .byte 159 # DW_OP_stack_value Differential Revision: https://reviews.llvm.org/D117441
-
Kirill Bobyrev authored
This is a follow-up on D116643. `isInSystemHeader` check already detects symbols coming from the Standard Library, so searching for the qualified name in StdSymbolMap.inc is no longer necessary. The tests filtering out purely based on the symbol qualified names are removed. Reviewed By: hokein Differential Revision: https://reviews.llvm.org/D117491
-
David Sherwood authored
This reverts commit 197f3c0d. Reverting after miscompilation errors discovered with ffmpeg.
-
pvellien authored
After D116332, some icmps no longer fold with the target-independent constant folder. The SimplifyCFG code assumed that the comparison would always fold, which is not guaranteed. Explicitly check that the result is either true or false. Differential Revision: https://reviews.llvm.org/D117184
-
Kagami Sascha Rosylight authored
This fixes https://github.com/llvm/llvm-project/issues/53112 by adding cppwinrt to the include path when the SDK version is higher than 10.0.17134.0. Differential revision: https://reviews.llvm.org/D117407
-
Christudasan Devadasan authored
Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D116819
-
Lian Wang authored
Zbc extension: CLMUL/CLMULR/CLMULH are grouped together, defined one schedule class. Zbs extension: BCLR/BSET/BINV/BEXT are grouped together, defined one schedule class. BCLRI/BSETI/BINVI/BEXTI are grouped together, defined one schedule class. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117538
-
Stanislav Gatev authored
Since Environment's setValue method already does part of the work that initValueInStorageLocation does, we can factor out a new createValue method to reduce the duplication. This is part of the implementation of the dataflow analysis framework. See "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev. Reviewed-by: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D117493
-
Carl Ritson authored
Switch wqm.ll to be autogenerated. Replace gfx6 and gfx8 targets with gfx9 (wave64) and gfx10 (wave32). Reviewed By: kmitropoulou Differential Revision: https://reviews.llvm.org/D117455
-
Mehdi Amini authored
In c8e047f5 the default for useDefault{Type/Attribute}PrinterParser was changed in ODS, restore the old value explicitly for the FirDialect.
-
jacquesguan authored
Add patterns for vector widening floating-point multiply Differential Revision: https://reviews.llvm.org/D117530
-
Mehdi Amini authored
Also make the ODS Operator class have const iterator, and use const references for existing API taking Operator by reference. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117516
-
Mehdi Amini authored
This saves some copies of non-trivial objects, flagged by Coverity. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117525
-
John Ericson authored
I am breaking apart D99484 so the cause of build failures is easier to understand. Differential Revision: https://reviews.llvm.org/D117417
-
Mehdi Amini authored
The majority of dialects reimplement the same boilerplate over and over, switching the default makes it for better discoverability and make it simpler to implement new dialects. Differential Revision: https://reviews.llvm.org/D117524
-
Lang Hames authored
This is a counterpart to Platform::setupJITDylib, and is called when JITDylib instances are removed (via ExecutionSession::removeJITDylib). Upcoming MachOPlatform patches will use this to clear per-JITDylib data when JITDylibs are removed.
-
Han-Kuan Chen authored
Currently, users expected VL is the last operand. However, since some intrinsics has tail policy in the last operand, this rule cannot be used anymore. Reviewed By: craig.topper, frasercrmck Differential Revision: https://reviews.llvm.org/D117452
-
Han-Kuan Chen authored
Current SplatOperand starts from 1 because operand 0 (or 1) is intrinsic id in SelectionDAG. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117453
-
jacquesguan authored
Add patterns for Vector Widening Floating-Point Add/Subtract Instructions Differential Revision: https://reviews.llvm.org/D117466
-
Alexander Shaposhnikov authored
-
Lang Hames authored
-
Shao-Ce SUN authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117448
-
Sanjay Patel authored
A possible codegen regression for PowerPC is noted in D117406 because we don't recognize a pattern that demands only 1 byte from a bswap. This fold has existed in IR since close to the beginning of LLVM: https://github.com/llvm/llvm-project/blame/main/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp#L794 ...so this patch copies that code as much as possible and adapts it for SDAG. The test for PowerPC that would change in D117406 is over-reduced with undefs, so I recreated it for AArch64 and x86 by passing in pointer args and renamed the values to make the logic clearer. Differential Revision: https://reviews.llvm.org/D117508
-
Mehdi Amini authored
These aren't small object, fix Coverity report.
-
Philip Reames authored
We can generalize the malloc-to-global transform for other allocation functions which are both a) removable, and b) have a known initialization value. One subtlety that I want to point out - mostly because I hadn't realized it was true until I took a closer look - is that the existing code doesn't prove that initialization/malloc happens only once. The initialization function can be called multiple times. This is correct without special handling for malloc as undef can map to any value previously written, but a non-undef initializing allocation it means we may end up memseting the new global repeatedly. In particular, this means it's not legal to fold the memset into the initializer of the global. Differential Revision: https://reviews.llvm.org/D117503
-
Philip Reames authored
-
Craig Topper authored
For fixed vectors, the undef will get expanded to an all zeros build_vector. We don't want that so suppress creating the insert_subvector. Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D117379
-
Craig Topper authored
We were considering this legal, but later the undef would become an all zeros vector. This would cause us to need to re-legalize the insert later into a vslideup with zero vector. This patch catches the case and directly legalizes it to a scalable insert. Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D117377
-
Joseph Huber authored
This patch adds the `cold` attribute to the keepAlive functions in the RTL. This dummy function exists to keep certain RTL calls alive without them being optimized out, but it is never called and can be declared cold. This also helps some erroneous remarks being given on this function because it has weak linkage and cannot be made internal. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D117513
-
Fangrui Song authored
-
Arthur O'Dwyer authored
This essentially reverts e02ed1c2 and puts in a new fix, which makes `path::iterator` a true C++20 `bidirectional_iterator`, but downgrades it to an `input_iterator` in C++17. Fixes #37852. Differential Revision: https://reviews.llvm.org/D116489
-