- Oct 20, 2022
-
-
isuckatcs authored
Inside lambdas.cpp a block of code wasn't executed, because it required the standard to be at least c++14. This patch moves this block of code into it's own source file and makes sure it's tested. Differential Revision: https://reviews.llvm.org/D135965
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D136168
-
Pierrick Bouvier authored
Options: --version: [required] version to build --help: display this help --x86: build and test x86 variant --x64: build and test x64 variant Note: At least one variant to build is required. Example: build_llvm_release.bat --version 15.0.0 --x64 Reviewed By: hans, thieta Differential Revision: https://reviews.llvm.org/D135255
-
Nabeel Omer authored
Bug introduced in e239198c. The assert() is making an assumption that the resulting shuffle mask will always select elements from both vectors, this is untrue in the case of two shuffles being folded if the former shuffle has a mask with undef elements in it. In such a case folding the shuffles might result in a mask which only selects from one of the vectors because the other elements (in the mask) are undef. Differential Revision: https://reviews.llvm.org/D136256
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D136152
-
Victor Perez authored
Translate LLVMIR llvm.noundef attribute to its equivalent in LLVM IR. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D136324
-
Guillaume Chatelet authored
-
Florian Hahn authored
This fixes another case where block and loop dispositions weren't properly invalidate after changing the CFG. Fixes #58489.
-
Nikita Popov authored
This code is the same for accesses from call arguments and for accesses from other (single-location) instructions. Extract i into a common function.
-
Nikita Popov authored
Per LangRef, volatile operations are allowed to access the location of their pointer argument, plus inaccessible memory: > Any volatile operation can have side effects, and any volatile > operation can read and/or modify state which is not accessible > via a regular load or store in this module. > [...] > The allowed side-effects for volatile accesses are limited. If > a non-volatile store to a given address would be legal, a volatile > operation may modify the memory at that address. A volatile > operation may not modify any other memory accessible by the > module being compiled. A volatile operation may not call any > code in the current module. FunctionAttrs currently does not model this and ends up marking functions with volatile accesses on arguments as argmemonly, even though they should be inaccessiblemem_or_argmemonly. Differential Revision: https://reviews.llvm.org/D135863
-
gonglingqin authored
Differential Revision: https://reviews.llvm.org/D136220
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Utkarsh Saxena authored
Fixes: https://github.com/llvm/llvm-project/issues/53354 Differential Revision: https://reviews.llvm.org/D136259
-
Jean Perier authored
Lower scalar and explicit shape arrays to fir.declare under the -hlfir option. Update the SymMap so that it can hold fir::FortranVariableInterface. The plan is to go towards a SymMap that only contains fir::FortranVariableInterface once current expression lowering can be replaced. This should make the SymMap lighter than it is today (SymBox/ExtendedValue are above 256 bytes). Assumed shape, allocatable and pointer are left TODOs for now. Anything with a specification expression that is not a constant expression will only be able to be lowered when the HLFIR expression lowering skeleton is added. Differential Revision: https://reviews.llvm.org/D136252
-
Jean Perier authored
For now, nothing is done about debug info and the fir.declare is simply replaced by the memref argument. This is done in the PreCGRewrite in order to avoid requiring adding support for fir.shape codegen, which would still be useless and undesired at that point. Differential Revision: https://reviews.llvm.org/D136254
-
LLVM GN Syncbot authored
-
Carlos Alberto Enciso authored
llvm-debuginfo-analyzer is a command line tool that processes debug info contained in a binary file and produces a debug information format agnostic “Logical View”, which is a high-level semantic representation of the debug info, independent of the low-level format. The code has been divided into the following patches: 1) Interval tree 2) Driver and documentation 3) Logical elements 4) Locations and ranges 5) Select elements 6) Warning and internal options 7) Compare elements 8) ELF Reader 9) CodeView Reader Full details: https://discourse.llvm.org/t/llvm-dev-rfc-llvm-dva-debug-information-visual-analyzer/62570 This patch: Locations and ranges - All functionality for logical debug locations and ranges: LVLocation, LVRanges. Reviewed By: psamolysov, probinson Differential Revision: https://reviews.llvm.org/D125779
-
Andrzej Warzynski authored
This patch disables 2 bf16 tests that are currently not supported on AArch64. I've triaged these failures and opened [1] to track this. I don't have a simple reproducer for dense_output_bf16.mlir, but it's rather clear that both tests fail due to missing support for `bfloat` operations in the AArch64 backend. I'm not sure what the path forward to enable these tests on AArch64 should be. I think that there are two options: * AArch64 backened gains capability to legalize these nodes containing `bfloat` operands, or * MLIR (similarly to Clang) is taught not to emit such nodes in the first place. [1] https://github.com/llvm/llvm-project/issues/58465 Differential Revision: https://reviews.llvm.org/D136273 -
Siva Chandra Reddy authored
-
Phoebe Wang authored
-
Tobias Gysi authored
Rename single letter member variables and function arguments to use longer names in ConvertFromLLVMIR.cpp. Also drop some uses of auto in favor our spelling out the type and refactor some llvm::enumerate loops. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D136246
-
LLVM GN Syncbot authored
-
Carlos Alberto Enciso authored
llvm-debuginfo-analyzer is a command line tool that processes debug info contained in a binary file and produces a debug information format agnostic “Logical View”, which is a high-level semantic representation of the debug info, independent of the low-level format. The code has been divided into the following patches: 1) Interval tree 2) Driver and documentation 3) Logical elements 4) Locations and ranges 5) Select elements 6) Warning and internal options 7) Compare elements 8) ELF Reader 9) CodeView Reader Full details: https://discourse.llvm.org/t/llvm-dev-rfc-llvm-dva-debug-information-visual-analyzer/62570 This patch: Logical elements - All basic functionality for the logical elements: LVScope, LVLine, LVSymbol, LVType. - The logical reader: LVReader.h Reviewed By: psamolysov, probinson Differential Revision: https://reviews.llvm.org/D125778
-
Michał Górny authored
Invoke llvm_distribution_add_targets() when doing standalone build explicitly in order to create the `distribution` target. Differential Revision: https://reviews.llvm.org/D136269
-
Zi Xuan Wu (Zeson) authored
[testcase][OpenMP] Fix the testcase error of check-all when DCLANG_DEFAULT_OPENMP_RUNTIME is not libomp When DCLANG_DEFAULT_OPENMP_RUNTIME is set to libgomp, there is some check-all error. The expected CHECK result only displays when fopenmp=libomp is specified explicitly. Differential Revision: https://reviews.llvm.org/D136239
-
Phoebe Wang authored
-
Amir Ayupov authored
This enables multi-stage PGO build optimized by BOLT using BOLT.cmake cache. The issue is that `-DPGO_BUILD_CONFIGURATION` cache file is passed to both stage2-instrumented and stage2-optimized builds (for them to be identical), but in case of BOLT.cmake, it doesn't make sense to BOLT-instrument the instrumented binary (it's not going to be optimized). Hence turn off `CLANG_BOLT_INSTRUMENT` code if `LLVM_BUILD_INSTRUMENTED` is enabled. The final workflow that enables multi-stage InstrPGO+ThinLTO+BOLT Clang build: ``` cmake <llvm-project>/llvm -GNinja -DLLVM_ENABLE_LLD=ON \ -DBOOTSTRAP_LLVM_ENABLE_LLD=ON -DBOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD=ON \ -DPGO_INSTRUMENT_LTO=Thin -C llvm-project/clang/cmake/caches/BOLT-PGO.cmake ninja stage2-clang++-bolt ``` Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D136023
-
LLVM GN Syncbot authored
-
Phoebe Wang authored
For more details about these instructions, please refer to the latest ISE document: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D136040
-
Vitaly Buka authored
Reviewed By: compnerd, kcc, lhames, phosek, tejohnson, dvyukov, MaskRay Differential Revision: https://reviews.llvm.org/D135617
-
Manish Gupta authored
This patch handles native `mma.sync` sizes and enables issuing `ldmatrix` on largest possible tiles for matrixB. It requires handling `vector.extract_strided_slice` from vector to ngpu lowering. Differential Revision: https://reviews.llvm.org/D135749
-
Arthur Eubanks authored
When building clang with lld, we don't get a default mlinker-version [1]. This causes us to not pass -lto_library to ld64 [2]. Explicitly pass -mlinker-version=133 so we properly pass -lto_library to ld64 and don't get LLVM bitcode version mismatches due to LTO. [1] https://github.com/llvm/llvm-project/blob/55ae180a4cb7fc68b3ac153f07752c8c6a2d92f0/clang/CMakeLists.txt#L345 [2] https://github.com/llvm/llvm-project/blob/55ae180a4cb7fc68b3ac153f07752c8c6a2d92f0/clang/lib/Driver/ToolChains/Darwin.cpp#L262-L270
-
Yeting Kuo authored
Those vp intrinsics should be vp binary operations. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D135753
-
Philip Reames authored
Follow up on D135894, restructure code to work in terms of minimum and maximum VLEN coming from RISCVISAInfo.cpp. In the original review, I'd mentioned that MinVLEN was sometimes zero. This turns out to be a case of human error, combined with really bad (lack of) error reporting. This patch adds appropriate tests for various vector extension combinations to show the mechanism works, but doesn't try to provide exhaustive coverage of the extension interactions. Presumably, that is already covered in existing tests elsewhere. Differential Revision: https://reviews.llvm.org/D136106
-
Kazushi (Jam) Marukawa authored
Change to use VEISD::CMPI/CMPU/CMPF/CMPQ and VEISD::CMOV in combineSelectCC for better optimization. Support VEISD::CMPI/CMPU in combineTRUNCATE also to optimize truncate. Remove obsolete lower patterns from VEInstrInfo.td. Update regression tests also. Reviewed By: efocht Differential Revision: https://reviews.llvm.org/D136049
-
Siva Chandra Reddy authored
-
Craig Topper authored
The optimization is using fast math flags on the instructions instead.
-
Jonas Devlieghere authored
Disable the assertion for getting a module ID for non-local, non-imported module. According to the FIXME this can "easily happen" and indeed, we're hitting this assertion regularly. Disable it until it can be properly investigated. rdar://99352728 Differential revision: https://reviews.llvm.org/D136290
-
Lang Hames authored
Since aedeb8d5, which switched to EPC-based eh-frame registration, the eh-frame registration functions need to be forcibly linked into the target process. We need a general solution to this problem, but for now just force it in this example to fix the test failures in https://green.lab.llvm.org/green/job/clang-stage1-RA/31497 rdar://101083784
-