- Jan 08, 2021
-
-
Arthur Eubanks authored
Apparently there can be no clones, as happens in coro-retcon-unreachable.ll. The alternative is to allow no split functions in addSplitRefRecursiveFunctions(), but it seems better to have the caller make sure it's not accidentally splitting no functions out. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D94258
-
Arthur Eubanks authored
Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D94257
-
Fangrui Song authored
In three cases we call `scan_eh_tab` to parse LSDA: * `actions & _UA_SEARCH_PHASE` * `actions & _UA_CLEANUP_PHASE && actions & _UA_HANDLER_FRAME && !native_exception` * `actions & _UA_CLEANUP_PHASE && !(actions & _UA_HANDLER_FRAME)` Check `actions & _UA_CLEANUP_PHASE && actions & _UA_HANDLER_FRAME && native_exception` first, then we can move three `scan_eh_tab` into one place. Another simplification is that we can check whether the result of `scan_eh_tab` is `_UA_CONTINUE_UNWIND` or `_UA_FATAL_PHASE1_ERROR` first. Then many of the original checks will be dead and can thus be deleted. Reviewed By: #libc_abi, ldionne Differential Revision: https://reviews.llvm.org/D93186
-
Jeroen Dobbelaere authored
This makes the test more robust to other changes. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D93038
-
Matt Arsenault authored
Really I want this in the legalizer, but this is a start.
-
Mehdi Amini authored
-
Mehdi Amini authored
This fixes a build failure: fatal error: 'mlir/IR/BuiltinTypes.h.inc' file not found
-
Johannes Doerfert authored
-
Eric Schweitz authored
to the conversion of LLVM IR dialect. These attributes are used in FIR to support the lowering of Fortran using target-specific calling conventions. Add roundtrip tests. Add changes per review comments/concerns. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D94052
-
Alexandre Ganea authored
Differential Revision: https://reviews.llvm.org/D93720
-
Johannes Doerfert authored
Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D94185
-
Jeffrey T Mott authored
Motivating example: ``` struct { int v[10]; } t[10]; __builtin_object_size( &t[0].v[11], // access past end of subobject 1 // request remaining bytes of closest surrounding // subobject ); ``` In GCC, this returns 0. https://godbolt.org/z/7TeGs7 In current clang, however, this returns 356, the number of bytes remaining in the whole variable, as if the `type` was 0 instead of 1. https://godbolt.org/z/6Kffox This patch checks for the specific case where we're requesting a subobject's size (type 1) but the subobject is invalid. Differential Revision: https://reviews.llvm.org/D92892 -
Johannes Doerfert authored
Since isa can cause diagnostics we want it to be evaluated last to avoid the "unknown isa" warning if the rest of the selector wouldn't match anyway. That allows us to guard isa with arch properly. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D93785
-
Johannes Doerfert authored
The triple uses a bar "x86-64" instead of an underscore. Since we have troubles accepting x86-64 as an identifier, we stick with x86_64 in the frontend and translate it explicitly. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D93786
-
Johannes Doerfert authored
Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D93735
-
Alexandre Ganea authored
Fixes PR42501. Differential Revision: https://reviews.llvm.org/D93772
-
Mehdi Amini authored
The loop index was shadowing the container name. It seems that we can just not use a for-range loop here since there is an induction variable anyway. Differential Revision: https://reviews.llvm.org/D94254
-
Joseph Huber authored
Add an example to the OpenMP Documentation on the LIBOMPTARGET_INFO environment variable Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D94246
-
dfukalov authored
Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D93813
-
Reid Kleckner authored
This reduces the number of `WinX86_64ABIInfo::classify` call sites from 3 to 1. The call sites were similar, but passed different values for FreeSSERegs. Use variables instead of `if`s to manage that argument.
-
Sanjay Patel authored
Another step towards allowing intrinsics in reduction matching.
-
Alex Zinenko authored
Some Python bindings tests were using FileCheck to match parts of the error description produced only in the debug compilation mode. Remove these parts (but keep the main message) to ensure tests also pass when running them in the release compilation mode. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D94221
-
Alex Zinenko authored
The LLVM dialect type system has been closed until now, i.e. did not support types from other dialects inside containers. While this has had obvious benefits of deriving from a common base class, it has led to some simple types being almost identical with the built-in types, namely integer and floating point types. This in turn has led to a lot of larger-scale complexity: simple types must still be converted, numerous operations that correspond to LLVM IR intrinsics are replicated to produce versions operating on either LLVM dialect or built-in types leading to quasi-duplicate dialects, lowering to the LLVM dialect is essentially required to be one-shot because of type conversion, etc. In this light, it is reasonable to trade off some local complexity in the internal implementation of LLVM dialect types for removing larger-scale system complexity. Previous commits to the LLVM dialect type system have adapted the API to support types from other dialects. Replace LLVMIntegerType with the built-in IntegerType plus additional checks that such types are signless (these are isolated in a utility function that replaced `isa<LLVMType>` and in the parser). Temporarily keep the possibility to parse `!llvm.i32` as a synonym for `i32`, but add a deprecation notice. Reviewed By: mehdi_amini, silvas, antiagainst Differential Revision: https://reviews.llvm.org/D94178
-
Wouter van Oortmerssen authored
A struct in C passed by value did not get debug information. Such values are currently lowered to a Wasm local even in -O0 (not to an alloca like on other archs), which becomes a Target Index operand (TI_LOCAL). The DWARF writing code was not emitting locations in for TI's specifically if the location is a single range (not a list). In addition, the ExplicitLocals pass which removes the ARGUMENT pseudo instructions did not update the associated DBG_VALUEs, and couldn't even find these values since the code assumed such instructions are adjacent, which is not the case here. Also fixed asm printing of TIs needed by a test. Differential Revision: https://reviews.llvm.org/D94140
-
Matt Arsenault authored
Make the sequence of passes to select and rewrite instructions to physical registers be a target callback. This is to prepare to allow targets to split register allocation into multiple phases.
-
Hiroshi Yamauchi authored
Differential Revision: https://reviews.llvm.org/D94199
-
Alexandre Ganea authored
Silence warning: comparison of integers of different signs: 'const unsigned int' and 'const long' [-Wsign-compare] (off_t being a signed type)
-
Mircea Trofin authored
Last bulk batch. Differential Revision: https://reviews.llvm.org/D94236
-
Mehdi Amini authored
Error was: mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp:2247:36: error: cannot call member function 'mlir::LLVM::FastmathFlags mlir::LLVM::FMFAttr::getFlags() const' without object return bitEnumContains(getFlags(), flag); ^ -
Eric Schweitz authored
-
Alan Phipps authored
Refactor three tests to not depend on other test files as input but to instead refer to "Inputs" subdirectory.
-
Erich Keane authored
As shown by bug 48540, GCC vector types would cause a crash when the declaration hada ParenType. This was because the walking of the declaration would try to expand the 'inner' type, but there was no ability to get it from the vector type. This patch adds that element type access to the vector type loc objects. Differential Revision: https://reviews.llvm.org/D93483
-
Thomas Preud'homme authored
Remove continuation line in code snippet to prevent GCC warning about multiline comments (-Wcomment) when building a project using libclang with GCC. Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D92409
-
Kazuaki Ishizaki authored
fix typo under include and lib directories Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D94220
-
Jeroen Dobbelaere authored
When introducing support for @llvm.experimental.noalias.scope.decl, this tests started failing because it checks (for no good reason) for a function attribute id of '#8' which now becomes '#9' Reviewed By: pratlucas Differential Revision: https://reviews.llvm.org/D94233
-
Eric Schweitz authored
the conversion of LLVM IR dialect. These attributes are used in FIR to support the lowering of Fortran using target-specific calling conventions. Add roundtrip tests. Add changes per review comments/concerns. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D94052
-
Varun Gandhi authored
Incorrect usage of NDEBUG to guard ABI changes can prevent clients from enabling assertions for their C++ code while having assertions in LLVM turned off. So we use LLVM_ENABLE_ABI_BREAKING_CHECKS instead, as described in llvm/docs/ProgrammersManual.rst. Most types already use this macro, however, there were a couple of stragglers in ValueHandle.h, which are fixed by this revision. Reviewed By: dblaikie, dexonsmith Differential Revision: https://reviews.llvm.org/D93433
-
Mircea Trofin authored
This covers tests starting with s. Differential Revision: https://reviews.llvm.org/D94184
-
- Jan 07, 2021
-
-
Cameron McInally authored
Differential Revision: https://reviews.llvm.org/D94193
-
Bardia Mahjour authored
Adds some tests to check the formatting of the dot file produced when using -dot-ddg. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D93949
-