- Oct 08, 2022
-
-
Michael Jones authored
I've implemente the gnu variant of strerror_r since that seems to be the one more relevant to what we're trying to do. Differential Revision: https://reviews.llvm.org/D135227
-
Xiang Li authored
PCH supported for HLSL is added when compile in -cc1 mode using -include-pch for test AST. This change add some notes about the support of PCH for HLSL. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D134330
-
Shilei Tian authored
-
Shilei Tian authored
Two another atomic compare capture forms, `{ v = x; expr-stmt }` and `{ expr-stmt; v = x; }` where `expr-stmt` could be `cond-expr-stmt` are missing. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D135236 -
Sanjay Patel authored
The shift amount is not changing, so if we guaranteed shifting out zeros before, those bits are still zeros. https://alive2.llvm.org/ce/z/sokQca
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Andrzej Warzynski authored
When the work on the Flang driver started, we created 2 test directories: * flang/test/Frontend/ * flang/test/Driver/ That was mostly done to model what Clang was doing. In practice, we stopped using "flang/test/Frontend/" early on and most Flang driver tests are currently located in "flang/test/Driver/". This patch moves the remaining tests from the latter into the former directory. This change also means that we can re-use test input files, i.e. flang/test/Frontend/Inputs/hello-world.f90 can be replaced with flang/test/Driver/Inputs/hello.f90. To this end, the affected test is updated (multiple-input-files.f90). Differential Revision: https://reviews.llvm.org/D130633
-
Florian Hahn authored
This reverts commit 9e931439. This commit causes a crash when TSan, e.g. with https://lab.llvm.org/buildbot/#/builders/70/builds/28309/steps/10/logs/stdio Reverting while I extract a reproducer and submit a fix.
-
Ellis Hoag authored
Change the behavior of the `llvm-profdata show --debug-info=` command to dump a YAML file when using debug info correlation since it provides more information in a parseable format. Reviewed By: yozhu, phosek Differential Revision: https://reviews.llvm.org/D134770
-
Ellis Hoag authored
Add `--output-format` option for the `llvm-profdata show` command to select the type of output. The existing `--text` flag is used to emit text encoded profiles. To avoid confusion, `--output-format=text-encoding` indicates that the output will be profiles encoded in the text format, and `--output-format=text` indicates the default text output that doesn't necessarily represent a profile. `--output-format=json` is an alias for `--json` and `--output-format=yaml` will be used in D134770. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D135127
-
Nicolas Vasilache authored
Context: https://discourse.llvm.org/t/psa-retire-linalg-filter-based-patterns/63785 Differential Revision: https://reviews.llvm.org/D135454
-
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
-