- Jun 04, 2023
-
-
Aiden Grossman authored
This patch sets the LLVM_ENABLE_HTTPLIB flag to ON in the stage 2 build similar to how many of the other dependency flags are already specified. This is necessary to configure the stage 2 build by itself, otherwise the CMake configuration crashes. This is currently causing the MLGO demo to fail since we're only using stage 2 to avoid having to build stage 1 to save some compile time. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D152057
-
Aiden Grossman authored
This patch adds LLVM_ENABLE_HTTPLIB to the list of CMake options to make it more clear exactly what it does and also provide clarity on which specific project it is referring to/installation. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D152060
-
Martin Storsjö authored
clangIncludeCleaner isn't part of libclang-cpp, so link it with target_link_libraries instead of clang_target_link_libraries. This fixes a regression from c28506ba. Fix suggested by Michal Gorny.
-
Martin Storsjö authored
On Windows, the underlying file descriptors for stdout/stdin/stderr can be reconfigured to wide mode. In the default (narrow) mode, the charset usually isn't utf8 (as libcxx assumes), but normally a locale specific codepage (where each codepage only can represent a small subset of unicode characters). By configuring the stdout file descriptor to wide mode, the user can output wchar_t based strings without convesion to the narrow charset. Within libcxx, don't try to use codecvt to convert this to a narrow character encoding, but output these strings as such with fputwc. In wide mode, such strings could be output directly with fwrite too, but if the file descriptor hasn't been configured in wide mode, that breaks the output (which currently works reasonably). By always outputting one character at a time with fputwc, it works regardless of mode of the stdout file descriptor. For the narrow output stream, std::cout, outputting (via fwrite) does fail when the file descriptor is set to wide mode. This matches how it behaves with both MS STL and GNU libstdc++ too, so this is probably acceptable. This fixes https://github.com/llvm/llvm-project/issues/46646, and the downstream bugs https://github.com/mstorsjo/llvm-mingw/issues/145 and https://github.com/mstorsjo/llvm-mingw/issues/222. Differential Revision: https://reviews.llvm.org/D146398
-
Owen Pan authored
If the first token of an annotated line is finalized, reuse its NewlinesBefore value to avoid potential overlapping whitespace replacements before preprocessor branching directives. Fixes #62892. Differential Revision: https://reviews.llvm.org/D151954
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Simon Pilgrim authored
Replace the legacy G_MUL legalizer, this handles all scalar promotion and vector clamping, however we still need to add custom legalization for many vector multiplies.
-
eopXD authored
[Clang][RISCV] Avoid generating MaskedPrototype if the intrinsic does not have a masked version. NFC The function should not be called if an intrinsic does not have a masked version. Signed-off by: eop Chen <eop.chen@sifive.com>
-
Kazu Hirata authored
-
Kazu Hirata authored
The last use was removed by: commit 603cd869 Author: Douglas Gregor <dgregor@apple.com> Date: Fri Mar 22 18:50:14 2013 +0000
-
Kazu Hirata authored
-
- Jun 03, 2023
-
-
Corentin Jabot authored
P0960R3 and P1975R0 were marked not implemented because of #61145, This issue has been fixed and backported to LLVM 16, the status page should reflect that. Reviewed By: #clang-language-wg, ayzhao, erichkeane Differential Revision: https://reviews.llvm.org/D150122
-
zhongyunde authored
We usually only check direct use instruction of IV, while the bitcast of 'ptrtoint ptr to i64' doesn't affect the result, so go a step further. Fix https://github.com/llvm/llvm-project/issues/59633. Reviewed By: markoshorro Differential Revision: https://reviews.llvm.org/D151877
-
Hussain Kadhem authored
[flang] Fix for 541f5c4a (D140524) breaking out-of-tree flang build.
-
paperchalice authored
re-commit of 39aa0f5c with missing file: cmake/Modules/GetClangResourceDir.cmake.
-
Sheng authored
This patch introduces TLS (Thread-Local Storage) support to the LLVM m68k backend. Reviewed By: glaubitz Differential Revision: https://reviews.llvm.org/D144941
-
Sheng authored
Reviewed By: myhsu Differential Revision: https://reviews.llvm.org/D143316
-
Sheng authored
Reviewed By: myhsu Differential Revision: https://reviews.llvm.org/D143315
-
Sheng authored
This patch coaches UpdateTestChecks to filter out these symbol aliases in llc test for m68k - .L<function name>$local: - .type .L<function name>$local,@function Reviewed By: myhsu Differential Revision: https://reviews.llvm.org/D151526
-
Simon Pilgrim authored
Add i8 test coverage
-
Martin Storsjö authored
This reverts commit 39aa0f5c. This is missing the new GetClangResourceDir.cmake that is being included, so all clang builds are broken.
-
Mike Hommey authored
-
luxufan authored
`select i1 non-const, i1 true, i1 false` has been optimized to `non-const`. There is no reason that we can not optimize `select i1 ConstExpr, i1 true, i1 false` to `ConstExpr`. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D151631
-
paperchalice authored
-
Nitin John Raj authored
This patch adds logic for determining RegisterBank size to RegisterBankInfo, which allows accounting for the HwMode of the target. Individual RegisterBanks cannot be constructed with HwMode information as construction is generated by TableGen, but a RegisterBankInfo subclass can provide the HwMode as a constructor argument. The HwMode is used to select the appropriate RegisterBank size from an array relating sizes to RegisterBanks. Targets simply need to provide the HwMode argument to the <target>GenRegisterBankInfo constructor. The RISC-V RegisterBankInfo constructor has been updated accordingly (plus an unused argument removed). Reviewed By: simoncook, craig.topper Differential Revision: https://reviews.llvm.org/D76007
-
Austin Kerbow authored
Conditions for hoisting vmcnt with flat instructions should be similar to VMEM. If there are use/def pairs in a loop body we cannot guarantee that hosting the waitcnt will be profitable. Better heuristics are needed to analyse whether gains from avoiding waitcnt in loop bodys outweighs waiting for loads in the preheader. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D151126
-
Kazu Hirata authored
Note that DenseMapBase::lookup and Reg2MIMap::get do exactly the same thing.
-
Yeting Kuo authored
Those combines may change the exception behavior and rounding behavior. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D151992
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D152048
-
Tue Ly authored
Targets' FMA.h headers are missing LIBC_INLINE and attributes.h header. Reviewed By: brooksmoses Differential Revision: https://reviews.llvm.org/D152024
-
Aart Bik authored
Note that by sparse compiler convention, dense output is zerod out when not set, so complement results in zeros where elements were present. Reviewed By: wrengr Differential Revision: https://reviews.llvm.org/D152046
-
Caslyn Tonelli authored
This patches an error flaged by Fuchsia builds e.g. https://ci.chromium.org/ui/p/turquoise/builders/global.try/core.x64-asan/b8779376650819379137/overview) ``` build failed: [87176/332302](525) CXX user.libc_x64-asan-ubsan/obj/zircon/system/ulib/c/scudo/gwp-asan-info.gwp_asan_info.cc.o FAILED: user.libc_x64-asan-ubsan/obj/zircon/system/ulib/c/scudo/gwp-asan-info.gwp_asan_info.cc.o ../../prebuilt/third_party/python3/linux-x64/bin/python3.8 -S ../../build/rbe/cxx_remote_wrapper.py --exec_strategy=remote_local_fallback -- ../../prebuilt/third_party/clang/linux-x64/bin/clang++ -MD -MF user.libc_x64-asan-ubsan/obj/zircon/system/ulib/c/scudo/gwp-asan-info.gwp_asan_info.cc.o.d -o user.libc_x64-asan-ubsan/obj/zircon/system/ulib/c/scudo/gwp-asan-info.gwp_asan_info.cc.o -D_LIBCPP... In file included from ../../zircon/system/ulib/c/scudo/gwp_asan_info.cc:7: In file included from ../../third_party/scudo/src/allocator_config.h:12: In file included from ../../third_party/scudo/src/combined.h:22: ../../third_party/scudo/src/secondary.h:67:13: error: 'static' function 'unmap' declared in header file should be declared 'static inline' [-Werror,-Wunneeded-internal-declaration] static void unmap(LargeBlock::Header *H) { ^ 1 error generated. ``` Differential Revision: https://reviews.llvm.org/D152038
-
Nico Weber authored
-
Kazu Hirata authored
When we inline a callee into a caller, the compiler needs to make sure that the caller supports a superset of instruction sets that the callee is allowed to use. Normally, we check for the compatibility of target features via functionsHaveCompatibleAttributes, but that happens after we decide to honor call site attribute Attribute::AlwaysInline. If the caller contains a call marked with Attribute::AlwaysInline, which can happen with __attribute__((flatten)) placed on the caller, the caller could end up with code that cannot be lowered to assembly code. This patch fixes the problem by checking the target feature compatibility before we honor Attribute::AlwaysInline. Fixes https://github.com/llvm/llvm-project/issues/62664 Differential Revision: https://reviews.llvm.org/D150396
-
Matt Arsenault authored
Update tests after 1536e299
-