- Nov 24, 2022
-
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Vasileios Porpodas authored
Differential Revision: https://reviews.llvm.org/D138617
-
Dmitry Vyukov authored
It's a new syscall similar to epoll_pwait. Add a similar interceptor for it and add synchronization annotations in epoll_wait* syscall wrappers. Testing this is problematic b/c it's not present in glibc and the syscall itself may not be supported by the kernel. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D138574
-
Fangrui Song authored
Windows computeHostNumPhysicalCores is defined by Threading.cpp. Leave it unchanged.
-
Fangrui Song authored
This reverts commit 9969ceb3. On Windows: lld-link: error: undefined symbol: int __cdecl computeHostNumPhysicalCores(void) >>> referenced by LLVMSupport.lib(Support.Host.obj):(int __cdecl llvm::sys::getHostNumPhysicalCores(void))
-
Aiden Grossman authored
Recentlyin 4b6b2487, llvm::Optional's hasValue method was removed as described in https://discourse.llvm.org/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor This breaks InlineAdvisor and ModelUnderTrainingRunner. This patch fixes them by changing the method to has_value, which hasValue was evaluating to before. Differential Revision: https://reviews.llvm.org/D138635
-
wangpc authored
So we have the opportunity to fold splat into .vx instruction as what D101138 has done. If failed, we can select zero-stride vector load again. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D138101
-
wangpc authored
Add a test that splat can't be folded. Reviewed By: pcwang-thead Differential Revision: https://reviews.llvm.org/D138543
-
Hanhan Wang authored
This reverts commit 6eee66d1. It breaks builds, see https://lab.llvm.org/buildbot/#/builders/61/builds/35742 Differential Revision: https://reviews.llvm.org/D138633
-
gonglingqin authored
[LoongArch] Diagnose the behavior of reading and writing registers that do not conform to the hardware register size When reading or writing a register that does not conform to the size of a hardware register, an error message is generated instead of a compiler crash. Differential Revision: https://reviews.llvm.org/D138008
-
Luo, Yuanke authored
Differential Revision: https://reviews.llvm.org/D138547
-
Michał Górny authored
Use the CMake rules of unittest libraries via `add_subdirectory()` when using standalone builds, similarly to how e.g. Clang does that. Besides making things more consistent, I hope this also unblocks D137035 and effectively we'll be able to simplify things further and have LLVM semi-automatically include gtest support for us in the future. Differential Revision: https://reviews.llvm.org/D138573
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Vasileios Porpodas authored
Differential Revision: https://reviews.llvm.org/D138616
-
Fangrui Song authored
-
chenglin.bi authored
-
Kazu Hirata authored
This patch deprecates Optional::getPointer. Note that I've converted all known occurrences of X.getPointer() to &*X on Nov 21, 2022 in commit 1f914944. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Differential Revision: https://reviews.llvm.org/D138621
-
Kazu Hirata authored
I've migrated all known uses of NoneType to std::nullopt_t. This patch deprecates NoneType. I'm using "typedef" instead of "using" because somehow "[[deprecated]]" and "using" do not seem to get along. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Differential Revision: https://reviews.llvm.org/D138623
-
bixia1 authored
The attribute tells the operator to handle symmetric structures for 2D tensors. By default, the operator assumes the input tensor is not symmetric. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D138230
-
Ben Dunbobbin authored
Initialisation Guard Variables should take their DLL storage class from the guarded variable. Otherwise, there will be a link error if the compiler inlines a reference to the guard variable into another module but that guard variable is not exported from the defining module. This is required for platforms such as PlayStation and windows-itanium, that are aiming for source compatibility with MSVC w.r.t. dllimport/export annotations, given Clang's existing design which allows for inlining of a dllimport function as long as all the variables/functions referenced are also marked dllimport. A similar change exists for the MSVC ABI: https://reviews.llvm.org/D4136. I have added a run test for windows-itanium for this issue to the build recipe: https://reviews.llvm.org/D88124. Differential Revision: https://reviews.llvm.org/D138463
-
Jakub Kuderski authored
These perform exact multiplication and return the high half as a second result. Also factor out common code shared between 'extended binary ops'. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D138624
-
Jakub Kuderski authored
Use helper functions. Reuse array element attributes. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D138609
-
Kazu Hirata authored
This patch fixes: lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp:105:18: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits]
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: Eugene.Zelenko, aheejin, libcxx-commits, xazax.hun Differential Revision: https://reviews.llvm.org/D137804
-
Kazu Hirata authored
This patch removes methods that I deprecated on August, 2022 in commits b5f8d42e and eeac9e92. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This patch replaces those occurrences of NoneType that would trigger an error if the definition of NoneType were missing in None.h. To keep this patch focused, I am deliberately not replacing None with std::nullopt in this patch or updating comments. They will be addressed in subsequent patches. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Differential Revision: https://reviews.llvm.org/D138539
-
Florian Hahn authored
-
WuXinlong authored
This patch add the instructions of Zcd extension. Zcd is a subset of C Ext which include the double-precision floating-point instructions (c.fld, c.fldsp, c.fsd, c.fsdsp). Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D134177
-
Krzysztof Parzyszek authored
-
Krzysztof Parzyszek authored
The unsigned operand is second: Vdd32.w = vmpy(Vu32.h,Vv32.uh)
-
Fangrui Song authored
D137885 picked an incorrect magic so it would fail when zstd is not enabled.
-
Benjamin Kramer authored
-
Benjamin Kramer authored
-
Maryam Moghadas authored
vperm instruction requires the data to be in the Altivec registers, if one of the vector operands is not used after this vperm instruction then it can be substituted by xxperm which doubles the number of available registers. Reviewed By: stefanp Differential Revision: https://reviews.llvm.org/D133700
-
Fangrui Song authored
Extend SM_SLOC_BUFFER_BLOB_COMPRESSED to allow zstd, which is much faster (compression/decompression) than zlib with a similar compression ratio. An alternative is to add a value beside SM_SLOC_BUFFER_BLOB_COMPRESSED, but reusing SM_SLOC_BUFFER_BLOB_COMPRESSED slightly simplifies the implementation and leads to better diagnostics when a slightly older Clang consumes zstd compressed blob. Compressing AST takes a small portion of WriteAST, so we can pick a higher compression level. Compiling a relatively large .pcm (absl endian) with -fmodules-embed-all-files, zstd level 9 has comparable performance with zlib-chromium level 6 (default), but provides smaller output (5809156 => 5796016). Higher zstd levels will make "Compress AST" notably slower and do not provide significant more size saving. ``` 2.219345 Total ExecuteCompiler 0.746799 Total Frontend 0.736862 Total Source 0.339434 Total ReadAST 0.165452 Total WriteAST 0.043045 Total Compress AST 0.008236 Total ParseClass 0.00633 Total InstantiateClass 0.001887 Total isPotentialConstantExpr 0.001808 Total InstantiateFunction 0.001535 Total EvaluateForOverflow 0.000986 Total EvaluateAsRValue 0.000536 Total EvaluateAsBooleanCondition 0.000308 Total EvaluateAsConstantExpr 0.000156 Total EvaluateAsInt 3.4e-05 Total EvaluateKnownConstInt 8e-06 Total EvaluateAsInitializer 0 Total PerformPendingInstantiations ``` Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D137885
-