1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00
llvm-mirror/test
Jose M Monsalve Diaz 5b7208da36 [OpenMP] Folding threadLimit and numThreads when single value in kernels
The device runtime contains several calls to `__kmpc_get_hardware_num_threads_in_block`
and `__kmpc_get_hardware_num_blocks`. If the thread_limit and the num_teams are constant,
these calls can be folded to the constant value.

In this patch we use the already introduced `AAFoldRuntimeCall` and the `NumTeams` and
`NumThreads` kernel attributes (to be introduced in a different patch) to fold these functions.
The code checks all the kernels, and if their attributes match, the functions are folded.

In the future we will explore specializing for multiple values of NumThreads and NumTeams.

Depends on D106390

Reviewed By: jdoerfert, JonChesterfield

Differential Revision: https://reviews.llvm.org/D106033
2021-07-27 21:47:12 -04:00
..
Analysis [AArch64] Update and expand min-max cost model test. NFC 2021-07-27 18:48:58 +01:00
Assembler
Bindings
Bitcode [IR] Rename comdat noduplicates to comdat nodeduplicate 2021-07-20 12:47:10 -07:00
BugPoint
CodeGen [DAGCombiner] Fold SETCC(FREEZE(x),const) to FREEZE(SETCC(x,const)) if SETCC is used by BRCOND 2021-07-28 09:22:15 +09:00
DebugInfo [DebugInfo][InstrRef] Handle llvm.frameaddress intrinsics gracefully 2021-07-27 13:44:37 +01:00
Demangle
Examples
ExecutionEngine [JITLink][RISCV] Run new test from 0ad562b48 only if the RISCV backend is enabled 2021-07-25 10:47:26 -04:00
Feature
FileCheck
Instrumentation [hwasan] Use stack safety analysis. 2021-07-22 16:20:27 -07:00
Integer
JitListener
Linker [IR] Rename comdat noduplicates to comdat nodeduplicate 2021-07-20 12:47:10 -07:00
LTO [LTO] Add SelectionKind to IRSymtab and use it in ld.lld/LLVMgold 2021-07-20 13:22:00 -07:00
MachineVerifier [MachineVerifier] Make INSERT_SUBREG diagnostic respect operand 2 subregs 2021-07-21 08:47:17 -07:00
MC [AArch64][SME] Add zero instruction 2021-07-27 08:35:45 +00:00
Object [llvm-readobj] Display multiple function names for stack size entries 2021-07-26 14:49:53 +01:00
ObjectYAML [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
Other [ConstantFold] Fix GEP of GEP fold with opaque pointers 2021-07-23 23:56:41 +02:00
SafepointIRVerifier
Support
SymbolRewriter [IR] Rename comdat noduplicates to comdat nodeduplicate 2021-07-20 12:47:10 -07:00
TableGen
ThinLTO/X86 Revert "ThinLTO: Fix inline assembly references to static functions with CFI" 2021-07-20 13:59:46 -07:00
tools [Debug-Info][llvm-dwarfdump] Don't try to dump location 2021-07-27 07:28:59 +00:00
Transforms [OpenMP] Folding threadLimit and numThreads when single value in kernels 2021-07-27 21:47:12 -04:00
Unit
Verifier [Verifier] Check byval/etc type when comparing ABI attributes 2021-07-20 20:19:47 +02:00
YAMLParser
.clang-format
CMakeLists.txt [test] Add llvm-stress to LLVM_TEST_DEPENDS and lit substitutions 2021-07-22 09:37:01 -07:00
lit.cfg.py [test] Add llvm-stress to LLVM_TEST_DEPENDS and lit substitutions 2021-07-22 09:37:01 -07:00
lit.site.cfg.py.in
TestRunner.sh