- Oct 21, 2022
-
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D135025
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D135013
-
Timm Bäder authored
-
David Green authored
-
Florian Hahn authored
-
Danil Sidoruk authored
Adds an option whether requires clause body should be aligned with the `requires` keyword. This option is now the default, both without configuration and in LLVM style. Fixes https://github.com/llvm/llvm-project/issues/56283 Differential Revision: https://reviews.llvm.org/D129443 Co-authored-by:
Emilia Dreamer <emilia@rymiel.space>
-
Pierre van Houtryve authored
Small bugfix. Currently harmless but a case in D134354 triggers it. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D136235
-
Adrian Kuegel authored
-
Pierre van Houtryve authored
These tests had been commented out but seem to not be crashing. Not sure if codegen is perfect in each of them, but even if it's not I think it's better to put a TODO to fix codegen than remove the test outright, unless codegen is plain wrong (then I'd still rather XFAIL rather than hide it) Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D136341
-
Pierre van Houtryve authored
The condition needs to be different for right-shifts, else we may lose information in some cases. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D136059
-
Michael Wyman authored
Zeroing weak references are by definition `nullable`, and adding `nonnull` or `_Nullable` yields a mutual-exclusivity error. When `-Wnullability-completeness` is enabled, however, non-audited header regions require adding the `nullable` property keyword to avoid a warning. This should be unnecessary, since it restates known nullability of the `weak` property. Additionally, the fix-it hints are both non-idiomatic Objective-C (adding `_Nullable` to the property's pointer type rather than in the `@property` attributes) and suggest the option of adding `_Nonnull`, which would be an error. Differential Revision: https://reviews.llvm.org/D128031
-
LLVM GN Syncbot authored
-
Carlos Alberto Enciso authored
llvm-debuginfo-analyzer is a command line tool that processes debug info contained in a binary file and produces a debug information format agnostic “Logical View”, which is a high-level semantic representation of the debug info, independent of the low-level format. The code has been divided into the following patches: 1) Interval tree 2) Driver and documentation 3) Logical elements 4) Locations and ranges 5) Select elements 6) Warning and internal options 7) Compare elements 8) ELF Reader 9) CodeView Reader Full details: https://discourse.llvm.org/t/llvm-dev-rfc-llvm-dva-debug-information-visual-analyzer/62570 This patch: Select elements - Support for logical elements selection: LVPatterns Reviewed By: psamolysov, probinson Differential Revision: https://reviews.llvm.org/D125780
-
Craig Topper authored
-
Weining Lu authored
Do this check because the ISA manual says (edited from the original translation): > If the AM* instruction has its rd == rj, an Instruction Non-defined Exception will be triggered when the instruction is executed. > > If the AM* instruction has its rd == rk, the execution result is unpredictable. It is software's responsibility to avoid this situation. Note that binutils does the same check except when rd == r0 but this is undocumented. Differential Revision: https://reviews.llvm.org/D136076
-
Peiming Liu authored
Clarify that sparse_tensor.foreach iterates sparse_tensor in stored dim order. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D136401
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D136384
-
Siva Chandra Reddy authored
-
bixia1 authored
Previously, it used DimLevelType::SingletonNo to represent an unorder COO tensor of rank 1 while it should use DimLevelType::CompressedNuNo. Reviewed By: Peiming, wrengr Differential Revision: https://reviews.llvm.org/D136387
-
Michael Jones authored
The name of the libc target changed, this patch updates the cmake for the string to float comparison test to use the correct name. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D136388
-
rkayaith authored
Add an option to dump the pipeline that will be run to stderr. A dedicated option is needed since the existing `test-dump-pipeline` pipeline won't be usable with `-pass-pipeline` after D135745. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D135747
-
Luo, Yuanke authored
The movzbl instruction can be combined to vpinsrb or vmovd, when it is actual lowered from anyext. Differential Revision: https://reviews.llvm.org/D130953
-
rkayaith authored
Previously a pipeline nested on `anchor-op` would print as just `'pipeline'`, now it will print as `'anchor-op(pipeline)'`. This ensures the text form includes all information needed to reconstruct the pass manager. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D134622
-
Jan Svoboda authored
This patch fixes a performance regression introduced in D121685 that was caused by copying `DirectoryLookup`. rdar://101206790 Reviewed By: ributzka Differential Revision: https://reviews.llvm.org/D136019
-
Bill Wendling authored
Clang doesn't have the same behavior as GCC does with union flexible array members. (Technically, union FAMs are probably not acceptable in C99 and are an extension of GCC and Clang.) Both Clang and GCC treat *all* arrays at the end of a structure as FAMs. GCC does the same with unions. Clang does it for some arrays in unions (incomplete, '0', and '1'), but not for all. Instead of having this half-supported feature, sync Clang's behavior with GCC's. Reviewed By: kees Differential Revision: https://reviews.llvm.org/D135727
-
Xiang Li authored
short will be promoted to int in UsualUnaryConversions. Disable it for HLSL to keep int16_t as 16bit. Reviewed By: aaron.ballman, rjmccall Differential Revision: https://reviews.llvm.org/D133668
-
Rob Suderman authored
When the resize is ?x1x1x?, the tosa.resize operation broadcasts the input and (when quantized) applies a scaling factor. Updated the resize operation to not use a tensor.extract operation, instead broadcasting the only positional value as necessary. Moved the tosa.resize tests to their own mlir test due to increased complexity. Also corrected a bug where tosa.resize for bilinear-floating point was not applying the correct scaling. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D136299
-
Jonas Devlieghere authored
This reverts commit 0205aa4a because it breaks TestArray.py: a->c = <parent failed to evaluate: parent is NULL> I decided to revert instead of disable the test because it looks like a legitimate issue with the patch.
-
Eli Friedman authored
Arm64EC has two different ways to refer to dllimport'ed functions in an object file. One is using the usual __imp_ prefix, the other is using an Arm64EC-specific prefix __imp_aux_. As far as I can tell, if a function is in an x64 DLL, __imp_aux_ refers to the actual x64 address, while __imp_ points to some linker-generated code that calls the exit thunk. So __imp_aux_ is used to refer to the address in non-call contexts, while __imp_ is used for calls to avoid the indirect call checker. There's one twist to this, though: if an object refers to a symbol using the __imp_aux_ prefix, the object file's symbol table must also contain the symbol with the usual __imp_ prefix. The symbol doesn't actually have to be used anywhere, it just has to exist; otherwise, the linker's symbol lookup in x64 import libraries doesn't work correctly. Currently, this is handled by emitting a .globl __imp_foo directive; we could try to design some better way to handle this. One minor quirk I haven't figured out: apparently, in Arm64EC mode, MSVC prefers to use a linker-synthesized stub to call dllimport'ed functions, instead of branching directly. The linker stub appears to do the same thing that inline code would do, so not sure if it's just a code-size optimization, or if the synthesized stub can actually do something other than just load from the import table in some circumstances. Differential Revision: https://reviews.llvm.org/D136202
-
Aart Bik authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D136382
-
Alexander Shaposhnikov authored
For c++17 (i.e. before c++20) making a private default ctor explicitly defaulted might expose the previously intentionally disallowed initializations, e.g. class Tag { Tag() {} friend class Widget; }; is not equivalent to class Tag { Tag() = default; friend class Widget; }; since in the latter case Tag is treated as an aggregate despite having a declaration of the default constructor. This diff makes modernize-use-equals-default skip in-class empty nonpublic default ctors to avoid code breakages. Test plan: ninja check-all Differential revision: https://reviews.llvm.org/D136224 -
Arthur Eubanks authored
With -f(un)signed-char, the die corresponding to "char" may be the opposite DW_ATE_(un)signed_char from the default platform signedness. Ultimately we should determine whether a type is the unspecified signedness char by looking if its name is "char" (as opposed to "signed char"/"unsigned char") and not care about DW_ATE_(un)signed_char matching the platform default. Fixes #23443 Reviewed By: labath Differential Revision: https://reviews.llvm.org/D136011
-
Craig Topper authored
[MachineFrameInfo][RISCV] Call ensureStackAlignment for objects created with scalable vector stack id. This is an alternative to fix PR57939 for RISC-V. It definitely can be argued that the stack temporaries for RISC-V are being created with an unnecessarily large alignment. But ignoring the alignment in MachineFrameInfo also seems bad. Looking at the test update that go with the current ID==0 check, it was intending to exclude things like the NoAlloc stackid. So I'm not sure if scalable vectors are intentionally being excluded. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D135913
-
Peiming Liu authored
To fix D136286 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D136372
-
Sujin Park authored
Resolved a bug in kernel decoding and correctly treat kernel CPUs as individual threads. Differential Revision: https://reviews.llvm.org/D136371
-
Xiang Li authored
Move ResourceClass into llvm/Frontend/HLSL/HLSLResource.h so it could be shared between clang and DirectX backend. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D136134
-
Michael Francis authored
Currently, compiling a program with the `-pg` flag will result in an undefined symbol error for `.mcount`. This revision fixes the call to use `__mcount`, which requires a pointer argument to a pointer-sized object (unique per inserted call) on AIX. This is only a partial fix. This patch should fix the `-pg` flag's behaviour on AIX to work with code you are compiling, but it will not link against standard libraries with `mcount` instrumentation calls. The next step is to add profiled libraries to the linker search paths in the Clang driver for the AIX toolchain when linking with `-pg`. Differential Review: https://reviews.llvm.org/D135384
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D136291
-
Qiongsi Wu authored
On AIX, the default debugger is `dbx` so it is not necessary to explicitly set `-debugger-tuning=dbx` in the presence of `-g`. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D136187
-
Bill Wendling authored
The diagnostic was confusing and reporting that an array contains far more elements than it is defined to have, due to casting. For example, this code: double foo[4096]; ((char*)foo)[sizeof(foo)]; warns that the "index 32768 is past the end of the array (which contains 32768 elements)." Reviewed By: serge-sans-paille, aaron.ballman Differential Revision: https://reviews.llvm.org/D135920
-