- Feb 15, 2022
-
-
Brad Smith authored
Similar to D116843 for Gnu.cpp Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D119655
-
Brad Smith authored
Similar to D116843 for Gnu.cpp Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D119656
-
Yonghong Song authored
Kumar Kartikeya Dwivedi reported a bug ([1]) where BTF_KIND_TYPE_TAG types are not generated. Currently, BPF backend only generates BTF types which are used by the program, e.g., global variables, functions and some builtin functions. For example, suppose we have struct task_struct { ... struct task_group *sched_task_group; struct mm_struct *mm; ... pid_t pid; pid_t tgid; ... } If BPF program intends to access task_struct->pid and task_struct->tgid, there really no need to generate BTF types for struct task_group and mm_struct. In BPF backend, during BTF generation, when generating BTF for struct task_struct, if types for task_group and mm_struct have not been generated yet, a Fixup structure will be created, which will be reexamined later to instantiate into either a full type or a forward type. In current implementation, if we have something like struct foo { struct bar __tag1 *f; }; and when generating types for struct foo, struct bar type has not been generated, the __tag1 will be lost during later Fixup instantiation. This patch fixed this issue by properly handling btf_type_tag's during Fixup instantiation stage. [1] https://lore.kernel.org/bpf/20220210232411.pmhzj7v5uptqby7r@apollo.legion/ Differential Revision: https://reviews.llvm.org/D119799 -
Snehasish Kumar authored
This reverts commit e6999040. Update test to fix signed int comparison warning, fix whitespace in compiler-rt MIBEntryDef.inc file. Differential Revision: https://reviews.llvm.org/D117256
-
Hongtao Yu authored
Do not merge a context that is already duplicated into the base profile. Also fixing a typo caused by previous refactoring. Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D119735
-
Jun Zhang authored
This patch adds a missing test, covering the different kinds of floating-point literals, like hexadecimal floats, and testing extreme cases & normal cases. Differential Revision: https://reviews.llvm.org/D119528
-
Jim Ingham authored
One of the tests in this test setup was copied from a more complex test, and I didn't know if the setup or the subsequent parts of the test were the ones that fail on Linux. Looks like it was the latter, so let's mark this succeeding.
-
Mike Rice authored
Differential Revision: https://reviews.llvm.org/D119761
-
Jonas Devlieghere authored
Currently you can run the DWARF verifier on the linked dsymutil output. This patch extends this functionality and makes it possible to run the DWARF verifier on the input as well. A new option --verify-dwarf allows you to specify input, output, all and none. The existing --verify flag remains unchanged and acts and alias for --verify-dwarf=output. Input verification issues do not result in a non-zero exit code because dsymutil is capable of taking invalid DWARF as input and producing valid DWARF as output. Differential revision: https://reviews.llvm.org/D89216
-
Snehasish Kumar authored
This reverts commit 857ec0d0. Fixes -DLLVM_ENABLE_MODULES=On build by adding the new textual header to the modulemap file. Reviewed in https://reviews.llvm.org/D117722
-
Volodymyr Sapsai authored
For redeclaration chains we maintain an invariant of having only a single definition in the chain. In a single translation unit we make sure not to create duplicates. But modules are separate translation units and they can contain definitions for the same symbol independently. When we load such modules together, we need to demote duplicate definitions to keep the AST invariants. Some AST clients are interested in distinguishing declaration-that-was-demoted-from-definition and declaration-that-was-never-a-definition. For that purpose introducing `IsThisDeclarationADemotedDefinition`. No functional change intended. rdar://84677782 Differential Revision: https://reviews.llvm.org/D118855
-
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>
-