- Oct 28, 2022
-
-
Timm Bäder authored
Remove the only use with the version we already use in VisitDeclRefExpr().
-
Nicolai Hähnle authored
TableGen executables are supposed to never be linked against libLLVM-*.so, even when LLVM_LINK_LLVM_DYLIB=ON, presumably for cross-compilation. It turns out that clang-tblgen *did* link against libLLVM-*.so, indirectly so via the clangSupport. This lead to a regression in what should have been unrelated work of cleaning up ManagedStatics in LLVMSupport. A running clang-tblgen process ended up with two copies of a cl::opt static global: - one from libLLVMSupport linked statically into clang-tblgen as a direct dependency - one from libLLVMSupport linked into libLLVM-*.so, which clang-tblgen linked against due to the clangSupport dependency For a bit more context, see the discussion at https://discourse.llvm.org/t/flang-aarch64-dylib-buildbot-need-help-understanding-a-regression-in-clang-tblgen/64871/ None of the potential solutions I could find are perfect. Presumably one possible solution would be to remove "Support" from the explicit dependencies of clang-tblgen. However, relying on the transitive inclusion via clangSupport seems risky, and in any case this wouldn't address the issue of clang-tblgen surprisingly linking against libLLVM-*.so. This change instead creates a second version of the clangSupport library that is explicitly linked statically, to be used by clang-tblgen. v2: - define an alias so that clang-tblgen can always link against "clangSupport_tablegen" - use add_llvm_library(... BUILDTREE_ONLY ...) v3: - use the object library version of clangSupport if available Differential Revision: https://reviews.llvm.org/D134637
-
Alexander Belyaev authored
https://discourse.llvm.org/t/rfc-interface-for-destination-style-ops/64056 Differential Revision: https://reviews.llvm.org/D136943
-
John Brawn authored
This reverts commit 628467e5. This is causing a miscompile in ffmpeg when compiled for armv7.
-
Sanjay Patel authored
This bug was introduced with D136713 / 54eeadcf . As an enhancement, we could cast operands to the expected type, but we need to make sure that is done correctly (zext vs. sext). It's also possible (but seems unlikely) that an operand can have a type larger than the result type. Fixes #58661
-
Qiongsi Wu authored
This patch passes on the `vec-extabi` mabi option on AIX. Reviewed By: w2yehia Differential Revision: https://reviews.llvm.org/D136874
-
Kadir Cetinkaya authored
This was stated as 9.3, but as pointed out in https://discourse.llvm.org/t/rfc-bump-minimal-requirements-apple-clang-9-3-10-0-0-before-4th-tue-in-january/66156/7?u=kadircet 9.3 doesn't exist, hence this was effectively 10.0. This patch merely reflects the reality more closely. Differential Revision: https://reviews.llvm.org/D136609
-
Martin Storsjö authored
This fixes the following warning: ../tools/clang/lib/AST/Interp/Disasm.cpp: In member function ‘void clang::interp::Function::dump(llvm::raw_ostream&) const’: ../tools/clang/lib/AST/Interp/Disasm.cpp:43:25: warning: cast from type ‘const clang::interp::Function*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] 43 | OS << " " << (void*)this << ":\n"; | ^~~~ -
Haojian Wu authored
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D135366
-
Haojian Wu authored
-
Kristof Beyls authored
They stopped a while ago. Differential Revision: https://reviews.llvm.org/D136876
-
Nenad Mikša authored
When printing NTTP template types, ensure that type name of the NTTP is printed. Fixes #57562 Differential Revision: https://reviews.llvm.org/D134453
-
Aaron Ballman authored
-
Nikita Popov authored
With some manual fixup for different alloca types and variable name clashes.
-
Victor Campos authored
The pointer argument Err from BigArchiveMemberHeader's constructor can be null. This pointer was dereferenced without any null checks. This patch adds a check to avoid a null dereference. Reviewed By: brenoguim Differential Revision: https://reviews.llvm.org/D135449
-
Guray Ozen authored
PTX programming models provides some performance tuning directives; see https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#performance-tuning-directives The downstream compiler namely `ptxas` leverages these information for better register allocation or to handle other resource management that improves the performance. This revision introduce all the kernel based directives to MLIR's NVVM dialect. The list is below ``` maxnreg -> max register per thread in CTA maxntid -> max threads per CTA reqntid -> exact number of threads per CTA minnctapersm -> min CTA per SM ``` Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D136931
-
Timm Bäder authored
This reverts commit 6fa1795d. This breaks a windows builder: ../../clang/lib/AST/Interp/ByteCodeExprGen.h(236,11): error: call to constructor of 'clang::interp::APInt' (aka 'llvm::APInt') is ambiguous APInt WrappedValue(getIntWidth(Ty), Value, std::is_signed<T>::value); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../clang/lib/AST/Interp/ByteCodeExprGen.cpp(409,16): note: in instantiation of function template specialization 'clang::interp::ByteCodeExprGen<clang::interp::ByteCodeEmitter>::emitConst<unsigned int>' requested here return this->emitConst(E, E->getValue()); ^ ../../clang/lib/AST/Interp/ByteCodeExprGen.cpp(1149,16): note: in instantiation of member function 'clang::interp::ByteCodeExprGen<clang::interp::ByteCodeEmitter>::VisitCharacterLiteral' requested here template class ByteCodeExprGen<ByteCodeEmitter>; ^ ../../llvm/include\llvm/ADT/APInt.h(108,3): note: candidate constructor APInt(unsigned numBits, uint64_t val, bool isSigned = false) ^ ../../llvm/include\llvm/ADT/APInt.h(134,3): note: candidate constructor APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]); ^
-
Simon Pilgrim authored
Alive2: https://alive2.llvm.org/ce/z/7wvfns Part of Issue #58624
-
Nikita Popov authored
Conversion was performed (without manual fixup) using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34
-
Timm Bäder authored
This was a change suggested by Aaron that I forgot to commit.
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D135366
-
Timm Bäder authored
Number of functions and global variables is useful to know.
-
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
Useful for debugging.
-
Simon Pilgrim authored
[DAG] visitFSUBForFMACombine - pass callbacks by reference in isContractableAndReassociableFMUL lambda capture. NFC. Fixes a coverity remark about large copies by value
-
Martin Storsjö authored
These need to have special treatment wrt to .eh_frame sections and GC - as long as we don't have a full parser of the .eh_frame section in the COFF linker. This fixes Rust unwind issues on i686 mingw as discussed in https://github.com/msys2/MINGW-packages/issues/9091. Differential Revision: https://reviews.llvm.org/D136879
-
Michael Buch authored
Ran `ninja docs-lldb-html` and made sure the docs are fixed. Differential Revision: https://reviews.llvm.org/D136766
-
Momchil Velikov authored
[recommitting after recommitting a dependency] This patch reorders the traversal of function call sites and function formal parameters to: * do various argument feasibility checks (`isArgumentInteresting` ) only once per argument, i.e. doing N-args checks instead of N-calls x N-args checks. * do hash table lookups only once per call site, i.e. N-calls lookups/inserts instead of N-call x N-args lookups/inserts. Reviewed By: ChuanqiXu, labrinea Differential Revision: https://reviews.llvm.org/D135968 Change-Id: I7d21081a2479cbdb62deac15f903d6da4f3b8529
-
Simon Pilgrim authored
ConstraintElimination - pass const DataLayout by reference in (recursive) MergeResults lambda capture. NFC. There's no need to copy this and fixes a coverity remark about large copy by value
-
Jay Foad authored
-
Simon Pilgrim authored
Oddly I wasn't seeing an unused variable warning - this came up in a coverity remark about large copy by values!
-
Stephen Thomas authored
A small number of cleanups and refactors intended to enhance readability in two passes that deal with s_waitcnt instructions. Differential Revision: https://reviews.llvm.org/D136677
-
Andrzej Warzynski authored
There are some discrepancies between the expected and the generated output on AArch64 for this test. I reported these on GitHub: * https://github.com/llvm/llvm-project/issues/58531 I'm XFAILing this test as a temporary measure while this is being investigated. Differential Revision: https://reviews.llvm.org/D136458
-
Haojian Wu authored
This patch reverts - commit d4b1964f - commit 59f0827e([clang] Instantiate alias templates with sugar) As it makes clang fail to pass some code it used to compile. See comments: https://reviews.llvm.org/D136564#3891065
-
wanglei authored
An emergency spill slot is created when the stack size cannot be represented by an 11-bit signed number. This patch also modifies how the `sp` is adjusted in the prologue. `RegScavenger` will place the spill instruction before the prologue if a VReg is created in the prologue. This will pollute the caller's stack data. Therefore, until there is better way, we just use the `addi.w/d` instruction for stack adjustment to ensure that VReg will not be created. (RISCV has the same issue #58286) Due to the addition of emergency spill slot, some test cases that use exact stacksize need to be updated. Differential Revision: https://reviews.llvm.org/D135757
-
Jay Foad authored
-
Oleg Shyshkov authored
This reverts commit 7eef3ea5.
-
Oleg Shyshkov authored
The region should yield the first argument (input) not the last argument (output). Also fix a few tests that were affected by this bug. Differential Revision: https://reviews.llvm.org/D136924
-