- Aug 20, 2021
-
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Don't use an else-block as the previous if-block always returns, and remove the (now more obvious) dead return {}. -
Florian Mayer authored
This reverts commit 119146f8.
-
Simon Pilgrim authored
-
Denys Shabalin authored
Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D108369
-
Tim Northover authored
The registers involved might not be identical, but can still overlap (e.g. "str w0, [x0, #4]!").
-
Roman Lebedev authored
The only thing that function should do as per it's semantic, is to ensure that the switch's default is a block consisting only of an `unreachable` terminator. So let's just create such a block and update switch's default to point to it. There should be no need for all this weird dance around predecessors/successors.
-
Jingu Kang authored
Differential Revision: https://reviews.llvm.org/D105996
-
Fraser Cormack authored
This patch fixes an issue where RISCV's `findCommutedOpIndices` would incorrectly return the pseudo `CommuteAnyOperandIndex` as a commutable operand index, rather than fixing a specific index. Reviewed By: rogfer01 Differential Revision: https://reviews.llvm.org/D108206
-
Andrzej Warzynski authored
This reverts commit fd21d1e1. The test added in this patch [1] is failing on Windows and causing the Windows BuildBot [2] to fail. I don't see any obvious way to fix this, so reverting in order to investigate. [1] llvm-project/flang/test/Driver/output-paths.f90 [2] https://lab.llvm.org/buildbot/#/builders/172/builds/2077
-
Vladislav Vinogradov authored
* Add `RegionBranchTerminatorOpInterface` to `YieldOp`. * Implement `getSuccessorEntryOperands` in `ExecuteOp`. * Fix `getSuccessorRegions` implementation in `ExecuteOp`. Reviewed By: ezhulenev Differential Revision: https://reviews.llvm.org/D108373
-
Florian Mayer authored
In that case it is very likely that there will be a tag mismatch anyway. We handle the case that the pointer belongs to neither of the allocators by getting a nullptr from allocator.GetBlockBegin. Reviewed By: hctim, eugenis Differential Revision: https://reviews.llvm.org/D108383
-
Vignesh Balasubramanian authored
These changes don't come under OMPD guard as it is a movement of existing code to capture parallel behavior correctly. "Runtime Entry Points for OMPD" like "ompd_bp_parallel_begin" and "ompd_bp_parallel_begin" should be placed at the correct execution point for the debugging tool to access proper handles/data. Without the below changes, in certain cases, debugging tool will pick the wrong parallel and task handle. Reviewed By: @hbae Differential Revision: https://reviews.llvm.org/D100366
-
Vladislav Vinogradov authored
Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D108376
-
Jingu Kang authored
-
Justas Janickas authored
C++ for OpenCL version 2021 and later are expected to consist of a major version number only. Therefore, a different constructor for `VersionTuple` needs to be called when reporting language version. Differential Revision: https://reviews.llvm.org/D108379
-
Yaron Keren authored
Differential Revision: https://reviews.llvm.org/D108444
-
Sam McCall authored
This triggers coverity warnings, see https://reviews.llvm.org/D107703
-
Andrzej Warzynski authored
This patch refactors the file generation API in Flang's frontend driver. It improves the layering between `CreateDefaultOutputFile`, `CreateOutputFile` (`CompilerInstance` methods) and their various clients. List of changes: * Rename `CreateOutputFile` as `CreateOutputFileImpl` and make it private. This method is an implementation detail. * Instead of passing an `std::error_code` out parameter into `CreateOutputFileImpl`, have it return Expected<>. This is a bit shorter and more idiomatic LLVM. * Make `CreateDefaultOutputFile` (which calls `CreateOutputFileImpl`) issue an error when file creation fails. The error code from `CreateOutputFileImpl` is used to generate a meaningful diagnostic message. * Remove error reporting from `PrintPreprocessedAction::ExecuteAction`. This is only for cases when output file generation fails. This is handled in `CreateDefaultOutputFile` instead (see the previous point). * Inline `AddOutputFile` into its only caller, `CreateDefaultOutputFile`. * Switch from `lvm::buffer_ostream` to `llvm::buffer_unique_ostream>` for non-seekable output streams. This simplifies the logic in the driver and was introduced for this very reason in [1] * Moke sure that the diagnostics from the prescanner when running `-E` (`PrintPreprocessedAction::ExecuteAction`) are printed before the actual output is generated. * Update comments, add test. [1] https://reviews.llvm.org/D93260 Differential Revision: https://reviews.llvm.org/D108390
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D108406
-
Kazu Hirata authored
The last use was removed on Oct 4, 2020 in commit 6d0be74a.
-
Sebastian Neubauer authored
Prevent SIFoldOperands from creating SALU instructions with a constant and a frame index. Previously, only one operand was checked to be a frame index, leading to too many constants when flat scratch is enabled and stack offsets are large. Differential Revision: https://reviews.llvm.org/D108368
-
LLVM GN Syncbot authored
-
Martin Storsjö authored
This avoids pulling in all of them if only one of them is needed (if builtins are built without -ffunction-sections), and matches how the similar aliases for AEABI are set up. Differential Revision: https://reviews.llvm.org/D107815
-
Christian Sigg authored
Use the simplified repo rules from https://github.com/llvm/llvm-project/commit/934f084. Reviewed By: GMNGeoffrey Differential Revision: https://reviews.llvm.org/D108237
-
Anshil Gandhi authored
This patch allows target specific addr space in target builtins for HIP. It inserts implicit addr space cast for non-generic pointer to generic pointer in general, and inserts implicit addr space cast for generic to non-generic for target builtin arguments only. It is NFC for non-HIP languages. Differential Revision: https://reviews.llvm.org/D102405
-
Daniel Stone authored
The rounding during type conversion uses multiple conversions, selecting between them to try to discover if rounding occurred. This appears to not have been tested, since it would generate code of the form: float convert_float_rtp(char x) { float r = convert_float(x); char y = convert_char(y); [...] } which will access uninitialised data. The idea appears to have been to have done a char -> float -> char roundtrip in order to discover the rounding, so do this. Discovered by inspection. Signed-off-by:Daniel Stone <daniels@collabora.com> Reviewed By: jvesely Differential Revision: https://reviews.llvm.org/D81999
-
LLVM GN Syncbot authored
-
Lang Hames authored
This prevents the async methods (which shoud be overridden by subclasses) from hiding the blocking helper methods, avoiding a lot of 'using MemoryAccess::...' boilerplate.
-
Lang Hames authored
Accepts a vector of (SymbolStringPtr, ExecutorAddress*) pairs, looks up all the symbols, then writes their address to each of the corresponding ExecutorAddresses. This idiom (looking up and recording addresses into a specific set of variables) is used in MachOPlatform and the (temporarily reverted) ELFNixPlatform, and is likely to be used in other places in the near future, so wrapping it in a utility function should save us some boilerplate.
-
Siva Chandra Reddy authored
-
Anton Afanasyev authored
-
Anton Afanasyev authored
-
Anton Afanasyev authored
-
Anshil Gandhi authored
Produce remarks when atomic instructions are expanded into hardware instructions in SIISelLowering.cpp. Currently, these remarks are only emitted for atomic fadd instructions. Differential Revision: https://reviews.llvm.org/D108150
-
Albion Fung authored
This patch implements the builtins for cmplxl by utilising __builtin_complex. This builtin is implemented to match XL functionality. Differential revision: https://reviews.llvm.org/D107138
-
Rob Suderman authored
Tosa rescale can contain uint8 types. Added support for these types using an unrealized conversion cast. Optimistically it would be better to use bitcast however it does not support unsigned integers. Differential Revision: https://reviews.llvm.org/D108427
-
Maryam Benimmar authored
Support XCOFFDumper relocation reading support This patch is part of D103696 partition Reviewed By: daltenty, Helflym Differential Revision: https://reviews.llvm.org/D104646
-
Jinsong Ji authored
Update the commit to use shlex.split, as the win32 is not supported. See https://reviews.llvm.org/D108329 for discussions.
-