- Aug 27, 2022
-
-
Florian Hahn authored
This allows re-using the utility without a VPlan object. The helper also doesn't access any data from VPlan.
-
Alexey Bataev authored
NFC.
-
Benjamin Kramer authored
-
Philip Reames authored
-
Mircea Trofin authored
This is akin to the `install` behavior. It should make build directory deletable on certain build bots.
-
Shafik Yaghmour authored
[Clang] Fix assert in Sema::LookupTemplateName so that it does not attempt an unconditional cast to TagType In Sema::LookupTemplateName(...) seeks to assert that the ObjectType is complete or being defined. If the type is incomplete it will attempt to unconditionally cast it to a TagType and not all incomplete types are a TagType. For example the type could be void or it could be an IncompleteArray. This change adds an additional check to confirm it is a TagType before attempting to check if it is incomplete or being defined Differential Revision: https://reviews.llvm.org/D132712
-
Simon Pilgrim authored
Eventually this will be part of the cost table lookup
-
Simon Pilgrim authored
The tables currently only have TCK_RecipThroughput costs, but we should now be able to add individual entries without any further refactoring
-
Mahesh Ravishankar authored
Update the implementation of `TilingInterface` for `tensor.pad` operations to allow tiling the op using the existing patterns for the interface. Verify that tests that pass with existing pad tiling patterns producer the same results through TilingInterface patterns. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D132720
-
Florian Hahn authored
Add a variation of @nested_loop_outer_iv_addrec_invariant_in_inner with the dependence sink and source swapped to extend test coverage. Also simplifies the test by removing an unneeded reduction.
-
Xiang Li authored
Put DXIL validation version into separate NamedMetadata to avoid update ModuleFlags. Currently DXIL validation version is saved in ModuleFlags in clang codeGen. Then in DirectX backend, the data will be extracted from ModuleFlags and cause rebuild of ModuleFlags. This patch will build NamedMetadata for DXIL validation version and remove the code to rebuild ModuleFlags. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D130207
-
Mahesh Ravishankar authored
The current check for form of the output indexing maps disallows generic ops that return both a reduced and unreduced value. Such an op seems like it could fall within the scope of a Strucutred op. Drop the check. The only load-bearing place this was found to cause isseus was during vectorization, but the fix for that seems to be simple. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D132716
-
Nicolas Vasilache authored
This is the counterpart of `memref.reinterpret_cast` and is useful to lift strided memref manipulation out of the LLVM dialect. Discussion: https://discourse.llvm.org/t/extracting-dynamic-offsets-strides-from-memref/64170 Differential Revision: https://reviews.llvm.org/D132243
-
- Aug 26, 2022
-
-
Corentin Jabot authored
Clang crashes when encountering an `if consteval` statement. This is the minimum fix not to crash. The fix is consistent with the current behavior of if constexpr, which does generate coverage data for the discarded branches. This is of course not correct and a better solution is needed for both if constexpr and if consteval. See https://github.com/llvm/llvm-project/issues/54419. Fixes #57377 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D132723
-
Nikolas Klauser authored
Also implement LWG3705. Fixes https://github.com/llvm/llvm-project/issues/55823 Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132338
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132341
-
Akira Hatanaka authored
that can lead to security vulnerabilities Also, fix a few places that were causing -Wshadow and -Wformat-nonliteral warnings to be emitted. This reapplies the patch that was reverted in caaafe4a because it broke Fuchsia builders. I reverted the changes I made to InstrProfData.inc and instead renamed the variables in InstrProfilingWriter.c. Also fixed a bug in function add_security_warnings that was causing it to pass -Wformat-nonliteral when the compiler doesn't support it.
-
Florian Hahn authored
Test for PR57315 based on a test provided by @kpdev42.
-
Thomas Raoux authored
parallel_insert_slice doesn't return a value therefore we shouldn't try to fold the result. The insert folding don't apply to this op. The current folding would cause pattern rewrite to not be able to converge. Differential Revision: https://reviews.llvm.org/D132668
-
Aaron Ballman authored
This addresses an accidental change in behavior from 41667a8b to get the bots back to green. However, I think there's an issue with LLDB assuming it's valid to enable support for keywords in language modes that don't support the keyword (as other parts of Clang are not expecting to be able to do that). This should fix (and others): https://lab.llvm.org/buildbot/#/builders/68/builds/38374
-
Simon Pilgrim authored
When adding cost kind support it will be easier to maintain these if we're not calculating on the fly
-
Simon Pilgrim authored
[CostModel][X86] getArithmeticInstrCost - move SLM reduceVMULWidth cost handling into the generic MUL handling This is still SLM specific atm, but converting this to more closely match the codegen from reduceVMULWidth should be straightforward
-
Simon Pilgrim authored
When adding cost kind support it will be easier to maintain these if we're not calculating on the fly
-
Paul Walker authored
AArch64TTIImpl::getSpliceCost() is now used more aggressively and LNT (MultiSource/Benchmarks/mafft) exposed a failure case for <vscale x 1 x i1>. I've tested other element types and whilst they can be costed they cannot be code generated, so this patch returns InstructionCost::getInvalid() for all cases.
-
Florian Hahn authored
Modernize the test to make it easier to extend with up-to-date IR.
-
Thomas Raoux authored
Blindly folding tensor.extract_slice makes the bufferization transformation harder. This kind of transformation should happen separatley if needed rather than doing it within makeShape that is called during tiling. Also removed makeComposedExtractSliceOp as it is not tested outside of this code. Differential Revision: https://reviews.llvm.org/D132666
-
Michael Liao authored
-
Jean Perier authored
The goal of this document is to: - Allow the community to contribute to flang design by defining the expectations. - Ensure there is a minimum of consistency between future design docs. Differential Revision: https://reviews.llvm.org/D130166
-
Florian Hahn authored
Don't waste time trying to update users in unreachable blocks.
-
Aaron Ballman authored
This addresses an accidental break from 41667a8b
-
Benjamin Kramer authored
It's still a bit weird for IdentifierTable to depend on Lex diagnostics, but we can get away with including the enum info that's in Basic already.
-
Daniil Fukalov authored
in order to propagate `InstructionCost` value upper. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D103406
-
Alexey Bataev authored
buildvector sequence, NFC.
-
Simon Pilgrim authored
See if we can remove X86ISD::ANDNP nodes by checking the state of the knownbits of the demanded elements. This is equivalent to the generic ISD::AND handling, but flips the bits of the LHS operand to account for ANDNP. Differential Revision: https://reviews.llvm.org/D128216
-
Simon Pilgrim authored
Building on D132216, use CostKindTblEntry cost tables to simplify the transition to supporting cost kinds other than recip-throughput Adding full cost kinds support is going to take a while, but by converting to CostKindTblEntry first it will make it easier to support the costs on a per-ISD basis.
-
Pavel Labath authored
Our (TCP) socket support is in a much better state than pipes. Use that for testing the Communication class. Move the CreateTCPConnectedSockets function (SocketTestUtilities.{h,cpp}) to a place where it can be used from Communication tests. -
Muhammad Usman Shahid authored
The patch diagnoses an identifier as a future keyword if it exists in a future language mode, such as: int restrict; in C modes earlier than C99. We now give a warning to the user that such an identifier is a future keyword. Handles keywords from C as well as C++. Differential Revision: https://reviews.llvm.org/D131683
-
Adrian Vogelsgesang authored
With this commit, we now attach an `DISubprogram` to the LLVM-generated `_NoopCoro_ResumeDestroy` function. Thereby, lldb can show a `std::coroutine_handle` to a `std::noop_coroutine` as ``` continuation = coro frame = 0x555555560d98 { resume = 0x0000555555555c50 (a.out`__NoopCoro_ResumeDestroy) destroy = 0x0000555555555c50 (a.out`__NoopCoro_ResumeDestroy) } ``` instead of ``` continuation = coro frame = 0x555555560d98 { resume = 0x0000555555555c50 (a.out`___lldb_unnamed_symbol211) destroy = 0x0000555555555c50 (a.out`___lldb_unnamed_symbol211) } ``` I renamed the function from `NoopCoro.ResumeDestroy` to `_NoopCoro_ResumeDestroy` because: * the leading `_` makes sure this is a reserved name and should not clash with any user-provided names * the `.` was replaced by a `_`, so the name is now a valid identifier in C, making it allows me to type its name in the debugger Differential Revision: https://reviews.llvm.org/D132580 -
Utkarsh Saxena authored
-
Alexey Lapshin authored
DWARFLinker::DIECloner::cloneAddressAttribute() contains call to relocateIndexedAddr(StartOffset, EndOffset). StartOffset is incorrectly calculated. Val.getRawUValue() is an index into the .debug_addr table, so it should be multiplied by Unit.getOrigUnit().getAddressByteSize(). Differential Revision: https://reviews.llvm.org/D132644
-