- Apr 24, 2023
-
-
Timm Bäder authored
The given expression is not necessarily usable to obtain a type for, so we can't use it to get the floating point semantics. Pass a QualType instead, which we can use--and classify() that here.
-
Aaron Ballman authored
This project doesn't really relate to improving Clang itself and it contained stale suggestions like working on code modification functionality in clang-format.
-
Aaron Ballman authored
Work already began on this project, so this updates the wording to discuss clang-doc specifically.
-
Aaron Ballman authored
This adds open projects for updating the status of our C conformance, DR conformance for both C and C++, and improving build times.
-
Maryam Moghadas authored
This patch adds a new test that includes a vperm instruction with xxswapd as its vector operand on little-endian Power8. The test demonstrates the constant pool for the mask operand, which is intended to indicate the optimization of vperm and the modification of the constant pool in subsequent patches. Reviewed By: amyk Differential Revision: https://reviews.llvm.org/D148942
-
Ashay Rane authored
A line in the demangling code for float literals dereferences the `.end()` iterator, which causes the Windows debug build of llvm-cxxfilt to crash. The failure can be reproduced by passing the string `_Z5dummyIXtl8wrapper1IdEtlNS1_Ut_Edi9RightNametlNS2_Ut_ELd405ec00000000000EEEEEEvv` to `llvm-cxxfilt -n`. This patch rewrites the code to use the `.size()` member of the string_view type to avoid dereferencing past the buffer. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D149061
-
Simon Pilgrim authored
Followup to D149052, it wasn't worthwhile to add general support for unary opcodes
-
Florian Hahn authored
Clean up some unnecessary includes from VPlan.h, which is imported in multiple files.
-
max authored
Differential Revision: https://reviews.llvm.org/D148816
-
Andrew Gozillon authored
[Flang][OpenMP][Driver][MLIR] Port fopenmp-host-ir-file-path flag and add MLIR module attribute to proliferate to OpenMP IR lowering This patch ports the fopenmp-host-ir-file-path flag from Clang to Flang-new, this flag is added by the driver to the device pass when doing two phase compilation (device + host). This flag is then applied to the module when compiling during the OpenMP device phase. This file can then be utilised during lowering of the OpenMP dialect to LLVM-IR, which allows the device and host to maintain 1:1 mapping of OpenMP metadata for variables during lowering via the OpenMPIRBuilders loadOffloadInfoMetadata facilities (which is used for declare target and I believe target regions as well). Reviewer: awarzynski Differential Revision: https://reviews.llvm.org/D148038
-
Nikita Popov authored
Simplify the match in hoistMinMax and only fetch the preheader once.
-
Aaron Ballman authored
These projects are ones that are already known within the community as areas we would like to see improvements on.
-
Nikita Popov authored
This reverts commit 3e3e41b2. This appears to cause a stage2 miscompile of llvm-profgen.
-
Joseph Huber authored
Summary: These tools are used to query amdgpu-arch and nvptx-arch. We shouldn't print their errors to the console if they do fail.
-
Alexey Bataev authored
Need to relax the assertion check in the FindFirstInst lambda for GEP nodes with non-GEP instruction to avoid compiler crash.
-
NAKAMURA Takumi authored
-
John Brawn authored
This was supposed to be part of my previous commit, but I accidentally pushed an old version of the patch.
-
Martin Braenne authored
Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D148612
-
Simon Pilgrim authored
Add basic handling for VP ops that can expand to FP intrinsics Fixes #60464 Differential Revision: https://reviews.llvm.org/D149052
-
Joseph Huber authored
Currently the `-fconvergent-functions` option is primarily used by GPU toolchains to enforce convergent operations in line with the semantics. This option previously was only supported via `-Xclang` and would show up as unused if passed to the driver. This patch allows the driver to forward it. This is mostly useful for users wishing to target GPU toolchains directly via `--target=` without an offloading runtime. Reviewed By: JonChesterfield, MaskRay Differential Revision: https://reviews.llvm.org/D149019
-
Alvin Wong authored
MSVC link.exe added this flag and MS STL started using this flag in .drectve [1] when compiling with Clang with asan enabled, as reported on https://github.com/llvm/llvm-project/issues/56300. This causes issues with lld-link because it rejects any unknown flags in .drective sections. As dc07867d noted that, when using Clang as the driver it explicitly passes the proper asan libraries. Therefore it should be acceptable to ignore this flag in lld-link to at least unbreak building with clang-cl and linking with lld-link. [1]: https://github.com/microsoft/STL/blob/faaf094ee16bcbfb2c8d612fdb9334bcdef2fd0a/stl/inc/__msvc_sanitizer_annotate_container.hpp#L35 Differential Revision: https://reviews.llvm.org/D149023
-
Alvin Wong authored
This is a small QoL improvement suggested by FrancescElies in https://github.com/llvm/llvm-project/issues/56300#issuecomment-1172104966. Differential Revision: https://reviews.llvm.org/D149022
-
Sam McCall authored
The indexes of analysis state within a BB element is a bit odd: BB.0 is the initial state BB.1 is the state after the first element etc This means we have N+1 states and we need N+1 elements in the BB list. We add a dummy element at the beginning rather than the end, because we want selecting a CFG element to show the state *afterwards*. For example, if we click on an expr, we want to be able to see its value model! Differential Revision: https://reviews.llvm.org/D148951
-
Stefan Pintilie authored
Added a number of functions that have a clear instruction that is not actually required. This test is added first and then a patch will be added later in order to remove the unnecessary instructions.
-
Simon Pilgrim authored
Match ISD::ANY_EXTEND_VECTOR_INREG\ZERO_EXTEND_VECTOR_INREG\SIGN_EXTEND_VECTOR_INREG opcodes
-
Simon Pilgrim authored
Move the isSimple() check inside the helpers to avoid a lot of extra checking in a future patch.
-
Nikita Popov authored
Instead of hardcoding a few instruction kinds, use the generic interface now that we have it. The primary effect of this is that intrinsics are now supported. It's worth noting that this is still limited in that it does not support vectors, so we can't remove e.g. existing fshl special cases.
-
Nikita Popov authored
This is a representative test for the simplifyWithOpReplaced() fold on intrinsics.
-
John Brawn authored
Fix several problems related to serialization causing command line defines to be reported as being built-in defines: * When serializing the <built-in> and <command line> files don't convert them into absolute paths. * When deserializing SM_SLOC_BUFFER_ENTRY we need to call setHasLineDirectives in the same way as we do for SM_SLOC_FILE_ENTRY. * When created suggested predefines based on the current command line options we need to add line markers in the same way that InitializePreprocessor does. * Adjust a place in clangd where it was implicitly relying on command line defines being treated as builtin. Differential Revision: https://reviews.llvm.org/D144651
-
Aaron Ballman authored
This removes or modifies: Undefined behavior checking -- we've got UBSan and it's well-known enough that we don't need to call it out specifically as a need. Improve target support -- this is largely already complete. Use clang libraries to extend Ragel with a JIT -- this wasn't really related to improving Clang. C++1y feature work -- now talks about C++20, C++2b, and C2x instead. Universal driver -- the bug report linked to by the UniversalDriver web page has been closed since 2017. XML representation of the AST -- we removed this functionality in 2013 and replaced it with a JSON representation a few years later. That is a best-effort project.
-
Peter Smith authored
The AArch64 branch immediate instruction has a 128MiB range. This makes it suitable for use a short range thunk in the same way as short thunks are implemented in Arm and PPC. This patch adds support for short range thunks to AArch64. Adding short range thunk support should mean that OutputSections can grow to nearly 256 MiB in size without needing long-range indirect branches. Differential Revision: https://reviews.llvm.org/D148701
-
Paul Walker authored
Fixes #62087 Differential Revision: https://reviews.llvm.org/D148919
-
Jay Foad authored
llvm.is.fpclass is different from other vectorizable intrinsics in that it is overloaded on an argument type, not on the return type. Differential Revision: https://reviews.llvm.org/D148905
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D149050
-
Michael Buch authored
-
Siyuan Zhu authored
Extend the existing fold for division by zero or one to use known bits, so it catches additional patterns like division by (1 srem b). Fixes https://github.com/llvm/llvm-project/issues/62163. Differential Revision: https://reviews.llvm.org/D149001
-
Aaron Ballman authored
There is no TargetInfoImpl class any longer.
-
Michael Buch authored
This only works as of D145803, where we re-point the `DW_AT_type` based on existence of `[[clang::preferred_name]]`
-
Siyuan Zhu authored
Differential Revision: https://reviews.llvm.org/D149012
-
Aaron Ballman authored
Sets the charset to UTF-8, fixes the page title, replaces mention of cfe-dev with Discourse, points out Discord and IRC.
-