- Jul 18, 2022
-
-
Dmitry Preobrazhensky authored
Update FLAT LDS syntax (see https://reviews.llvm.org/D125126).
-
Dmitry Preobrazhensky authored
Update FLAT LDS syntax (see https://reviews.llvm.org/D125126).
-
serge-sans-paille authored
Some code [0] consider that trailing arrays are flexible, whatever their size. Support for these legacy code has been introduced in f8f63249 but it prevents evaluation of __builtin_object_size and __builtin_dynamic_object_size in some legit cases. Introduce -fstrict-flex-arrays=<n> to have stricter conformance when it is desirable. n = 0: current behavior, any trailing array member is a flexible array. The default. n = 1: any trailing array member of undefined, 0 or 1 size is a flexible array member n = 2: any trailing array member of undefined or 0 size is a flexible array member This takes into account two specificities of clang: array bounds as macro id disqualify FAM, as well as non standard layout. Similar patch for gcc discuss here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 [0] https://docs.freebsd.org/en/books/developers-handbook/sockets/#sockets-essential-functions
-
Ivan Kosarev authored
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D129381
-
Nikita Popov authored
As callbr is now allowed to have duplicate destinations, we can have a callbr with a unique successor. Make sure it doesn't get dropped, as we still need to preserve the side-effect.
-
Ivan Kosarev authored
Saves some add instructions on a couple Rage 2 shaders and is also a prerequisite for a coming-soon change matching (register + immediate) offsets. Reviewed By: foad, arsenm Differential Revision: https://reviews.llvm.org/D129095
-
David Spickett authored
This reverts commit 81bffdf6, the machine is back online. Differential Revision: https://reviews.llvm.org/D129987
-
Nikita Popov authored
We only need to check the block for the normal/default destination, not for other destinations. Using the value in those would be illegal anyway. The callbr case cannot actually happen here, because callbr is currently limited to inline asm. Retaining it to match the spirit of the original code.
-
Nikita Popov authored
-
Utkarsh Saxena authored
This first version only uses bracket matching. We plan to extend this to use DirectiveTree as well. Also includes changes to Token to allow retrieving corresponding token in token stream of original source file. Differential Revision: https://reviews.llvm.org/D129648
-
Max Kazantsev authored
Undef tokens may appear in unreached code as result of RAUW of some optimization, and it should not be considered as bad IR. Patch by Dmitry Bakunevich! Differential Revision: https://reviews.llvm.org/D128904 Reviewed By: mkazantsev
-
esmeyi authored
We add the following ISEL pattern for i64 imm in D87384, this patch is for i32. `mul with (2^N * int16_imm) -> MULLI + RLWINM` Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D129708
-
Nikita Popov authored
-
Florian Hahn authored
At the moment, the VPPRedInstPHIRecipe is not used in subsequent uses of the predicate recipe. This incorrectly models the def-use chains, as all later uses should use the phi recipe. Fix that by delaying recording of the recipe. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D129436
-
Haojian Wu authored
-
Chuanqi Xu authored
Previously, we forget to handle reachability for deduction guide. The deduction guide is a hint to the compiler. And the deduction guide should be able to use if the corresponding template decl is reachable.
-
Nikita Popov authored
Callbr is no longer an indirect terminator in the sense that is relevant here (that it's successors cannot be updated). The primary effect of this change is that callbr no longer prevents formation of loop simplify form. I decided to drop the isIndirectTerminator() method entirely and replace it with isa<IndirectBrInst>() checks. I assume this method was added to abstract over indirectbr and callbr, but it never really caught on, and there is nothing left to abstract anymore at this point. Differential Revision: https://reviews.llvm.org/D129849
-
Valentin Clement authored
This patch introduce an automatic generation of the clause parser from the TableGen information. New information can be stored directly in the TableGen file: - The different aliases that a clause support. - prefix before a value. - whether a prefix is optional or not. Makes it easier to add new clauses and also avoid some error (`write` clause incorrect until now). This patch is updating only the OpenACC part. A patch with a modification of the OpenMP clause parser will follow. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D106968
-
Fangrui Song authored
Similar to D73982 for yaml2obj. * Hide unrelated options. * Add an OVERVIEW: message. * Disallow single-dash long options. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D129839
-
Lorenzo Albano authored
Added function to the ExpandVectorPredication pass to handle VP loads and stores. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D109584
-
Craig Topper authored
-
Craig Topper authored
-
Craig Topper authored
The IsAdd field is a bool.
-
Fangrui Song authored
Unused after LTO removal from legacy optimization passline.
-
Fangrui Song authored
Unused after ThinLTO was removed from legacy optimization pipeline.
-
Max Kazantsev authored
-
Fangrui Song authored
-
Abinav Puthan Purayil authored
This change introduces the dynamic stack boolean field to code-object-v3 and above under the code properties of the kernel descriptor and under the kernel metadata map of NT_AMDGPU_METADATA. This field corresponds to the is_dynamic_callstack field of amd_kernel_code_t. Differential Revision: https://reviews.llvm.org/D128344
-
Fangrui Song authored
-
jacquesguan authored
This patch replaces some foreach with Arrayref, and abstract some same literal array with a variable. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D125656
-
jacquesguan authored
This patch extends D124824. It uses SHXADD+SLLI to emit 3, 5, or 9 multiplied by a power 2. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D129179
-
jacquesguan authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D129463
-
jacquesguan authored
This patch adds constant folder for Log10Op which only support single and double precision floating-point. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D129740
-
Konstantin Varlamov authored
Also test all the range algorithms to verify the support. Differential Revision: https://reviews.llvm.org/D129823
-
Kazu Hirata authored
Identified with modernize-use-bool-literals.
-
Kazu Hirata authored
Identified with modernize-redundant-void-arg.
-
Kazu Hirata authored
Identified with misc-unused-using-decls.
-
Fangrui Song authored
-
Nikolas Klauser authored
Reviewed By: Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D129970
-
Fangrui Song authored
-