- Oct 08, 2022
-
-
Joseph Huber authored
These debugging definitions are no longer used in the new runtime. The old runtime has been removed since Clang-14 so we can safely get rid of these leftover variables. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D135452
-
Krzysztof Parzyszek authored
-
Krzysztof Parzyszek authored
1. `length(value/type)`: return the number of elements in the vector input, 2. `getHvxTy(elem_type)`: return the HVX vector type with the element type provided. These will help write things more succintly.
-
Jacques Pienaar authored
-
Nicolas Vasilache authored
Context: https://discourse.llvm.org/t/psa-retire-linalg-filter-based-patterns/63785 Differential Revision: https://reviews.llvm.org/D135450
-
Nicolas Vasilache authored
The transform.split_handles op is useful for ensuring a statically known number of operations are tracked by the source `handle` and to extract them into individual handles that can be further manipulated in isolation. In the process of making the op robust wrt to silenceable errors and the suppress mode, issues were uncovered and fixed. The main issue was that silenceable errors were short-circuited too early and the payloads were not set. This resulted in suppressed silenceable errors not propagating correctly. Fixing the issue triggered a few test failures: silenceable error returns now must properly set the results state. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D135426
-
- Oct 07, 2022
-
-
Krzysztof Parzyszek authored
-
Krzysztof Parzyszek authored
EVT can be created for any Type, and so this function can now be used to check if given Type, as-is, is an HVX type (as opposed to a type that may be subject to legalization to an HVX type).
-
Sanjay Patel authored
It's probably better to try harder on this kind of pattern by using ValueTracking.
-
Sanjay Patel authored
-
Sanjay Patel authored
issue #58137
-
Kazu Hirata authored
This patch fixes: llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp:800:17: error: unused variable 'DST_IDX' [-Werror,-Wunused-variable]
-
Krzysztof Parzyszek authored
-
Krzysztof Parzyszek authored
-
Yaxun (Sam) Liu authored
Promoting kernel arg pointer to global addr space is only available with registered amdgcn target. Fix test so that it does not require registered amdgcn target.
-
Nikita Popov authored
Tests for D130466.
-
Joseph Huber authored
Summary: This patch just cleans up the unused flags in the DeviceRTL. These should no longer be necessary or are redundant. Also add the extract tool and packager to the check and error message if not found. This will make it easier to tell if they are not present.
-
Florian Hahn authored
Extend forgetBlockAndLoopDisposition to allow clearing information for a single value. This can be useful when only a single value is changed, e.g. because the instruction is moved. We also need to clear the cached values for all SCEV users, because they may depend on the starting value's disposition. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D134614
-
Soumi Manna authored
ProcessMemberDtor(), ProcessDeleteDtor(), and ProcessAutomaticObjDtor(): Fix static analyzer warnings with suspicious dereference of pointer 'Pred' in function call before NULL checks - NFCI Differential Revision: https://reviews.llvm.org/D135290
-
Kiran Chandramohan authored
Use the ultimate symbol while calling the `IsAllocatableOrPointer` function to ensure that the check works as expected for host-associated symbols. Fixes #58178 Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D135443
-
Yaxun (Sam) Liu authored
Currently there is a middle-end or backend issue https://github.com/llvm/llvm-project/issues/58176 which causes values loaded from bool pointer incorrect when bool range metadata is emitted. Temporarily disable bool range metadata until the backend issue is fixed. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D135269 Fixes: SWDEV-344137
-
Chris Bieneman authored
HLSL headers were being installed in two locations, one correct and one incorrect, and they were always being installed (even when CLANG_ENABLE_HLSL=Off). This corrects both issues by ensuring that the HLSL headers aren't added to the universal header list.
-
Alex Zinenko authored
-
-
Nikita Popov authored
These were converted using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 followed by a re-run of update_cc_test_checks.py.
-
Bjorn Pettersson authored
Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34
-
Bjorn Pettersson authored
When SimplifyLibCalls is dealing with wchar_t (e.g. optimizing wcslen) it uses ValueTracking helpers with a CharSize/ElementSize that isn't 8, but rather 16 or 32 (to match with the size in bits of a wchar_t). Problem I've seen is that llvm::getConstantDataArrayInfo is taking both an "ElementSize" argument (basically indicating size of a char/element in bits) and an "Offset" which afaict is an offset in the unit "number of elements". Then it also use stripAndAccumulateConstantOffsets to get a "StartIdx" which afaict is calculated in bytes. The returned Slice.Length is based on arithmetics that add/subtract variables that are having different units (bytes vs elements). Most notably I think the "StartIdx" must be scaled using the "ElementSize" to get correct results. The symptom of the above problem was seen in the wcslen-1.ll test case which miscompiled. This patch is supposed to resolve the bug by converting between bytes and elements when needed. Differential Revision: https://reviews.llvm.org/D135263
-
Bjorn Pettersson authored
The ValueTracking support for getting the string length of a wchar_t string (e.g. using wcslen) seem to be having some bugs. Problem I've seen is that llvm::getConstantDataArrayInfo is taking both a "ElementSize" argument (basically indicating size of a char/element in bits) and an "Offset" which afaict is an offset in the unit "number of elements". Then it also use stripAndAccumulateConstantOffsets to get a "StartIdx" which afaict is calculated in bytes. The returned Slice.Length is based on arithmetics that add/subtract variables that are having different units (bytes vs elements). Most notably I think the "StartIdx" must be scaled using the "ElementSize" to get correct results. This patch just adds a new test case showing that we get a wrong result when doing wcslen(x + c). The actual fix to the above problem will be done in a follow up commit. Differential Revision: https://reviews.llvm.org/D135262
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D134961
-
Erich Keane authored
As another regression from the Deferred Concepts Instantiation patch, we weren't properly detecting that a friend referenced its containing Record when it referred to it without its template parameters. This patch makes sure that we do.
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D135084
-
Jan Sjodin authored
This removes the calls to dump tyupes introduced in commit 4627cef1. Differential Revision: https://reviews.llvm.org/D134662
-
Nikita Popov authored
Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D134960
-
Christudasan Devadasan authored
The opcode field in most places uses unsigned type. InstrInfoEmitter still uses signed int for the custom opcodes like CFSetupOpcode. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D135140
-
Aleksandr Platonov authored
Without this patch `VarDecl::hasDependent()` checks only undeduced auto types, so can give false negatives result for other undeduced types. This lead to crashes in sequence `!VarDecl::hasDepentent()` => `getDeclAlign()`. It seems this problem appeared since D105380 Reviewed By: mizvekov Differential Revision: https://reviews.llvm.org/D135362
-
Hans Wennborg authored
Revert "Thread safety analysis: Support copy-elided production of scoped capabilities through arbitrary calls" This caused false positives, see comment on the code review. > When support for copy elision was initially added in e97654b2, it > was taking attributes from a constructor call, although that constructor > call is actually not involved. It seems more natural to use attributes > on the function returning the scoped capability, which is where it's > actually coming from. This would also support a number of interesting > use cases, like producing different scope kinds without the need for tag > types, or producing scopes from a private mutex. > > Changing the behavior was surprisingly difficult: we were not handling > CXXConstructorExpr calls like regular calls but instead handled them > through the DeclStmt they're contained in. This was based on the > assumption that constructors are basically only called in variable > declarations (not true because of temporaries), and that variable > declarations necessitate constructors (not true with C++17 anymore). > > Untangling this required separating construction from assigning a > variable name. When a call produces an object, we use a placeholder > til::LiteralPtr for `this`, and we collect the call expression and > placeholder in a map. Later when going through a DeclStmt, we look up > the call expression and set the placeholder to the new VarDecl. > > The change has a couple of nice side effects: > * We don't miss constructor calls not contained in DeclStmts anymore, > allowing patterns like > MutexLock{&mu}, requiresMutex(); > The scoped lock temporary will be destructed at the end of the full > statement, so it protects the following call without the need for a > scope, but with the ability to unlock in case of an exception. > * We support lifetime extension of temporaries. While unusual, one can > now write > const MutexLock &scope = MutexLock(&mu); > and have it behave as expected. > * Destructors used to be handled in a weird way: since there is no > expression in the AST for implicit destructor calls, we instead > provided a made-up DeclRefExpr to the variable being destructed, and > passed that instead of a CallExpr. Then later in translateAttrExpr > there was special code that knew that destructor expressions worked a > bit different. > * We were producing dummy DeclRefExprs in a number of places, this has > been eliminated. We now use til::SExprs instead. > > Technically this could break existing code, but the current handling > seems unexpected enough to justify this change. > > Reviewed By: aaron.ballman > > Differential Revision: https://reviews.llvm.org/D129755 This reverts commit 0041a694 and the follow-up warning fix in 83d93d3c.
-
Haojian Wu authored
We were double-counting the number of binary search FileID scans.
-
Valentin Clement authored
Some operations are using `AnyRefOrBox` to specify the type of the operands or attribute. This is the case for the `fir.coordinate_of` operation. This patch updates the `AnyRefOrBox` to accept `BaseBoxType` instead of only `BoxType`. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D135442
-
Nikita Popov authored
Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
-