- Oct 18, 2022
-
-
Carlos Alberto Enciso authored
The tool used the 'old' LLVM build information (LLVMBuild.txt), which caused linking errors in: https://lab.llvm.org/buildbot/#/builders/177/builds/10125 https://lab.llvm.org/buildbot/#/builders/196/builds/19699 Update the CMake configuration to support the new LLVM build system that uses only CMakeLists.txt. Reviewed By: jryans Differential Revision: https://reviews.llvm.org/D136159
-
Ben Dunbobbin authored
A reference to __real_foo should trigger archive extraction of the input file that defines foo, otherwise a link using --wrap=foo might fail to link with an undefined reference to foo. This matches bfd linker behaviour. Differential Revision: https://reviews.llvm.org/D135897
-
Andrew Ng authored
Differential Revision: https://reviews.llvm.org/D136065
-
chenglin.bi authored
-
Nico Weber authored
-
Valentin Clement authored
Binding tables are needed to perform the fir.dispatch code generation. The binding tables are defined as fir.global from the initial lowering. This patch adds the ability to reconstruct the binding tables information and store the procedure name and binding index for later use by the fir.dispatch code generation. Tests will come with follow up patch that makes full use of this information. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D136141
-
Anton Sidorenko authored
-
Jean Perier authored
mapSymbolAttributes currently has a lot of very similar code for each kind of explicit shape and scalar symbols. Refactor it so that the change to lower symbols with fir.declare can be added in centralized places instead of being scattered. This is a preparation patch and fir.declare is not yet added. Differential Revision: https://reviews.llvm.org/D136061
-
Daniel Kiss authored
Make MTE intrinsics available in function scope too. Followup from D133359. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D136062
-
Martin Storsjö authored
812ad216 changed the signature of RegisterValue::SetFromMemoryData.
-
Daniel Kiss authored
This reverts commit 09aaf190.
-
Daniel Kiss authored
Make MTE intrinsics available in function scope too. Followup from D133359. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D136062
-
Tobias Gysi authored
The revision adds support to import: - matrix intrinsics - vector reduce fadd/fmul intrinsics - assume intrinsics from LLVM IR. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D136137
-
Nikita Popov authored
Accept a const pointer for StopBB. Unfortunately the worklist has to use non-const pointers due to LoopInfo interaction.
-
Carlos Alberto Enciso authored
Originally committed in fe7a3ced Reverted in 26dd64ba Buildbot failures: https://lab.llvm.org/buildbot#builders/139/builds/29663 - unittest trigger an invalid assertion. https://lab.llvm.org/buildbot#builders/196/builds/19665 - 'has virtual functions but non-virtual destructor' warning as error. Recommitted with fix: - Removed the assertion. - Added virtual destructor.
-
Dominik Adamski authored
Currently generation of align assumptions for OpenMP simd construct is done outside OMPIRBuilder for C code and it is not supported for Fortran. According to OpenMP 5.0 standard (2.9.3) only pointers and arrays can be aligned for C code. If given aligned variable is pointer, then Clang generates the following set of the LLVM IR isntructions to support simd align clause: ; memory allocation for pointer address: %A.addr = alloca ptr, align 8 ; some LLVM IR code ; Alignment instructions (alignment is equal to 32): %0 = load ptr, ptr %A.addr, align 8 call void @llvm.assume(i1 true) [ "align"(ptr %0, i64 32) ] If given aligned variable is array, then Clang generates the following set of the LLVM IR isntructions to support simd align clause: ; memory allocation for array: %B = alloca [10 x i32], align 16 ; some LLVM IR code ; Alignment instructions (alignment is equal to 32): %arraydecay = getelementptr inbounds [10 x i32], ptr...
-
Max Kazantsev authored
-
Clement Courbet authored
The matcher is called `hasReturnValue`.
-
Yuanfang Chen authored
-
Sheng authored
"that provides" repeats two times.
-
Emilia Dreamer authored
Inside the arguments part of a function pointer declaration, `determineStarAmpUsage` results in a binary operator rather than pointers, because said parens are assumed to be an expression. This patch correctly marks the argument parens of a function pointer type as not an expression. Note that this fix already existed for Objective-C blocks as part of f1f267b4. As Objective-C blocks and C/C++ function pointers share a lot of the same logic, that fix also makes sense here. Fixes https://github.com/llvm/llvm-project/issues/31659 Differential Revision: https://reviews.llvm.org/D135707
-
Chuanqi Xu authored
-
bixia1 authored
Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D136129
-
YunQiang Su authored
The current version pass -mips64r2 or -mips32r2 options, which make it failed to build on r6 platform. In this patch: we detect whether we are MIPSr6 by _MIPS_ARCH_MIPS32R6/_MIPS_ARCH_MIPS64R6 The out and install path is set to the default triple instead of hardcoded one, since the clang ask for it. Differential Revision: https://reviews.llvm.org/D135735 -
Jez Ng authored
Merge the checks done on the `c-string-literals` binary with those on the main `test` binary. Also switch some checks to `-DAG` instead of `-NEXT`. I'm about to extend this test, and this is easier to work with. Reviewed By: #lld-macho, oontvoo Differential Revision: https://reviews.llvm.org/D135999
-
Chuanqi Xu authored
In O0, all the functions (except the always-inline-functions) in the importee shouldn't be imported for compilation speeds. But with optimizations, all the potentially called function in the importee should be imported to not prevent any inter-procedural optimizations (primarily inline), which is pretty important for runtime performances. This patch adds the tests for the feature.
-
Jeff Bailey authored
Switch from green checkmarks to the following legend: X = x86_64 A = aarch64 a = arm32 Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D136020
-
Volodymyr Sapsai authored
Differential Revision: https://reviews.llvm.org/D130325
-
Volodymyr Sapsai authored
The method is used only for sub-Decls, so reflect that in the name.
-
LiaoChunyu authored
(select (setcc lhs, rhs, CC), constant, falsev) -> (select (setcc lhs, rhs, InverseCC), falsev, constant) This patch removes unnecessary copies Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D129757
-
Aart Bik authored
This is a proof of concept insertion implementation that sets up the basic framework and implements it with push backs for just sparse vectors. It adds insertion/compression through SSA values, so that we properly update the memref after after pushback operation. Note that properly using SSA values in sparsification is still TBD but I will wait until Peiming's loop emitter is in to avoid conflicts. Reviewed By: wrengr Differential Revision: https://reviews.llvm.org/D136008
-
Xiang Li authored
-
Adrian Prantl authored
When UserExpression::Evaluate() fails and doesn't return a ValueObject there is no vehicle for returning the error in the return value. This behavior can be observed by applying the following patch: diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index f1a311b7252c..58c03ccdb068 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -2370,6 +2370,7 @@ UserExpression *Target::GetUserExpressionForLanguage( Expression::ResultType desired_type, const EvaluateExpressionOptions &options, ValueObject *ctx_obj, Status &error) { + error.SetErrorStringWithFormat("Ha ha!"); return nullptr; auto type_system_or_err = GetScratchTypeSystemForLanguage(language); if (auto err = type_system_or_err.takeError()) { error.SetErrorStringWithFormat( and then running $ lldb -o "p 1" (lldb) p 1 (lldb) This patch fixes this by creating an empty result ValueObject that wraps the error. Differential Revision: https://reviews.llvm.org/D135998 -
Adrian Prantl authored
This reverts commit a31a5da3.
-
Nathan Ridge authored
-
Che-Yu Wu authored
This patch implements the vectorization of tensor.extract for the basic 1-d lookup case. It only vectorizes the tensor.extract to a vector.gather when the op extracts value from an 1-d tensor. Related discussion: https://github.com/iree-org/iree/issues/9198 Reviewed By: dcaballe Differential Revision: https://reviews.llvm.org/D133786
-
Koakuma authored
Implement CanLowerReturn and associated CallingConv changes for SPARC/SPARC64. In particular, for SPARC64 there's new `RetCC_Sparc64_*` functions that handles the return case of the calling convention. It uses the same analysis as `CC_Sparc64_*` family of funtions, but fails if the return value doesn't fit into the return registers. This makes calls to functions with big return values converted to an sret function as expected, instead of crashing LLVM. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D132465
-
Nathan Ridge authored
-
Jordan Rupprecht authored
[bazel] Port dd38f899 and fix 7732c97f.
-
Dan Gohman authored
Define a `__heap_end` symbol that marks the end of the memory region that starts at `__heap_base`. This will allow malloc implementations to know how much memory they can use at `__heap_base` even if someone has done a `memory.grow` before they can initialize their state. Differential Revision: https://reviews.llvm.org/D136110
-