- Aug 25, 2023
-
-
Joseph Huber authored
OpenMP 5.1 allows emission of the `indirect` clause on declare target functions, see https://www.openmp.org/spec-html/5.1/openmpsu70.html#x98-1080002.14.7. The intended use of this is to permit calling device functions via their associated host pointer. In order to do this the first step will be building a map associating these variables. Doing this will require the same offloading entry handling we use for other kernels and globals. We intentionally emit a new global on the device side. Although it's possible to look up the device function's address directly, this would require changing the visibility and would prevent us from making static functions indirect. Also, the CUDA toolchain will optimize out unused functions and using a global prevents that. The downside is that the runtime will need to read the global and copy its value, but there shouldn't be any other costs. Note that this patch just performs the codegen, currently this new offloading entry type is unused and will be ignored by the runtime. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D157738
-
Yaxun (Sam) Liu authored
The fp options specified through pragma are already encoded in Expr. This patch takes the same approach used by clang codegen to emit fastmath flags for fadd insts, basically use RAII to set the current fastmath flags in IRBuilder, which is then used to emit sqrt intrinsic. Fixes: https://github.com/llvm/llvm-project/issues/64653
-
Han Shen authored
Previously, clang reports an error when -fno-split-machine-functions is used for non-X86 archs. However, in some cases, users may specify flags as "-fsplit-machine-functions -fother-flags -fno-split-machine-functions", the first one is from a global flag set, the last one is used to negate the global flag, we think this is a valid usage mode. Another cases is when clang is used to invoke multiple workloads, like "-x cuda -fsplit-machine-functions -Xarch_device -fno-split-machine-functions", the latter is used to negate -fsplit-machine-functions when invoke workloads for GPU." This change makes this work. Reviewed By: maskray Differential Revision: https://reviews.llvm.org/D158755
-
Jonas Devlieghere authored
Use a switch to avoid else-after-return. Differential revision: https://reviews.llvm.org/D158788
-
Michael Maitland authored
This reverts commit 5b854f2c. Build still failing.
-
Michael Maitland authored
D150312 added a TODO: TODO: consider renaming the field `StartAtCycle` and `Cycles` to `AcquireAtCycle` and `ReleaseAtCycle` respectively, to stress the fact that resource allocation is now represented as an interval, relatively to the issue cycle of the instruction. This patch implements that TODO. This naming clarifies how to use these fields in the scheduler. In addition it was confusing that `StartAtCycle` was singular but `Cycles` was plural. This renaming fixes this inconsistency. This commit as previously reverted since it missed renaming that came down after rebasing. This version of the commit fixes those problems. Differential Revision: https://reviews.llvm.org/D158568
-
Daniel Hoekwater authored
Because unconditional branch relaxation on AArch64 grows the stack to spill a register, splitting a function would cause the red zone to be overwritten. Explicitly disable MFS for such functions. Differential Revision: https://reviews.llvm.org/D157127
-
Piotr Zegar authored
Ignore false positives related to matching parameters of non coroutine functions and increase issue detection for cases involving type aliases with references. Fixes: #64915 Reviewed By: ccotter Differential Revision: https://reviews.llvm.org/D158665
-
Andy Kaylor authored
The InputArgList move assignment operator releases memory before copying fields, but it doesn't check against self-assignment. I haven't seen the self-assignment happen, but it doesn't look safe. Differential Revision: https://reviews.llvm.org/D158134
-
Jan Svoboda authored
This reverts commit b9d78bdc. After this change, all libc++ `clang_modules_include.gen.py` tests started failing on Linux builders: https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-arm64/b8771862804321535569/test-results
-
Jan Svoboda authored
This reverts commit 7d156572.
-
Alexander Shaposhnikov authored
Add support for f64 in the expansion of math.roundeven. Associated GitHub issue: https://github.com/openxla/iree/issues/13522 This is based on the offline discussion and essentially recommits https://reviews.llvm.org/D158234. Test plan: ninja check-mlir check-all
-
Andy Kaylor authored
This change reverts a batch of autogenerated checks in the pow-exp.ll file where a previous version had used wildcards to account for minor variations in constant folding by different math libraries. The test is also updated to add a comment that will prevent future autogeneration. See: https://discourse.llvm.org/t/auto-generated-checks-with-inexact-fp-results/71713 Differential Revision: https://reviews.llvm.org/D158758
-
Daniel Hoekwater authored
Reverted in 4c8d056f because it broke buildbot `llvm-clang-x86_64-expensive-checks-debian` due to the AArch64 test generating invalid code. The issue still exists, but it's fixed in D156767, so the AArch64 test should be added there. Differential Revision: https://reviews.llvm.org/D158674
-
Ian Anderson authored
[libc++][Modules] locale fails to compile with clang modules when _LIBCPP_LOCALE__L_EXTENSIONS is undefined When `__locale_dir/locale_base_api/locale_guard.h is` compiled independently, as it is when it's in its own clang module, it fails to compile due to `locale_t` being undefined. It needs to include `__locale` to get that, instead of just `clocale`. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D158669
-
Florian Hahn authored
Remove compares after replacing all uses. Cleaning dead compares can enable additional simplifications when adjusting the position of the pass slightly. In particular, it seems like the additional dead instructions may prevent SimplifyCFG performing some folds. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D158760
-
Jonas Devlieghere authored
The error message "Couldn't lookup symbols" emitted from IRExecutionUnit is grammatically incorrect. "Lookup" is noun when spelled without a space. Update the error message to use the verb "look up" instead.
-
Felipe de Azevedo Piovezan authored
Addresses the bot issues raised in D158636.
-
Aaron Jarmusch authored
Fixed the broken commit - 6579021f Fix for the AMDGPU buildbot reported by @jplehr.
-
Felipe de Azevedo Piovezan authored
The directory this test used to live in is exclusive to Aarch. Addresses the failure reported in D158636.
-
Martin Storsjö authored
This is modelled after how the ELF driver does it (see e.g. https://reviews.llvm.org/D78158 for the source of the ELF implementation); we need to intercept some options, but ignore GCC specific ones that GCC passes regardless of whether GCC is using LTO or not. This is the second part of the fix for https://github.com/mstorsjo/llvm-mingw/issues/349. Differential Revision: https://reviews.llvm.org/D158412
-
Martin Storsjö authored
This matches what is done on other platforms too. This fixes one part of https://github.com/mstorsjo/llvm-mingw/issues/349. Differential Revision: https://reviews.llvm.org/D158411
-
Blue Gaston authored
By its nature the stable abi does not require a version check symbol. This patch sets -asan-guard-against-version-mismatch=0 for stable abi. And updates tests to reflect this rdar://114208627 Differential Revision: https://reviews.llvm.org/D158570
-
Aaron Jarmusch authored
Using LIBOMPTARGET_PROFILER, duplicates are created from timing both Kernel functions and Data update functions. I commented out the duplicate timescope and left them in the targetkernel and the targetdataupdate functions. This way the timescope calls will be closer to the launching of the kernel and the data moving. Reviewed By: jdoerfert, tianshilei1992 Differential Revision: https://reviews.llvm.org/D157725
-
Rafael Auler authored
AddressMap would fail lookup for injected functions and crash BOLT. Fix that. Reviewed By: #bolt, maksfb, jobnoorman Differential Revision: https://reviews.llvm.org/D158685
-
Rafael Auler authored
When parsing AddressMap and there is a conflict in keys, where two entries share the same key, consider the first entry as the correct one, instead of the last. This matches previous behavior in BOLT and covers case such as BOLT creating a new basic block but sharing the same input offset of the previous (or entry) basic block. In this case, instead of translating debuginfo to use the newly created BB, translate using the BB that was originally read from input. This will increase our chances of getting debuginfo right. Tested via binary comparison in tests: X86/dwarf4-df-input-lowpc-ranges.test X86/dwarf5-df-input-lowpc-ranges.test Reviewed By: #bolt, maksfb, jobnoorman Differential Revision: https://reviews.llvm.org/D158686
-
Michael Maitland authored
This reverts commit 030d3340. This commit is causing build failures
-
Michael Maitland authored
This reverts commit 205c8046. This commit is causing build failures.
-
Med Ismail Bennani authored
This patch reverts the lldb website revamp (eea88740 ) since the `furo` theme that we use is not installed on the publisher bot. The prevents other website from getting there documentation updated. Signed-off-by:
Med Ismail Bennani <ismail@bennani.ma>
-
Michael Maitland authored
https://reviews.llvm.org/D158568 missed renaming the changes in this patch after rebasing.
-
Michael Maitland authored
D150312 added a TODO: TODO: consider renaming the field `StartAtCycle` and `Cycles` to `AcquireAtCycle` and `ReleaseAtCycle` respectively, to stress the fact that resource allocation is now represented as an interval, relatively to the issue cycle of the instruction. This patch implements that TODO. This naming clarifies how to use these fields in the scheduler. In addition it was confusing that `StartAtCycle` was singular but `Cycles` was plural. This renaming fixes this inconsistency. Differential Revision: https://reviews.llvm.org/D158568
-
Yinying Li authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D158667
-
Nick Desaulniers authored
This module flag was added in D103048. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D158524
-
Fangrui Song authored
-
Konstantina Mitropoulou authored
CMP(A,C)||CMP(B,C) => CMP(MIN/MAX(A,B), C) CMP(A,C)&&CMP(B,C) => CMP(MIN/MAX(A,B), C) If the operands are proven to be non NaN, then the optimization can be applied for all predicates. We can apply the optimization for the following predicates for FMINNUM/FMAXNUM (for quiet and signaling NaNs) and for FMINNUM_IEEE/FMAXNUM_IEEE if we can prove that the operands are not signaling NaNs. - ordered lt/le and || - ordered gt/ge and || - unordered lt/le and && - unordered gt/ge and && Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D155267
-
Mogball authored
This commit enables modelling negation of native constraints. This is accomplished through an attribute `isNegated` on the operations `pdl.apply_native_constraint` and `pdl_interp.apply_constraint` and according adjustments to the conversion in the ConvertPDLToPDLInterpPass. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D153871
-
Douglas Yung authored
This reverts commit dbccf3c6. The test added is failing on many bots including: - https://lab.llvm.org/buildbot/#/builders/164/builds/42716 - https://lab.llvm.org/buildbot/#/builders/188/builds/34429 - https://lab.llvm.org/buildbot/#/builders/245/builds/13103 - https://lab.llvm.org/buildbot/#/builders/258/builds/6002 - https://lab.llvm.org/buildbot/#/builders/230/builds/17690 - https://lab.llvm.org/buildbot/#/builders/91/builds/17722 - https://lab.llvm.org/buildbot/#/builders/67/builds/12466 - https://lab.llvm.org/buildbot/#/builders/109/builds/72108 - https://lab.llvm.org/buildbot/#/builders/139/builds/48265 - https://lab.llvm.org/buildbot/#/builders/216/builds/26208 - https://lab.llvm.org/buildbot/#/builders/36/builds/36964 - https://lab.llvm.org/buildbot/#/builders/247/builds/8222
-
Daniel Hoekwater authored
This reverts commit 994eb5ad. Breaks buildbot `llvm-clang-x86_64-expensive-checks-debian` https://lab.llvm.org/buildbot/#/builders/16/builds/53620
-
Simon Pilgrim authored
-