- Jul 23, 2021
-
-
Hsiangkai Wang authored
Differential Revision: https://reviews.llvm.org/D105086
-
Jacques Pienaar authored
-
Tom Stellard authored
This doesn't appear to be used anywhere. Reviewed By: serge-sans-paille Differential Revision: https://reviews.llvm.org/D100021
-
Leonard Grey authored
Ported from COFF/ELF; test is adapted from test/COFF/thinlto-archivecollision.ll LTO expects every bitcode file to have a unique name. If given multiple bitcode files with the same name, it errors with "Expected at most one ThinLTO module per bitcode file". This change incorporates the archive name, to disambiguate members with the same name in different archives and the offset in archive to disambiguate members with the same name in the same archive. Differential Revision: https://reviews.llvm.org/D106179
-
Joseph Huber authored
-
Joseph Huber authored
This patch adds support for two environment variables to configure the device. ``LIBOMPTARGET_STACK_SIZE`` sets the amount of memory in bytes that each thread has for its stack. ``LIBOMPTARGET_HEAP_SIZE`` sets the amount of heap memory that can be allocated using malloc / free on the device. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D106627
-
Nico Weber authored
Seems to work. (I only tried macOS, not iOS, but need to allow both because the iOS toolchain used to build compiler-rt asserts otherwise.)
-
Nico Weber authored
Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
-
Nico Weber authored
No behavior change
-
Giorgis Georgakoudis authored
-
Kai Luo authored
According to https://www.ibm.com/docs/en/xl-c-and-cpp-aix/16.1?topic=functions-compare-swap-compare-swaplp XL's `__compare_and_swap` has a weird behavior that > In either case, the contents of the memory location specified by addr are copied into the memory location specified by old_val_addr. (unlike c11 `atomic_compare_exchange` specified in http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf) This patch let clang's implementation follow this behavior. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D106344
-
Giorgis Georgakoudis authored
SPMDization D102307 detects incompatible OpenMP runtime calls to abort converting a target region to SPMD mode. Calls to memory allocation/de-allocation routines kmpc_alloc_shared, kmpc_free_shared are incompatible unless they are removed by AAHeapToStack/AAHeapToShared analysis. This patch extends SPMDization detection to include AAHeapToStack/AAHeapToShared analysis results for enlarging the scope of possible SPMDized regions detected. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D105634
-
Vitaly Buka authored
TARGET lld is always false there.
-
Vitaly Buka authored
-
Rob Suderman authored
If this pass executes without shape inference its possible for unranked tensors to appear in the IR. This pass should gracefully handle unranked tensors. Differential Revision: https://reviews.llvm.org/D106617
-
Thomas Johnson authored
Differential Revision: https://reviews.llvm.org/D106602
-
Gulfem Savrun Yeniceri authored
This patch adds binary id into profiles to easily associate binaries with the corresponding profiles. There is an RFC that discusses the motivation, design and implementation in more detail: https://lists.llvm.org/pipermail/llvm-dev/2021-June/151154.html Differential Revision: https://reviews.llvm.org/D102039
-
Fangrui Song authored
This generalizes D70146 (SHT_NOTE) to more reserved sections and makes our rules more consistent. Now SHF_GROUP is more similar to SHF_LINK_ORDER. For SHT_INIT_ARRAY/SHT_FINI_ARRAY, the rule will be closer to PE/COFF link.exe. Previously sanitizers use llvm.global_ctors to make module_ctor a GC root, which is considered an abuse. https://groups.google.com/g/generic-abi/c/TpleUEkNoQI We can squeak through on compatibility issues because compilers otherwise don't use SHF_GROUP special sections.
-
Fangrui Song authored
-
Hongtao Yu authored
Fixing a typo in SampleContextTracker to use debug name when debug linkage name is no present. This should only affect C programs. Saw 0.6% perf win on Cinder which is mostly C code. Reviewed By: wenlei, wmi Differential Revision: https://reviews.llvm.org/D106599
-
Nico Weber authored
In ld64, `-U section$start$FOO$bar` handles `section$start$FOO$bar` as a regular `section$start` symbol, that is section$start processing happens before -U processing. Likely, nobody uses that in practice so it doesn't seem very important to be compatible with this, but it also moves the -U handling code next to the `-undefined dynamic_lookup` handling code, which is nice because they do the same thing. And, in fact, this did identify a bug in a corner case in the intersection of `-undefined dynamic_lookup` and dead-stripping (fix for that in D106565). Vaguely related to PR50760. No interesting behavior change. Differential Revision: https://reviews.llvm.org/D106566
-
Nico Weber authored
-
Mara Sophie Grosch authored
This patch adds llvm-readobj and the binutils symlink for readelf to LLVM_TOOLCHAIN_TOOLS. Tvoid *thread, void *attr,hey are required by some (most?) autoconf-built libraries, adding these allows me to build newlib with the toolchain generated this way. Also opened an issue for that some days ago, see https://bugs.llvm.org/show_bug.cgi?id=50698 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D104957
-
Thomas Lively authored
Commit db7efcab changed the implementations of the wasm_*_extract_lane and wasm_*_replace_lane intrinsics from using builtin functions to using the standard vector extensions. This did not change the resulting IR, but it changes how update_cc_test_checks.py labels values in the IR. This commit simply updates those labels. Differential Revision: https://reviews.llvm.org/D106611
-
Nico Weber authored
We lost the `used` bit on the Undefined when we replaced it with a DylibSymbol in treatUndefined(). Differential Revision: https://reviews.llvm.org/D106565
-
Christopher Di Bella authored
`__function_like` wasn't being exported, so certain properties of the `ranges` functions weren't being propagated in modules land. Differential Revision: https://reviews.llvm.org/D105078
-
Mircea Trofin authored
This should fix build breaks for 'development' mode. The other modes were unaffected - 'release' because it doesn't use TFUtils.cpp, and the mixed mode because the AOT compiled code brings in the necessary include dirs anyway.
-
Shilei Tian authored
In current implementation, if a regular task depends on a hidden helper task, and when the hidden helper task is releasing its dependences, it directly calls `__kmp_omp_task`. This could cause a problem that if `__kmp_push_task` returns `TASK_NOT_PUSHED`, the task will be executed immediately. However, the hidden helper threads are assumed to only execute hidden helper tasks. This could cause problems because when calling `__kmp_omp_task`, the encountering gtid, which is not the real one of the thread, is passed. This patch uses `__kmp_give_task`, but because it is a static function, a new wrapper `__kmpc_give_task` is added. Reviewed By: AndreyChurbanov Differential Revision: https://reviews.llvm.org/D106572
-
Florian Mayer authored
This avoids unnecessary instrumentation. Reviewed By: eugenis, vitalybuka Differential Revision: https://reviews.llvm.org/D105703
-
Geoffrey Martin-Noble authored
Since Bazel has packages, we don't prefix target names with LLVM. I forgot when translating the CMake.
-
Mircea Trofin authored
Differential Revision: https://reviews.llvm.org/D101467
-
Michael McLoughlin authored
When using `llvm_zlib_external` rule with `external_zlib` attribute set to a label referring to the main repository, like `@//third_party/zlib`, it will be replaced with `//third_party/zlib` after template substitution. This will then attempt to find `//third_party/zlib` within the local repository `@llvm_zlib//third_party/zlib`, which does not exist, rather than the intended reference back to the main repository. The issue appears to be that the conversion of `Label` type to string with `str(repository_ctx.attr.external_zlib)`, which is causing the main repository qualifier to be lost. This diff fixes the issue by changing the `external_zlib` attribute to `attr.string` type rather than `attr.label`. In future a more elegant solution may be possible that preserves use of the `Label` type, depending on resolution of the issue https://github.com/bazelbuild/bazel/issues/13731. Ported from Github PR https://github.com/google/llvm-bazel/pull/236. Reviewed By: GMNGeoffrey Differential Revision: https://reviews.llvm.org/D106606
-
Rob Suderman authored
Includes a version of a quantized conv2D operations with a lowering from TOSA to linalg with corresponding test. We keep the quantized and quantized variants as separate named ops to avoid the additional operations for non-quantized convolutions. Differential Revision: https://reviews.llvm.org/D106407
-
George Balatsouras authored
Functions `vsnprintf`, `vsprintf` and `vfprintf` commonly occur in DFSan warnings. Reviewed By: stephan.yichao.zhao Differential Revision: https://reviews.llvm.org/D106195
-
Jose M Monsalve Diaz authored
These functions should follow the camel case convention. These are really easy to change and are needed for D106033. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D106390
-
Jim Ingham authored
Code was added to Target::RunStopHook to make sure that we don't run stop hooks when you stop after an expression evaluation. But the way it was done was to check that we hadn't run an expression since the last natural stop. That failed in the case where you stopped for a breakpoint which had run an expression, because the stop-hooks get run after the breakpoint actions, and so by the time we got to running the stop-hooks, we had already run a user expression. I fixed this by adding a target ivar tracking the last natural stop ID at which we had run a stop-hook. Then we keep track of this and make sure we run the stop-hooks only once per natural stop. Differential Revision: https://reviews.llvm.org/D106514
-
Eli Friedman authored
-
Geoffrey Martin-Noble authored
Update Bazel for https://github.com/llvm/llvm-project/commit/f8c6515554 by splitting out an LLVMDWP library target.
-
Amy Huang authored
Add an opt out flag for constructor homing. Differential Revision: https://reviews.llvm.org/D106582
-
David Blaikie authored
An empty enum is used to implement C++'s new-ish "byte" type (to make sure it's a separate type for overloading, etc - compared to a typedef) - without any enumerators. Some clang warnings don't make sense in this sort of situation, so let's skip them for empty enums. It's arguable that possibly some situations of enumerations without enumerators might want the previous-to-this-patch behavior (if the enum is autogenerated and in some cases comes up empty, then maybe a default in an empty switch would still be considered problematic - so that when you add the first enumeration you do get a -Wswitch warning). But I think that's niche enough & this std::byte case is mainstream enough that we should prioritize the latter over the former. If someone's got a middle ground proposal to account for both of those situations, I'm open to patches/suggestions/etc.
-