- Feb 15, 2022
-
-
Peter Klausler authored
Semantic analysis was emitting a bogus error message when a structure constructor contains a monomorphic value for a (limited) polymorphic component of a derived type. The type compatibility test was too strict; this patch relaxes it a little to allow values that could be assigned or passed to a variable or dummy argument with that type. Also add some quotes to an error message that was sometimes confusing without them, and remove a repeated space character from another. Differential Revision: https://reviews.llvm.org/D119744
-
Jim Ingham authored
Some dyld cross library stubs can have line information but no function. Make sure you check that you have a valid Function object before asking it questions. Differential Revision: https://reviews.llvm.org/D119297
-
Jim Ingham authored
This way if you have a long stack, you can issue "thread backtrace --count 10" and then subsequent <Return>-s will page you through the stack. This took a little more effort than just adding the repeat command, since the GetRepeatCommand API was returning a "const char *". That meant the command had to keep the repeat string alive, which is inconvenient. The original API returned either a nullptr, or a const char *, so I changed the private API to return an llvm::Optional<std::string>. Most of the patch is propagating that change. Also, there was a little thinko in fetching the repeat command. We don't fetch repeat commands for commands that aren't being added to history, which is in general reasonable. And we don't add repeat commands to the history - also reasonable. But we do want the repeat command to be able to generate the NEXT repeat command. So I adjusted the logic in HandleCommand to work that way. Differential Revision: https://reviews.llvm.org/D119046
-
Nikolas Klauser authored
This makes the GCC output even cleaner! Reviewed By: ldionne, #libc Spies: mstorsjo, Quuxplusone, Mordante, libcxx-commits Differential Revision: https://reviews.llvm.org/D119295
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D119497
-
Bixia Zheng authored
The only method to create a true dense tensor (i.e un-annotated) in MLIR-PyTACO is through the from_array method. However, the annotated all dense tensors are also implemented as true dense tensor currently. The PR fixes the implementation to support annotated all dense sparse tensors. Extend the tensor init method to support the construction of a tensor without any sparsity annotation. Change the tensor to_file method to only support writing unpacked sparse tensors to file through the MLIR sparse tensor dialect. Add unit tests for true dense tensors and all dense sparse tensors. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D119500
-
Peter Klausler authored
ENTRY point symbols aren't marked PURE in the symbol table, but must instead inherit the attribute from their containing subprograms. There's a predicate in semantics that does this, but it wasn't being used in the context of actual procedure argument characterization. Differential Revision: https://reviews.llvm.org/D119564
-
Florian Mayer authored
Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D119614
-
Louis Dionne authored
-
Martin Storsjö authored
Only opt out from it in the few configs (GCC based) where there still are build warnings. Differential Revision: https://reviews.llvm.org/D119573
-
Stefan Pintilie authored
The LDMX instruction was to be potentially added in P9 but it was never added in either ISA 3.0 or ISA 3.1. This patch removes that instruction as it is currently still an invalid instruction. Reviewed By: lei Differential Revision: https://reviews.llvm.org/D118074
-
Florian Mayer authored
Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D119610
-
Peter Klausler authored
The predicate IsInitialDataTarget() was failing to return a correct true result in the case of a reference to the intrinsic function NULL() with a MOLD= argument. Fix, and improve tests for "NULL()" elsewhere in semantics, checking for an attribute set by intrinsics.cpp rather than the actual name. Differential Revision: https://reviews.llvm.org/D119452
-
Dmitry Vassiliev authored
The texsurf_handle is removed by NVPTXReplaceImageHandles.cpp. There are more than one uses of the texsurf_handle, one of them is a regular function call, and one of them is a texture intrinsic. The current hacky logic in NVPTXReplaceImageHandles.cpp for CUDA cannot handle such a mixed use. This patch fixes this issue. Reviewed By: tra Differential Revision: https://reviews.llvm.org/D119635
-
Dmitry Vassiliev authored
Need to subract from 64, not 32. Reviewed By: tra Differential Revision: https://reviews.llvm.org/D119639
-
Sam Clegg authored
These global TLS symbols are shared across all shared libraries and therefor should not be assumed to be local to the current module. Also add new error in the linker when TLS relocations are used against undefined symbols. TLS relocations are offsets into the current modules tls data segment, and don't make sense for undefined symbols which are modeled as global imports. Fixes: https://github.com/emscripten-core/emscripten/issues/13398 Differential Revision: https://reviews.llvm.org/D119630
-
Nick Desaulniers authored
There was a fixme in the code pertaining to attributing functions as noreturn. By using reachability, if none of the blocks that are reachable from the entry return, then the function is noreturn. Previously, the code only checked if any blocks returned. If they're unreachable, then they don't matter. This improves codegen for the Linux kernel. Fixes: https://github.com/ClangBuiltLinux/linux/issues/1563 Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D119571
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D119487
-
LLVM GN Syncbot authored
-
Marek Kurdej authored
* https://wg21.link/P0943 * https://eel.is/c++draft/stdatomic.h.syn Differential Revision: https://reviews.llvm.org/D97044
-
Fangrui Song authored
This reverts commit cccef321. Broke clang-cuda-t4 ``` /buildbot/cuda-t4-0/work/clang-cuda-t4/clang/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time -UNDEBUG --cuda-path=/buildbot/cuda-t4-0/work/clang-cuda-t4/external/cuda/cuda-11.0 -I/buildbot/cuda-t4-0/work/clang-cuda-t4/external/cuda/cuda-11.0/include --cuda-gpu-arch=sm_75 -std=c++20 -stdlib=libstdc++ --gcc-toolchain=/buildbot/cuda-t4-0/work/clang-cuda-t4/external/cuda/gcc-8 -DSTDLIB_VERSION=2014 -MD -MT External/CUDA/CMakeFiles/complex-cuda-11.0-c++20-libstdc++-8.dir/complex.cu.o -MF External/CUDA/CMakeFiles/complex-cuda-11.0-c++20-libstdc++-8.dir/complex.cu.o.d -o External/CUDA/CMakeFiles/complex-cuda-11.0-c++20-libstdc++-8.dir/complex.cu.o -c /buildbot/cuda-t4-0/work/clang-cuda-t4/llvm-test-suite/External/CUDA/complex.cu ptxas /tmp/complex-cfa050/complex-sm_75.s, line 250; fatal : Parsing error near '$L__BB6_2': syntax error ptxas fatal : Ptx assembly aborted due to errors ```
-
Alex Lorenz authored
[clang][test] Add -fuse-ld= to test cases added in d238acd1 to resolve test failure with CLANG_DEFAULT_LINKER=lld
-
Louis Dionne authored
Instead of using the deprecated LLVM_ENABLE_PROJECTS build, use the default runtimes build. This is just as fast, but it's supported. Differential Revision: https://reviews.llvm.org/D119275
-
Dmitry Vassiliev authored
A global variable may have the same name as a label, and ptxas does not accept it. Prefix labels with $L__ to fix this. Reviewed By: MaskRay, tra Differential Revision: https://reviews.llvm.org/D119669
-
Jay Foad authored
Separate MCRegisterInfo::regsOverlap out from TargetRegisterInfo::regsOverlap. This is useful in the AMDGPU AsmParser where we only have access to MCRegisterInfo. Differential Revision: https://reviews.llvm.org/D119533
-
Joe Nash authored
An enum value stores the offset between AGPR ranges and VGPR ranges in the internal storage of SIInsertWaitcnts. It said 226 when it should say 256, causing some portion of the ranges to overlap. That in turn causes 'aliasing' between the registers, potentially inserting waitcnts that are not required. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D119749
-
Louis Dionne authored
We added one for libc++ recently, and this patch adds one for libc++abi. Also, as a fly-by fix, include older libunwind dylibs in the testing of libc++ and libc++abi, which fixes some issues related to running back-deployment tests on newer systems. Differential Revision: https://reviews.llvm.org/D119466
-
Joseph Huber authored
Currently whenever we compile the device runtime we get the following 'Mapping.cpp:32:32: warning: inline function '_OMP::impl::getGridValue' is not defined [-Wundefined-inline]' warning. This can be silenced by removing the constexpr attribute for this function. Doing this doesn't change the generated bitcode at all but prevents the screen from getting filled with warnings whenver we build the runtime. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D119747
-
Valentin Clement authored
This patch allows the lowring of simple empty function with a scalar integer or logical return value. The code in ConvertType.cpp is cleaned up as well. This file was landed together with the initial flang push and lowering was still a prototype at that time. Some more cleaning will come with follow up patches. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D119698 Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Alex Lorenz authored
[clang][driver] add clang driver support for emitting macho files with two build version load commands This patch extends clang driver to pass the right flags to the clang frontend, and ld64, so that they can emit macho files with two build version load commands. It adds a new 0darwin-target-variant option which complements -target and also can be used to specify different target variants when multi-arch compilations are invoked with multiple -arch commands. Differential Revision: https://reviews.llvm.org/D118862
-
Martin Storsjö authored
This test feeds in the expected utf8 form of weekdays in various languages, trying to match what libc++ has gathered internally from `strftime()`. On glibc, the ru_RU.UTF-8 representation of the tested weekday is spelled with upper case, while the existing test reference is lower case. Differential Revision: https://reviews.llvm.org/D118237
-
Martin Storsjö authored
Also opt in to testing the hexadecimal float formatting for glibc; glibc does matches the current test references there. Differential Revision: https://reviews.llvm.org/D118238
-
Jonas Devlieghere authored
Instead trying to pro-actively determine if the first line in a crashlog contains meta data, change the heuristic to do the following: 1. To trying to parse the whole file. If that fails, then: 2. Strip the first line and try parsing the remainder of the file. If that fails, then: 3. Fall back to the textual crashlog parser. rdar://88580543 Differential revision: https://reviews.llvm.org/D119755 -
Jonas Devlieghere authored
Support for Python 2 was removed in Xcode 13. Differential revision: https://reviews.llvm.org/D119756
-
Arthur O'Dwyer authored
This should have been part of 3b470d1c.
-
Martin Storsjö authored
This fixes warnings about implicitly declared `_umul128` and `__shiftright128` when building for x86_64 with clang-cl. Use `_MSC_VER` instead of `_LIBCPP_COMPILER_MSVC` for enabling MSVC specific code; `_MSC_VER` is defined both in clang-cl and MSVC, while `_LIBCPP_COMPILER_MSVC` only is defined if building with the actual MSVC compiler. Include `ryu.h` at the head of `d2s_intrinsics.h`, as it uses the `_LIBCPP_64_BIT` define, which is defined in `ryu.h`. Now the Ryu files build without warnings with clang-cl for i386, x86_64, arm and aarch64. Differential Revision: https://reviews.llvm.org/D119647
-
Jonathan Peyton authored
Introduce KMP_COMPILER_ICX macro to represent compilation with oneAPI compiler. Fixup flag detection and compiler ID detection in CMake. Older CMake's detect IntelLLVM as Clang. Fix compiler warnings. Fixup many of the tests to have non-empty parallel regions as they are elided by oneAPI compiler.
-
Joe Nash authored
Due to a typo of 256 to 226, the SIInsertWaitcnt pass thinks several registers are aliased from a waitcnt PoV including vgpr226 and agpr0, vgpr227 and agpr1... This is a test of the behavior. NFC. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D119750
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-