1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/CodeGen
Konstantin Zhuravlyov d382d6f3fc Enhance synchscope representation
OpenCL 2.0 introduces the notion of memory scopes in atomic operations to
  global and local memory. These scopes restrict how synchronization is
  achieved, which can result in improved performance.

  This change extends existing notion of synchronization scopes in LLVM to
  support arbitrary scopes expressed as target-specific strings, in addition to
  the already defined scopes (single thread, system).

  The LLVM IR and MIR syntax for expressing synchronization scopes has changed
  to use *syncscope("<scope>")*, where <scope> can be "singlethread" (this
  replaces *singlethread* keyword), or a target-specific name. As before, if
  the scope is not specified, it defaults to CrossThread/System scope.

  Implementation details:
    - Mapping from synchronization scope name/string to synchronization scope id
      is stored in LLVM context;
    - CrossThread/System and SingleThread scopes are pre-defined to efficiently
      check for known scopes without comparing strings;
    - Synchronization scope names are stored in SYNC_SCOPE_NAMES_BLOCK in
      the bitcode.

Differential Revision: https://reviews.llvm.org/D21723

llvm-svn: 307722
2017-07-11 22:23:00 +00:00
..
AArch64 Enhance synchscope representation 2017-07-11 22:23:00 +00:00
AMDGPU Enhance synchscope representation 2017-07-11 22:23:00 +00:00
ARM Enhance synchscope representation 2017-07-11 22:23:00 +00:00
AVR [AVR] Use the generic branch relaxer 2017-07-11 04:17:13 +00:00
BPF Rewrite areNonVolatileConsecutiveLoads to use BaseIndexOffset 2017-07-05 01:21:23 +00:00
Generic Handle ConstantExpr correctly in SelectionDAGBuilder 2017-07-09 16:01:04 +00:00
Hexagon [Hexagon] Do not rely on callee-saved info in hasFP 2017-07-11 17:11:54 +00:00
Inputs
Lanai
Mips Revert "[DAG] Improve Aliasing of operations to static alloca" 2017-07-10 20:51:30 +00:00
MIR Enhance synchscope representation 2017-07-11 22:23:00 +00:00
MSP430 Revert "[DAG] Improve Aliasing of operations to static alloca" 2017-07-10 20:51:30 +00:00
Nios2
NVPTX Extend memcpy expansion in Transform/Utils to handle wider operand types. 2017-07-07 02:00:06 +00:00
PowerPC Enhance synchscope representation 2017-07-11 22:23:00 +00:00
SPARC [Solaris] emit .init_array instead of .ctors on Solaris (Sparc/x86) 2017-06-21 20:36:32 +00:00
SystemZ [RegAllocFast] Don't insert kill flags of super-register for partial kill 2017-07-07 19:25:45 +00:00
Thumb [NFC] Use stdin for some tests instead of positional argument. 2017-06-29 14:51:54 +00:00
Thumb2 [ARM] Improve if-conversion for M-class CPUs without branch predictors 2017-06-28 14:11:15 +00:00
WebAssembly Fix libcall expansion creating DAG nodes with invalid type post type legalization. 2017-07-05 22:01:49 +00:00
WinEH
X86 [x86] auto-generate full checks; NFC 2017-07-11 22:04:36 +00:00
XCore Revert "[DAG] Improve Aliasing of operations to static alloca" 2017-07-10 20:51:30 +00:00