- Feb 16, 2023
-
-
wren romano authored
* Flattening/simplifying some nested conditionals * const-ifying some local variables Depends On D143800 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D143949
-
Peter Klausler authored
When either descriptor argument to MayAlias() is not allocated, the result must be false by definition, since the values of the extents in the dimensional information may be uninitialized. Differential Revision: https://reviews.llvm.org/D144134
-
Craig Topper authored
This matches how they are described in the spec. Rework the tablegen classes to make this format consistent with other formats. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D144038
-
Craig Topper authored
Unused tablegen classes and unused operand type.
-
Manuel Klimek authored
MSVC needs a return after llvm_unreachable.
-
Vasileios Porpodas authored
This is a followup to d1804435 which did not actually remove the `public` keyword. Differential Revision: https://reviews.llvm.org/D144127
-
wren romano authored
Depends On D143800 Reviewed By: aartbik, Peiming Differential Revision: https://reviews.llvm.org/D144052
-
Peter Klausler authored
A type instantiation's scope doesn't require a source range, as we don't need/want it to be the result of SemanticsContext::FindScope(), and adding the original type's source range to the scope of one of its instantiations has the side effect of expanding the source range of all of its parents to include the original type definition, which breaks FindScope() for any scope including a type instantiation. Differential Revision: https://reviews.llvm.org/D144129
-
Fangrui Song authored
This reverts commit f1c4241f. It causes use-after-poison asan failures for CodeGen/RISCV/rvv/undef-earlyclobber-chain.ll and CodeGen/RISCV/regalloc-last-chance-recoloring-failure.ll
-
Aaron Ballman authored
This exposes __builtin_unreachable as the expansion for the unreachable macro in C2x. I added this definition under __need_STDDEF_H_misc on the assumption there is no need for a separate need macro to control adding this. Differential Revision: https://reviews.llvm.org/D143430
-
Leonard Chan authored
Differential Revision: https://reviews.llvm.org/D144030
-
Paul Walker authored
Differential Revision: https://reviews.llvm.org/D143764
-
Chia-hung Duan authored
Fix broken test on PPC Differential Revision: https://reviews.llvm.org/D144121
-
Zain Jaffal authored
-
David Green authored
This is a small extension to D143143 to ensure that nodes with multiple uses to not get transformed. The tests have also been extended to include more mla cases.
-
Aart Bik authored
Reviewed By: olegshyshkov Differential Revision: https://reviews.llvm.org/D144124
-
Hanhan Wang authored
The inner tiling sizes could be dynamic (which are Values). In this context, they should be added to tiledOperand when cloning the op. Reviewed By: chelini Differential Revision: https://reviews.llvm.org/D143978
-
Mark de Wever authored
Reviewed By: #libc, ldionne, Mordante Differential Revision: https://reviews.llvm.org/D143483
-
Hongtao Yu authored
Prevoius pseudo probes were dropped out of a vectorized loop body during loop vectorization. This can result in the samples of the loop entry is used for the loop body, which in turn can cause undercounting of the loop iteration count. The undercounting can further prevent the loop from being vectorized in the next build. I'm fixing this by explicting allowing pseudo probes to be kept in the vectorized loop body, and by claiming a probe instruction is not "uniform", the vectorizer will duplicate it by the number of vector lanes. For one internal service, I'm seeing the change causes the size increase of the .pseudoprobe section by 0.7%, which should count around 0.2% of the whole binary size. Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D144066
-
Akira Hatanaka authored
track of whether the pointer is known not to be null The flag will be used for the arm64e work we plan to upstream in the future (see https://lists.llvm.org/pipermail/llvm-dev/2019-October/136091.html). Currently the flag has no effect on code generation. Differential Revision: https://reviews.llvm.org/D142584
-
Markus Böck authored
This reverts commit 5561e174 The logic was moved from cmake into lit fixing the issue that lead to the revert and potentially others with multi-config cmake generators Differential Revision: https://reviews.llvm.org/D143925
-
Peter Klausler authored
Variable name 'y' needs to be used in the declaration of 'yDesc'. Differential Revision: https://reviews.llvm.org/D144117
-
Lei Zhang authored
These cases can be directly mapped to spirv.AtomicI* ops. Reviewed By: kuhar Differential Revision: https://reviews.llvm.org/D143952
-
Valentin Clement authored
-
Scott Linder authored
For AMDGCN default to mapping --lto-O# to --lto-CGO# in a 1:1 manner (i.e. clang -O<N> implies --lto-O<N> and --lto-CGO<N>). Ensure there is a means to override this via -Xoffload-linker and begin to claim these arguments to avoid incorrect warnings that they are not used. Reviewed By: yaxunl, MaskRay Differential Revision: https://reviews.llvm.org/D142499
-
Scott Linder authored
Allow controlling the CodeGenOpt::Level independent of the LTO optimization level in LLD via new options for the COFF, ELF, MachO, and wasm frontends to lld. Most are spelled as --lto-CGO[0-3], but COFF is spelled as -opt:lldltocgo=[0-3]. See D57422 for discussion surrounding the issue of how to set the CG opt level. The ultimate goal is to let each function control its CG opt level, but until then the current default means it is impossible to specify a CG opt level lower than 2 while using LTO. This option gives the user a means to control it for as long as it is not handled on a per-function basis. Reviewed By: MaskRay, #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D141970
-
Thomas Raoux authored
Pick the right result type when folding transpose op into a read Differential Revision: https://reviews.llvm.org/D144113
-
J. Ryan Stinnett authored
-
Rahul Kayaith authored
Some older versions of gcc hit false positives here: /workdir/llvm-project/mlir/include/mlir/IR/Attributes.h:391:49: warning: parameter 'ty' set but not used [-Wunused-but-set-parameter] 391 | static inline bool isPossible(mlir::Attribute ty) { https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81676 -
Krzysztof Drewniak authored
Upcoming AMD hardware will include functions that accept 8-bit floats. Specifically, there are MFMA instructions that accept 8-bit floats, either using the same or mixed formats. This patch adds MLIR wrappers for these intrinsics and explicitly adds support for 8-bit floats in the gpu-to-rocdl conversion by way of amdgpu-to-rocdl. Since LLVM does not have f8 types, when targeting LLVM for compilation on an AMD GPU, both f8 types used on AMD hardware (f8E5M2FNUZ and f8E4M3FNUZ) are rewritten to i8. This patch also relaxes the restriction that the types of both source operands to a amdgpu.mfma instructions match exactly, as this is not necessarily required for the bf8 (f8E5M2FNUZ) and fp8 (f8E4M3FNUZ) instructions. In addition, since the buffer_{load,store} operations maintain a whitelist of permitted types, we add the relevant f8 types to that list. This patch does not add any implementations of arithmetic operations for f8 types. Reviewed By: jakeh-gc Differential Revision: https://reviews.llvm.org/D143956 -
Sanjay Patel authored
-
Zain Jaffal authored
This reverts commit 02ae7e72. include Value.h in ConstraintSystem.h
-
Xing Xue authored
Summary: The personality routine for the legacy AIX xlclang++ compiler uses the stack slot reserved for compilers to pass the exception object to the landing pad. The landing pad retrieves the exception object with a call to the runtime function __xlc_exception_handle(). The current implementation incorrectly assumes that __xlc_exception_handle() should go up one stack frame to get to the stack frame of the caller of __xlc_exception_handle(), which is supposedly the stack frame of the function containing the landing pad. However, this does not always work, e.g., the xlclang++ compiler sometimes generates a wrapper of __xlc_exception_handle() and calls the wrapper from the landing pad for optimization purposes. This patch changes the implementation to unwind the stack from __xlc_exception_handle() and skip frames not associated with functions that are C++ EH-aware until a frame associated with a C++ EH-aware function is found and then retrieving the exception object with the expectation that the located frame is the one that the personality routine installed as it transferred control to the landing pad. Reviewed by: cebowleratibm, hubert.reinterpretcast, daltenty Differential Revision: https://reviews.llvm.org/D143010
-
David Green authored
We can always use FMOVH0 to lower fp16 zero, even without fullfp16. We can either expand it to movi d0, #0 or fmov s0, wzr, which will both clear all the bits of the register. Differential Revision: https://reviews.llvm.org/D143988
-
Peter Klausler authored
During child I/O -- a call to a user-defined subroutine with a generic interface to handle read and write operations on a specific derived type -- ensure that any INQUIRE statement probing mutable modes like BLANK= will observe changes that have been made to those modes via control edit descriptors like BN while processing the original I/O statement's format. Differential Revision: https://reviews.llvm.org/D144046
-
- Feb 15, 2023
-
-
Matthias Springer authored
This should have been part of D144022.
-
Nikolas Klauser authored
This change is almost fully mechanical. The only interesting change is in `generate_feature_test_macro_components.py` to generate `_LIBCPP_STD_VER >=` instead. To avoid churn in the git-blame this commit should be added to the `.git-blame-ignore-revs` once committed. Reviewed By: ldionne, var-const, #libc Spies: jloser, libcxx-commits, arichardson, arphaman, wenlei Differential Revision: https://reviews.llvm.org/D143962
-
Yitzhak Mandelbaum authored
The provided `CFGElement` is never null, so a reference is a more precise type. Differential Revision: https://reviews.llvm.org/D143920
-
Nikita Popov authored
This reverts commit 2a2a6bfc. This causes build failures: /home/npopov/repos/llvm-project/llvm/lib/Analysis/ConstraintSystem.cpp: In member function ‘llvm::SmallVector<std::__cxx11::basic_string<char> > llvm::ConstraintSystem::getVarNamesList() const’: /home/npopov/repos/llvm-project/llvm/lib/Analysis/ConstraintSystem.cpp:118:10: error: invalid use of incomplete type ‘class llvm::Value’ 118 | if (V->getName().empty()) | ^~ In file included from /home/npopov/repos/llvm-project/llvm/lib/Analysis/ConstraintSystem.cpp:9: /home/npopov/repos/llvm-project/llvm/include/llvm/Analysis/ConstraintSystem.h:21:7: note: forward declaration of ‘class llvm::Value’ 21 | class Value; | ^~~~~ /home/npopov/repos/llvm-project/llvm/lib/Analysis/ConstraintSystem.cpp:119:22: error: invalid use of incomplete type ‘class llvm::Value’ 119 | OperandName = V->getNameOrAsOperand(); | ^~ /home/npopov/repos/llvm-project/llvm/include/llvm/Analysis/ConstraintSystem.h:21:7: note: forward declaration of ‘class llvm::Value’ 21 | class Value; | ^~~~~ /home/npopov/repos/llvm-project/llvm/lib/Analysis/ConstraintSystem.cpp:121:41: error: invalid use of incomplete type ‘class llvm::Value’ 121 | OperandName = std::string("%") + V->getName().str(); | ^~ /home/npopov/repos/llvm-project/llvm/include/llvm/Analysis/ConstraintSystem.h:21:7: note: forward declaration of ‘class llvm::Value’ 21 | class Value; | ^~~~~
-
Nikita Popov authored
-