- Sep 12, 2022
-
-
Vitaly Buka authored
Will try another fix. This reverts commit c3c930d5.
-
Aaron Puchert authored
64-bit atomics are used in llvm/ADT/Statistic.h, which means that users of libLLVM.so might also have to link with libatomic. To avoid having to special-case the library here, we simply add all `LLVM_SYSTEM_LIBS` as public link dependencies to libLLVM. This fixes a build failure on PowerPC 32-bit. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D132799
-
Aaron Puchert authored
Under some circumstances there is no struct _Unwind_Exception, it's just an alias to another struct. This would result in an error like this: libcxxabi/test/forced_unwind3.pass.cpp:50:77: error: typedef '_Unwind_Exception' cannot be referenced with a struct specifier static _Unwind_Reason_Code stop(int, _Unwind_Action actions, type, struct _Unwind_Exception*, struct _Unwind_Context*, ^ <...>/lib/clang/15.0.0/include/unwind.h:68:38: note: declared here typedef struct _Unwind_Control_Block _Unwind_Exception; /* Alias */ ^ This seems to have been an issue since the test was first added in D109856, except that it didn't surface with Clang 14 because the code is filtered out by the preprocessor if `__clang_major__ < 15`. Reviewed By: danielkiss, mstorsjo, #libc_abi, ldionne Differential Revision: https://reviews.llvm.org/D132873 -
Aaron Puchert authored
Should have no effect on the online documentation, but it makes offline builds more self-contained. With relative links however we have to abstain from using `:manpage:` outside of man page cross-references. Reviewed By: mysterymath Differential Revision: https://reviews.llvm.org/D132794
-
Vitaly Buka authored
-
Vitaly Buka authored
It does not help. This reverts commit 355dbd3b.
-
- Sep 11, 2022
-
-
Mark de Wever authored
It seems these includes are still provided by the sub headers, so it only removes the duplicates. There is no change in the list of includes, but the change affects the modular build. By not having the includes in the top-level header the module map has changed. This uncovers missing includes in the tests and missing exports in the module map. This causes the huge amount of changes in the patch. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D133252
-
Junduo Dong authored
The previous implementation of time tracing in NewPassManager is direct but messive. The key codes are like the demo below: ``` /// Runs the function pass across every function in the module. PreservedAnalyses run(LazyCallGraph::SCC &C, CGSCCAnalysisManager &AM, LazyCallGraph &CG, CGSCCUpdateResult &UR) { /// ... PreservedAnalyses PassPA; { TimeTraceScope TimeScope(Pass.name()); PassPA = Pass.run(F, FAM); } /// ... } ``` It can be bothered to judge where should we add the tracing codes by hands. With the PassInstrumentation framework, we can easily add `Before/After` callback functions to add time tracing codes. Differential Revision: https://reviews.llvm.org/D131960 -
Florian Hahn authored
Suggested by @Ayal post-commit, to reduce the dependence on the underlying instruction in favor of information available directly for the recipe.
-
Marc Auberer authored
Fixes #57531 This transformation may be particularly useful on x86-64, because x & (x - 1) can be performed by a single blsr instruction. Differential Revision: https://reviews.llvm.org/D133362
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Mark de Wever authored
-
Rainer Orth authored
As described in Issue #54196 <https://github.com/llvm/llvm-project/issues/54196>, the ideas of `clang` and `compiler-rt` where runtime libs are located with `-DLLVM_ENABLE_RUNTIMES` can differ. This is the `compiler-rt` side of the patch I've used to get them in sync for the `amd64-pc-solaris2.11` and `sparc64-unknown-linux-gnu` release builds. Tested on `amd64-pc-solaris2.11` and `sparc64-unknown-linux-gnu`. Differential Revision: https://reviews.llvm.org/D133406
-
Alexey Bader authored
In situations when a submodule is extracted from big module (i.e. using CloneModule) a lot of debug info is copied via metadata nodes. Despite of the fact that part of that info is not linked to any instruction in extracted IR file, StripDeadDebugInfo pass doesn't drop them. Strengthen criteria for debug info that should be kept in a module: - Only those compile units are left that referenced by a subprogram debug info node that is attached to a function definition in the module or to an instruction in the module that belongs to an inlined function. Signed-off-by:
Mikhail Lychkov <mikhail.lychkov@intel.com> Differential Revision: https://reviews.llvm.org/D122163
-
Vitaly Buka authored
-
Tom Honermann authored
This change implements the C library dependent portions of P0482R6 (char8_t: A type for UTF-8 characters and strings (Revision 6)) by declaring std::c8rtomb() and std::mbrtoc8() in the <cuchar> header when implementations are provided by the C library as specified by WG14 N2653 (char8_t: A type for UTF-8 characters and strings (Revision 1)) as adopted for C23. A _LIBCPP_HAS_NO_C8RTOMB_MBRTOC8 macro is defined by the libc++ __config header unless it is known that the C library provides these functions in the current compilation mode. This macro is used for testing purposes and may be of use to libc++ users. At present, the only C library known to implement these functions is GNU libc as of its 2.36 release. Reviewed By: ldionne Differential Revision: https://reviews.llvm.org/D130946
-
Groverkss authored
This patch refactors MAF to be defined over the universe in a given space instead of being defined over a restricted domain. The reasoning for this refactor is to store division representation for local variables explicitly for the function outputs. This change is required for unionLexMax/Min to support local variables which will be upstreamed after this patch. Another reason for this refactor is to have a flattened form of AffineMap as MultiAffineFunction. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D131864
-
Vitaly Buka authored
-
Aiden Grossman authored
In the Tensorflow C lib utilities, an error gets thrown if some features haven't gotten passed into the model (due to differences in ordering which now don't exist with the transition to TFLite). However, this is not currently the case when using TFLiteUtils. This patch makes some minor changes to throw an error when not all inputs of the model have been passed, which when not handled will result in a seg fault within TFLite. Reviewed By: mtrofin Differential Revision: https://reviews.llvm.org/D133451
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Vitaly Buka authored
Clang and GCC do this differently making IR inconsistent. https://lab.llvm.org/buildbot#builders/6/builds/13120
-
Vitaly Buka authored
Fails https://lab.llvm.org/buildbot#builders/6/builds/13120 This reverts commit affc90ed.
-
Vitaly Buka authored
-
Florian Hahn authored
-
Vitaly Buka authored
-
Vitaly Buka authored
This is work around for new false positives. Real implementation will follow.
-
Simon Pilgrim authored
We only need to handle the uniform cases early
-
Corentin Jabot authored
-
Simon Pilgrim authored
With the bdver2 model updates, many of the AVX1 costs were far too high - it also helped expose some costs mismatches for Atom/Silvermont
-
Simon Pilgrim authored
Noticed while trying to get vector ctpop/ctlz/cttz costs fixed using the script from D103695 - all of these are full-rate but the throughput costs were weirdly high for bdver2 Matches AMD 15h SoG, Agner and instlatx64
-
- Sep 10, 2022
-
-
Simon Pilgrim authored
Noticed while trying to get vector shifts costs fixed using the script from D103695 - all of these are full-rate but the throughput costs were weirdly high for bdver2 Matches AMD 15h SoG, Agner and instlatx64
-
Manuel Brito authored
Replacing the following instances of UndefValue with PoisonValue, where the UndefValue is used as an arbitrary value: - llvm/lib/CodeGen/WinEHPrepare.cpp `demotePHIsOnFunclets`: RAUW arbitrary value for lingering uses of removed PHI nodes - llvm/lib/Transforms/Utils/BasicBlockUtils.cpp `FoldSingleEntryPHINodes`: Removes a self-referential single entry phi node. - llvm/lib/Transforms/Utils/CallGraphUpdater.cpp `finalize`: Remove all references to removed functions. - llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp `cleanup`: the result is not used then the inserted instructions are removed. - llvm/tools/bugpoint/CrashDebugger.cpp `TestInts`: the program is cloned and instructions are removed to narrow down source of crash. Differential Revision: https://reviews.llvm.org/D133640
-
Yi Kong authored
Print out the archive member that failed, to make debugging easier. Before: error: failed to build archive: Not an int attribute (Producer: 'LLVM15.0.1git' Reader: 'LLVM 14.0.5-rust-dev') After: error: failed to build archive: 'fake_bt_keystore.o': Not an int attribute (Producer: 'LLVM15.0.1git' Reader: 'LLVM 14.0.5-rust-dev') Differential Revision: https://reviews.llvm.org/D133607
-
Nikolas Klauser authored
We've decided to use `_LIBCPP_STD_VER >= xy` while discussing to change the constexpr macros, so let's finally bump the version macro to match that. Reviewed By: ldionne, Mordante, huixie90, #libc, avogelsgesang Spies: avogelsgesang, libcxx-commits Differential Revision: https://reviews.llvm.org/D133323
-
Rainer Orth authored
I've been using this hack to work around the Linux/sparc64 compile failure described in Issue #47994 <https://github.com/llvm/llvm-project/issues/47994>, especially since the underlying glibc PR build/27558 <https://sourceware.org/bugzilla/show_bug.cgi?id=27558> doesn't seem to be making progress and some fix is required to have LLVM build on `sparc64-unknown-linux-gnu` at all, as evidenced on the buildbot. Tested on `sparc64-unknown-linux-gnu`. Differential Revision: https://reviews.llvm.org/D133405
-
sunho authored
-
sunho authored
Removes public bootstrap method that is not really necessary and not consistent with other platform API. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D132780
-