- Dec 21, 2022
-
-
Matt Arsenault authored
-
Sunil Kuravinakop authored
Support for taskwait nowait clause with placeholder for runtime changes. Reviewed By: cchen, ABataev Differential Revision: https://reviews.llvm.org/D131830
-
Arthur Eubanks authored
The provided test case was crashing because of confusion attempting to find types for `ns::Foo` under -gsimple-template-names. (This looks broken normally because it's attempting to find `ns::Foo` rather than `ns::Foo<T>`) Looking up types can't give false positives, as opposed to looking up functions as mentioned in https://reviews.llvm.org/D137098. Reviewed By: Michael137 Differential Revision: https://reviews.llvm.org/D140240
-
Adrian Prantl authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
Fix build after e49f8eef
-
Adrian Prantl authored
-
Stephen Tozer authored
Currently the instruction referencing live debug values has 3 separate places where we iterate over all known locations to find the best machine location for a set of values at a given point in the program. Each of these places has an implementation of this check, and one of them has slightly different logic to the others. This patch moves the check for the "quality" of a machine location into a separate function, which also avoids repeatedly calling expensive functions, giving a slight performance improvement. Differential Revision: https://reviews.llvm.org/D140412
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Fangrui Song authored
This reverts commit ae3e228a. Seems that it may form a wrong command line for 32-bit Halide builds `-D_FILE_OFFSET_BITS="64 -D_DEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"` according to
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Roman Lebedev authored
It's a bit non-useful when llvm-reduce runs a pass, a testcase for a crash in which is being reduced in the first place :)
-
Yaneury Fermin authored
On Fuchsia, this CL changes garbage collection to precommit all pages if the |Buffer| doesn't fit into the static buffer size. A test program (scudotest) was used that deliberately grows a size class high water mark to the point where the pre-allocated static buffer is no longer used for garbage collection. Traces showed that precommiting the Vmar removes ~30 page faults and ~.22ms of wall time.* Before: https://ui.perfetto.dev/#!/?s=7da19fc3f59448eef51fd6fd03283bb87b702cf1a565bcbe6c9c28371671 After: https://ui.perfetto.dev/#!/?s=97707cd99b2c9efd1e6569b2deb97e3d16f8be532c59a0cc12463c37fbb1d8 *: Use the added `zx_vmar_op_range` as a reference point to observe the differences. For more context, see https://fxbug.dev/115594. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D140320
-
Fangrui Song authored
Suggested by alexreinking (Alex Reinking)
-
Roman Lebedev authored
As per post-commit feedback - we generally do not like Constant Expressions, and trying to deal with them leads to inconsistent results that may very well be non-optimal. So just don't.
-
Joshua Cranmer authored
-
Hans Wennborg authored
This broke the instrprof-darwin-exports.c test on mac, see e.g. https://green.lab.llvm.org/green/job/clang-stage1-RA/32351/ > Previously, we would be passing down -stdlib=libc++ from the Driver > to CC1 whenever the default standard library on the platform was libc++, > even if -stdlib= had not been passed to the Driver. This meant that we > would pass -stdlib=libc++ in nonsensical circumstances, such as when > compiling C code. > > This logic had been added in b534ce46 to make sure that header > search paths were set up properly. However, since libc++ is now the > default Standard Library on Darwin, passing this explicitly is not > required anymore. Indeed, if no -stdlib= is specified, CC1 will end > up using libc++ if it queries which standard library to use, without > having to be told. > > Not passing -stdlib= at all to CC1 on Darwin should become possible > once CC1 stops relying on it to set up framework search paths. > > Furthermore, this commit also removes a diagnostic checking whether the > deployment target is too old to support libc++. Nowadays, all supported > deployment targets use libc++ and compiling with libstdc++ is not > supported anymore. The Driver was the wrong place to issue this > diagnostic since it doesn't know whether libc++ will actually be linked > against (e.g. C vs C++), which would lead to spurious diagnostics. > Given that these targets are not supported anymore, we simply drop > the diagnostic instead of trying to refactor it into CC1. > > rdar://103198514 > > Differential Revision: https://reviews.llvm.org/D139938 This reverts commit 6540f32d.
-
Craig Topper authored
This switches a large subset of RISC-V intrinsics to use default attributes (nosync, nofree, nocallback and willreturn). I didn't reformat a lot of this. I can spend more time on that if we think it's important. Reviewed By: nikic, asb, eopXD Differential Revision: https://reviews.llvm.org/D140360
-
Joshua Cranmer authored
Target-extension types represent types that need to be preserved through optimization, but otherwise are not introspectable by target-independent optimizations. This patch doesn't add any uses of these types by an existing backend, it only provides basic infrastructure such that these types would work correctly. Reviewed By: nikic, barannikov88 Differential Revision: https://reviews.llvm.org/D135202
-
- Dec 20, 2022
-
-
Pavel Iliin authored
This is Function Multi Versioning (FMV) implementation for AArch64 target in accordance with Beta Arm C Language Extensions specification https://github.com/ARM-software/acle/blob/main/main/acle.md#function-multi-versioning It supports new "target_version" function attribute and extends existing "target_clones" one. Also missing dependencies for target features were added. Differential Revision: https://reviews.llvm.org/D127812
-
Leon Clark authored
Add support for roundeven and implement appropriate tests. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D137954
-
Roman Lebedev authored
One of these two changes is exposing (or causing) some more miscompiles. A reproducer is in progress, so reverting until resolved. This reverts commit 9ddff66d.
-
Roman Lebedev authored
Revert "Reland "[SimplifyCFG] `FoldBranchToCommonDest()`: deal with mismatched IV's in PHI's in common successor block"" One of these two changes is exposing (or causing) some more miscompiles. A reproducer is in progress, so reverting until resolved. This reverts commit 428f3640.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
David Green authored
These tests needn't use loads in their testing of dup and mul instructions, and as the load changes the test may no longer test what they are intending (as in D140069).
-
Roman Lebedev authored
`canFreelyInvertAllUsersOf()`, in general, does not make sense for constants, and constant expressions are likely even more problematic. For those, we just want to create a simple constant expression and be done. Fixes https://github.com/llvm/llvm-project/issues/59613
-
Craig Topper authored
The LUI and AUIPC share quite a few similarities. This refactors the code to share what we can. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D140345
-
Craig Topper authored
Primarily this allows us to fold the addi from PseudoLLA expansion into a load. If the linker is able to GP relax the constant pool access we'll end up with a GP relative load. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D140341
-
Nico Weber authored
This diff was generated by the following script: #!/usr/bin/env python3 import os, subprocess r = subprocess.run('git show --pretty='' --name-only f09cf34d'.split(), stdout=subprocess.PIPE, text=True) for line in r.stdout.splitlines(): if not line.endswith('CMakeLists.txt'): continue gn = 'llvm/utils/gn/secondary/' + os.path.dirname(line) + '/BUILD.gn' if not os.path.exists(gn): continue with open(gn) as f: contents = f.read() if contents.count('"//llvm/lib/Support",') == 1: contents = contents.replace( '"//llvm/lib/Support",', '"//llvm/lib/Support", "//llvm/lib/TargetParser",') elif contents.count(' deps = [') == 1: contents = contents.replace( ' deps = [', ' deps = [ "//llvm/lib/TargetParser",') else: print('needs manual fixup:', gn) continue with open(gn, 'w') as f: f.write(contents) I then manually fixed up the BUILD.gn files for Support (should not depend on TargetParser) and TargetParser (should depend on Support) and ran `gn format` on all touched files. -
Joseph Huber authored
Summary: We need to forward certain CMake definitions to the runtimes build when using `-DLLVM_ENABLE_RUNTIMES=libc`. The `libc` project uses both `LLVM_LIBC` and `LIBC` prefixes. Previously we only forwarded `LLVM_LIBC`. This patch adds the `LIBC_` prefix, using the underscore to separate it from `LIBCXX`.
-
Nico Weber authored
-
KAWASHIMA Takahiro authored
Differential Revision: https://reviews.llvm.org/D139810
-
KAWASHIMA Takahiro authored
`-mcpu=` in `llvm/test/CodeGen/AArch64/machine-combiner.ll` is changed to `neoverse-n2` to use FP16 and SVE/SVE2 instructions. By this, the register allocation and/or instruction scheduling are slightly changed and some existing `CHECK` lines need to be updated. Differential Revision: https://reviews.llvm.org/D139809
-
Nico Weber authored
For now, this adds a dep from Support on the new TargetParser library instead of the other way round. That'll be fixed in a mechanical follow-up.
-
Ed Maste authored
ELF Tool Chain provides alternatives to most GNU binutils tools, including readelf. These tools are currently used by FreeBSD. ELF Tool Chain's readelf currently emits headings for symbol table information in a slightly different format compared to GNU or LLVM readelf. Accept both formats. Reviewed by: philnik Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D140313
-
bipmis authored
Muls with 64bit operands where each of the operand is having top 32 bits as zero, we can generate a single umull instruction on a 32bit operand. Differential Revision: https://reviews.llvm.org/D139411
-
yronglin authored
Fix AArch64ABIInfo::EmitAAPCSVAArg crash with empty record type in variadic arg Open issue: https://github.com/llvm/llvm-project/issues/59034 Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D138511
-