- Aug 29, 2023
-
-
Matt Arsenault authored
-
Vitaly Buka authored
Will not work, string::data() returns const char*; This reverts commit d364597f.
-
Vitaly Buka authored
-
Yitzhak Mandelbaum authored
Adds support for recognizing range-for loops in the main algorithm for computing the model fixpoint. Differential Revision: https://reviews.llvm.org/D158848
-
Zequan Wu authored
Original patch: D157632. Fixed the issue when data is 0 by relaxing the condition. Reviewed By: ellis Differential Revision: https://reviews.llvm.org/D159000
-
Daniel Hoekwater authored
Differential Revision: https://reviews.llvm.org/D158871
-
Daniil Kovalev authored
Markdown should use single backticks for inline code blocks, while double backticks were used. See discussion here: https://reviews.llvm.org/D156505
-
Christopher Bate authored
Fixes an issue where `isCastLikeExtractSliceOp` did not account for the fact that `tensor.extract_slice` may drop non-unit dimensions. This change makes the utility function behave inline with its name/description. The only user of this function is in the `FindPayloadReplacementOpInterface` for the `tensor::ExtractSliceOp`. This can potentially cause downstream projects to have more "listener could not find replacement op" errors when interpreting Transform IR, but the behavior is inline with the documented conservative behavior of the Transform dialect's TrackingListener. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D158635
-
Joseph Huber authored
This patch adds some extra cases to the existing argument list test in `libc`, mainly dealing with arguments of varying sizes and primitive types. The purpose of this patch is to provide a wider test area when we begin to provide varargs support on the GPU as there is no other runtime code that really tests it. So, running these tests more exhaustively in the GPU libc project will serve as the runtime tests for GPU vararg support in D158246. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D158867
-
Craig Topper authored
This reverts commit 538b90cf. Committed by mistake.
-
Craig Topper authored
This disables the transform if the branch does not have the kill flag set for the AND we want to delete. Ideally we'd be able to share the AND with the AND we create in the expansion, but that's a more complex transform. So this starts with the simple approach to fix miscompile. This should be backported to LLVM 17. Fixes PR65025.ll Reviewed By: asb Differential Revision: https://reviews.llvm.org/D158962
-
Craig Topper authored
Some instruction selection patterns required for ALU GPR instructions have already been automatically imported from existing TableGen descriptions - this patch simply adds testing for them. Logic for selecting constants and copies has been added, along with the first of the GIComplexPatternEquiv definitions required to select the shiftMaskXLen ComplexPattern. New patterns have been added to directly select RV64 W instructions from gMIR rather than using custom gMIR operations earlier in the pipeline. In future this could also support the checks present in the DAGToDAGISel for finding ops whose users only require the lower 32 bits. Differential Revision: https://reviews.llvm.org/D76445
-
Doru Bercea authored
Diff: https://reviews.llvm.org/D159001
-
Fangrui Song authored
D151965 removed incorrect internalization for {linkonce,weak}{,_odr} when the prevailing copy is in native code. The multiple conditions are based on negative conditions, which can be simplified to be based on positive cases: * an object with an external linkage (must be prevailing) can be internalized * a prevailing object with a {linkonce,weak}{,_odr} or common linkage can be internalized. Further, the lengthy comment is a bit misleading, as it doesn't say that objects with an external/linkonce/weak linkage can be internalized. Clarify it. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D158949 -
Doru Bercea authored
Diff: https://reviews.llvm.org/D159003
-
Fangrui Song authored
To improve the tests added by D151965. Discovered when writing D158949.
-
Jan Svoboda authored
-
Jan Svoboda authored
This reverts commit b6ba804f, effectively relanding commit 7d156572. The original commit incorrectly called `ASTWriter::writeUnhashedControlBlock()` before `ASTWriter::collectNonAffectingInputFiles()`, causing SourceLocations/FileIDs in the pragma diagnostic mappings block to be invalid. This is now tested by `clang/test/Modules/diag-mappings-affecting.c`.
-
Jan Svoboda authored
This reverts commit 870f1583, effectively relanding commit b9d78bdc.
-
Tom Stellard authored
workflows: Fix libclang-abi test after update to use download-artifact v3
-
spupyrev authored
- removing an unreachable instruction from the code (earlier code merge bug); - silencing "unused variable" warnings. Reviewed By: rahmanl Differential Revision: https://reviews.llvm.org/D158859
-
Aaron Ballman authored
We have a new policy in place making links to private resources something we try to avoid in source and test files. Normally, we'd organically switch to the new policy rather than make a sweeping change across a project. However, Clang is in a somewhat special circumstance currently: recently, I've had several new contributors run into rdar links around test code which their patch was changing the behavior of. This turns out to be a surprisingly bad experience, especially for newer folks, for a handful of reasons: not understanding what the link is and feeling intimidated by it, wondering whether their changes are actually breaking something important to a downstream in some way, having to hunt down strangers not involved with the patch to impose on them for help, accidental pressure from asking for potentially private IP to be made public, etc. Because folks run into these links entirely by chance (through fixing bugs or working on new features), there's not really a set of...
-
- Aug 28, 2023
-
-
Valentin Clement authored
getSymbolFromAccObject was hitting the fatal error when trying to retrieve the symbol on array section Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D158881
-
Markus Böck authored
The lowering pattern is currently restricted to integer, float and index types. This is seemingly arbitrary, as `ub.poison` works for any input type. The lowering should therefore also work with any type that can be converted using the type converter. This patch therefore simply removes that condition and adds a test ensuring that this works. Differential Revision: https://reviews.llvm.org/D158982
-
Ingo Müller authored
This patch makes the getter function of `DenseBoolArrayAttr` work more intuitively. Until now, it was implemented with a `std::vector<int>` argument, which works in the typical situation where you call the pybind function with a list of Python bools (like `[True, False]`). However, it does *not* work if the elements of the list have to be cast to Bool before (and that is the default behavior for lists of all other types). The patch thus changes the signature to `std::vector<bool>`, which helps pybind to make the function behave as expected for bools. The tests now also contain a case where such a cast is happening. This also makes the conversion of `DenseBoolArrayAttr` back to Python more intuitive: instead of converting to `0` and `1`, the elements are now converted to `False` and `True`. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D158973
-
Ilya Biryukov authored
The code mistakenly returns the value as evaluated whenever the temporary is allocated, but not yet evaluated. I could only reproduce in Clangd and could not come up with an example that would crash the compiler. Clangd runs more evaluations for hover than the language would allow. Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D158985
-
Martin Erhart authored
Modify the `convert-bufferization-to-memref` pass to be applicable to `builtin.module` and `FunctionOpInterface`. In many cases the lowering using the library function is not needed because enough static information is available to simplify the dealloc operations enough to use the more light-weight lowerings. In those situations, it is better to allow the pass to run on functions for additional parallelization and for easier use with the transform dialect (e.g., when the transform ops are in the same `builtin.module` as the function to be transformed). Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D158969
-
hezuoqiang authored
The relationship of X86 registers is shown in the diagram. BL and BH do not have a direct alias relationship. However, if the BH register cannot be swapped, then the BX/EBX/RBX registers cannot be swapped as well, which means that BL register also cannot be swapped. Therefore, in the presence of BX/EBX/RBX registers, BL and BH have an alias relationship. ┌────────────────┐ │ RBX │ ├────┬───────────┤ │ │ EBX │ ├────┴──┬────────┤ │ │ BX │ ├───────┼───┬────┤ │ │BH │BL │ └───────┴───┴────┘ Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D155098 -
Tue Ly authored
Add missing math functions and tests (exp, exp2, erff) to bazel layout. Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D158989
-
Florian Hahn authored
ICmp codegen for VPInstructionD will be extended for other predicates, and the operands could be any values (not just IV and TC as implied by the names). Suggested cleanup from 150398.
-
ManuelJBrito authored
NewGVN isn't enabled by default so some test failures were being missed. Reverting to do more testing offline. This reverts commit c59bc230.
-
Doru Bercea authored
-
Phoebe Wang authored
Fixes #64460 Reviewed By: RKSimon, skan Differential Revision: https://reviews.llvm.org/D158950
-
Donát Nagy authored
...because it provides no useful functionality compared to its base class `BugType`. A long time ago there were substantial differences between `BugType` and `BuiltinBug`, but they were eliminated by commit 1bd58233 in 2009 (!). Since then the only functionality provided by `BuiltinBug` was that it specified `categories::LogicError` as the bug category and it stored an extra data member `desc`. This commit sets `categories::LogicError` as the default value of the third argument (bug category) in the constructors of BugType and replaces use of the `desc` field with simpler logic. Note that `BugType` has a data member `Description` and a non-virtual method `BugType::getDescription()` which queries it; these are distinct from the member `desc` of `BuiltinBug` and the identically named method `BuiltinBug::getDescription()` which queries it. This confusing name collision was a major motivation for the elimination of `BuiltinBug`. As this commit touches many files, I avoided functional changes and left behind FIXME notes to mark minor issues that should be fixed later. Differential Revision: https://reviews.llvm.org/D158855
-
Nikita Popov authored
Make sure we don't crash if we encounter a malloc with memory(none). Related to https://github.com/llvm/llvm-project/issues/64827.
-
Phoebe Wang authored
This reverts commit 4ae7ed6e. Sorry, missing the test update.
-
Phoebe Wang authored
Fixes #64460 Reviewed By: RKSimon, skan Differential Revision: https://reviews.llvm.org/D158950
-
Phoebe Wang authored
This reverts commit 915139fc. The constant value is 16 rather than 8. Revert it and then reland.
-
David CARLIER authored
Api available since Windows Server 2016/Windows 10 1607 Reviewers: vitalybuka Reviewed-By: vitalybuka Differential Revison: https://reviews.llvm.org/D156317
-
David CARLIER authored
Reviewers: vitalybuka Reviewed-By: vitalybuka Differential Revision: https://reviews.llvm.org/D156578
-