- Sep 02, 2023
-
-
Corentin Jabot authored
When parsing a trailing return type / noexcept / constraint of a generic lambda, we need to know that we are in a dependent context. We currently don't because we only create a TemplateDecl for the call operator one its fully parsed. This patch attach a template decl to the call operator as soon as the parameter declaration clause is parsed - the point at which we have collected all template parameters Fixes #64689 Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D159358
-
Johannes Doerfert authored
-
Johannes Doerfert authored
-
Johannes Doerfert authored
-
Serge Pavlov authored
Builtin function `__builtin_isfpclass` now can be called for a vector of floating-point values. In this case it is applied to the vector elementwise and produces vector of integer values. Differential Revision: https://reviews.llvm.org/D153339
-
Fangrui Song authored
Those fixes were taken from https://reviews.llvm.org/D137338
-
Johannes Doerfert authored
Many AAs translated callee information to the call site explicitly but they now all use the helper we already had for callee return to call site return propagation. In a follow up the helper is going to be extended to handle multiple callees.
-
Johannes Doerfert authored
We have various helpers to propagate information. This patch cleans up the API to allow less template parameters and more uniform handling.
-
Johannes Doerfert authored
In a follow up we'll use it for more than "callee return" -> "call site return" deduction, effectively allowing "callee" -> "call site".
-
Fangrui Song authored
Those fixes were taken from https://reviews.llvm.org/D137338
-
Koakuma authored
This adds definitions for SPARC v9 State Registers (privileged/nonprivileged, see v9 manual ch. 5). Reviewed By: barannikov88 Differential Revision: https://reviews.llvm.org/D157231
-
yuntaopan authored
Some typetraits are defined twice, delete this part of the code. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D159331
-
Fangrui Song authored
Those fixes were taken from https://reviews.llvm.org/D137338
-
Fangrui Song authored
Those fixes were taken from https://reviews.llvm.org/D137338
-
Nikolas Klauser authored
This brings most of the enable_ifs in libc++ to the same style. It also has the nice side-effect of reducing the size of names of these symbols, since the depedent return type is shorter. Reviewed By: #libc, ldionne Spies: ldionne, libcxx-commits Differential Revision: https://reviews.llvm.org/D157787
-
walter erquinigo authored
This method was working as expected if LLDB_ENABLE_LIBEDIT is false, however, if it was true, then the variable m_current_lines_ptr was always pointing to an empty list, because Editline only updates its contents once the full input has been completed (see https://github.com/llvm/llvm-project/blob/main/lldb/source/Host/common/Editline.cpp#L1576). A simple fix is to invoke Editline::GetInputAsStringList() from GetCurrentLines(), which is already used in many places as the common way to get the full input list.
-
Nikolas Klauser authored
This brings most of the enable_ifs in libc++ to the same style. Reviewed By: #libc, ldionne Spies: ldionne, libcxx-commits Differential Revision: https://reviews.llvm.org/D157753
-
Jonas Devlieghere authored
Adopt the new markup overload, introduced in 77d10325, in the SystemZ backend. Differential revision: https://reviews.llvm.org/D159388
-
Matt Arsenault authored
-
Matt Arsenault authored
It's the same as the other exps. https://reviews.llvm.org/D157891
-
Matt Arsenault authored
-
Johannes Doerfert authored
-
Johannes Doerfert authored
It is not possible to not create an AA at all, which we can use to bisect problems in the future.
-
Johannes Doerfert authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Xiang Li authored
When emit NoOp bitcast for GEP Ptr Operand, should use SourceElementType instead of ResultElementType. **Behavior Before Change** Redundant bitcast like ` bitcast ptr addrspace(3) @gs to ptr addrspace(3)` will be generated for llvm/test/CodeGen/DirectX/typed_ptr.ll **Behavior After Change** No bitcast will be generated. Fixes https://github.com/llvm/llvm-project/issues/65183
-
Brad Smith authored
This uses just argv[0] on OpenBSD. OpenBSD does not support the /proc filesystem. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D159168
-
Matt Arsenault authored
We currently have log, log2, log10, exp and exp2 intrinsics. Add exp10 to fix this asymmetry. AMDGPU already has most of the code for f32 exp10 expansion implemented alongside exp, so the current implementation is duplicating nearly identical effort between the compiler and library which is inconvenient. https://reviews.llvm.org/D157871
-
LLVM GN Syncbot authored
-
Joseph Huber authored
Summary: This patch adds the `assert.h` wrapper header. I forgot to include this in the last patch.
-
Tobias Hieta authored
This adds first version of a GitHub workflow in the documentation and marks some sections as deprecated. We should clean up these sections ASAP. I was just keen to get something on the documentation site as soon as possible.
-
Mogball authored
This commit enables the expression of negated native constraints in PDLL: If a constraint is prefixed with "not" it is parsed as a negated constraint and hence the attribute `isNegated` of the emitted `pdl.apply_native_constraint` operation is set to `true`. In first instance this is only supported for the calling of external native C++ constraints and generation of PDL patterns. Previously, negating a native constraint would have been handled by creating an additional native call, e.g. ```PDLL Constraint checkA(input: Attr); Constarint checkNotA(input: Attr); ``` or by including an explicit additional operand for negation, e.g. `Constraint checkA(input: Attr, negated: Attr);` With this a constraint can simply be negated by prefixing it with `not`. e.g. ```PDLL Constraint simpleConstraint(op: Op); Pattern example { let inputOp = op<test.bar>() ->(type: Type); let root = op<test.foo>(inputOp.0) -> (); not simpleConstraint(inputOp); simpleConstraint(root); erase root; } ``` Depends on [[ https://reviews.llvm.org/D153871 | D153871 ]] Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D153959 -
Jonas Devlieghere authored
There's only one call to markup in NVPTXInstPrinter. Replace it with the new overload that uses WithMarkup.
-
Bill Wendling authored
Limit the #includes to the least necessary to still compile. Move the "new" function into the .cpp file to remove the need to #include ASTContext.h into ASTConcept.h. Differential Revision: https://reviews.llvm.org/D159320
-
Noah Goldstein authored
Recommit "[InstCombine] Expand `foldSelectICmpAndOr` -> `foldSelectICmpAndBinOp` to work for more binops" (3rd Try) Fixed bug that assumed binop was commutative. Was re-reviewed by nikic and chapuni Differential Revision: https://reviews.llvm.org/D148414
-
Jonas Devlieghere authored
Add support for syntax color highlighting disassembly in LLDB. This patch relies on 77d10325, which introduces support for syntax highlighting in MC. Currently only AArch64 and X86 have color support, but other interested backends can adopt WithColor in their respective MCInstPrinter. Differential revision: https://reviews.llvm.org/D159164
-
Konstantin Varlamov authored
This file was accidentally formatted by D140612, resulting in incorrect syntax.
-
Greg Clayton authored
llvm-gsymutil uses a DWARFContext from multiple threads as it parses each compile unit. As it finds issues it might end up dumping a DIE to an output stream which can cause accesses to the DWARFContext from multiple threads. In llvm-gsymutil it can end up dumping a DIE from multiple threads into thread specific stream which was causing DWARFContext::getTUIndex() to be called and can crash the process. This fix puts a recursive mutex into the DWARFContext class and makes most APIs threadsafe for access. Many of the methods in DWARFContext will check if a member variable has been filled in yet, and parse what is needed and populate a member variagle with the results. Now a mutex protects these functions. Differential Revision: https://reviews.llvm.org/D157459
-
Zequan Wu authored
-