- Oct 21, 2022
-
-
Joseph Huber authored
Previously, OpenMP linking would be done explicitly in a linker stage. For `x86_64` offloading this would just use the host linker, which could be the `bfd` linker. This linker had problems linking relocations against variables with protected visibility so we force `-Bsymbolic` when linking. After the deprecation of the old offloading driver this code is no longer used and can be removed. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D136363
-
Joseph Huber authored
The plugins all define the same interface symbols. This is generally not a problem when calling the plugin directly from the dynamic library's handle. However, when calling from within the plugin itself it is possible for another plugin's symbols to preempt the symbols. This was observed with the `__tgt_rtl_is_valid_binary` call in the `__tgt_rtl_is_valid_binary_info` function being mapped to the x86_64 plugin. This patch changes the default visibility to `protected` intead. This visibility ensures that these symbols are all externally visible from the plugin, but ensures their definitions are fixed within the shared library. Having protected visiiblity makes such symbol preemption impossible. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D136365
-
- Oct 20, 2022
-
-
Denys Shabalin authored
Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D136364
-
LLVM GN Syncbot authored
-
Mark de Wever authored
Implements parts of - P2286R8 Formatting Ranges Reviewed By: #libc, tahonermann Differential Revision: https://reviews.llvm.org/D134036
-
Mark de Wever authored
In the second leg of the CI the steps take about: - C++2b 10m - C++11 8m - C++03 6m - Modular build 10m - GCC 12 / C++latest 20m So the slowest job is scheduled last. The CI will wait to start the third leg until that job is done. The current order increases the latency of the current job, instead start the slow jobs earlier. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D136276
-
Craig Topper authored
This removes the EEW from unit stride load/store and whole register load, store, move. It seems reasonable that implementations of these instructions wouldn't usually be affected by element width. We likely need to add LMUL information to our scheduling classes so I thought it might be good to remove a few before they got multiplied by LMUL. Reviewed By: reames, michaelmaitland Differential Revision: https://reviews.llvm.org/D135992
-
Mircea Trofin authored
Instruction opcodes bumped, trivial fix.
-
Paul Walker authored
-
Nikita Popov authored
Allow writing something like MemoryEffects::argMemOnly() implying MemoryEffects::argMemOnly(ModRefInfo::ModRef). Having to write this out is a bit of an annoying than porting code using the existing attributes in D135780.
-
Pierrick Bouvier authored
Instead of hardcoding several VS paths, use vswhere.exe (available from VS 2017) to get latest version available. Reviewed By: hans, thieta Differential Revision: https://reviews.llvm.org/D135873
-
OCHyams authored
Note: The constructor definition cannot be inline without some refactoring as it introduces a circular dependency between the headers llvm/IR/DebugInfoMetadata.h (this file) and llvm/IR/IntrinsicInst.h (where DbgVariableIntrinsic is defined). Reviewed By: jryans Differential Revision: https://reviews.llvm.org/D133286
-
OCHyams authored
Reviewed By: jryans Differential Revision: https://reviews.llvm.org/D133304
-
Guillaume Chatelet authored
This breaks llvm-libc build bots: - libc-x86_64-debian-dbg-asan - libc-x86_64-debian-fullbuild-dbg-asan Address sanitizers fail with "AddressSanitizer: invalid alignment requested in aligned_alloc: 64, alignment must be a power of two and the requested size 0x41 must be a multiple of alignment (thread T0)" - libc-aarch64-ubuntu-dbg - libc-aarch64-ubuntu-fullbuild-dbg https://lab.llvm.org/buildbot/#/builders/223/builds/8877/steps/7/logs/stdio - libc-arm32-debian-dbg https://lab.llvm.org/buildbot/#/builders/229/builds/5201/steps/7/logs/stdio This reverts commit 903cc71a.
-
Aliia Khasanova authored
This patch prepares MLIR code base to change the value of kDynamicSize. https://discourse.llvm.org/t/rfc-unify-kdynamicsize-and-kdynamicstrideoroffset/64534/4 Differential Revision: https://reviews.llvm.org/D136327
-
Denys Shabalin authored
Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D136334
-
Guillaume Chatelet authored
This version is more composable and also simpler at the expense of being more explicit and more verbose. This patch provides rationale for the framework, implementation and unit tests but the functions themselves are still using the previous version. The change in implementation will come in a follow up patch. Differential Revision: https://reviews.llvm.org/D136292
-
Florian Hahn authored
The code in buildScalarSteps already properly handles creating the scalar induction values with VF = 1. Use it directly instead of using extra code to handle that case. Suggested by @Ayal in D133760.
-
Nikita Popov authored
Reapplying after the fix for volatile modelling in D135863. ----- Don't add argmem if the pointer is clearly not an argument (e.g. a global). I don't think this makes a difference right now, but gives more obvious results with D135780.
-
Nathan Sidwell authored
This open codes the use of lower-bound when looking for an operator encoding. Using std::lower_bound can result in symbol references to the C++ library and that breaks the ABI demangler, which mandates no such dependency. Differential Revision: https://reviews.llvm.org/D135799 Fixes: https://github.com/llvm/llvm-project/issues/58117
-
Carlos Alberto Enciso authored
The test case 'LocationCoverage' caused a failure in: https://lab.llvm.org/buildbot/#/builders/5/builds/28385 https://lab.llvm.org/buildbot/#/builders/168/builds/9585 SUMMARY: AddressSanitizer: 176 byte(s) leaked in 2 allocation(s). The logical debug locations 'LocationThree' and 'LocationFour' are not added to any logical scope. The test case is checking the logical symbol coverage and it does not use those 2 debug locations. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D136333
-
Enna1 authored
This change allows users manually calling memprof public C API (e.g. __memprof_profile_dump). Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D136067
-
Sander de Smalen authored
This intrinsic can be removed in favour of using a call to __arm_sme_state() directly and testing the LSB of X0. In IR that would look like: %pstate = call aarch64_sme_preservemost_from_x2 {i64, i64} @__arm_sme_state() %pstate.x0 = extractvalue {i64, i64} %pstate, 0 %pstate.sm = and i64 %pstate.x0, 1 -
Dmitry Preobrazhensky authored
-
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
-