llvm-project/llvm/lib/CodeGen/GlobalISel
Konstantin Zhuravlyov bb80d3e1d3 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
..
CMakeLists.txt Prune trailing whitespace. (To regenerate makefiles) 2017-05-28 22:54:25 +00:00
CallLowering.cpp [IR] Abstract away ArgNo+1 attribute indexing as much as possible 2017-05-03 18:17:31 +00:00
GlobalISel.cpp [GlobalISel] Add a localizer pass for target to use 2017-05-27 01:34:00 +00:00
IRTranslator.cpp Enhance synchscope representation 2017-07-11 22:23:00 +00:00
InstructionSelect.cpp ARM: Compute MaxCallFrame size early 2017-05-05 22:04:05 +00:00
InstructionSelector.cpp [globalisel][tablegen] Finish fixing compile-time regressions by merging the matcher and emitter state machines. 2017-07-05 14:50:18 +00:00
LLVMBuild.txt Revert "Get GlobalISel to build on Linux after r286407" 2016-11-16 22:24:59 +00:00
Legalizer.cpp GlobalISel: remove G_SEQUENCE instruction. 2017-06-23 16:15:55 +00:00
LegalizerHelper.cpp [ARM] GlobalISel: Legalize G_FCMP for s32 2017-07-06 09:09:33 +00:00
LegalizerInfo.cpp GlobalISel: add G_IMPLICIT_DEF instruction. 2017-06-30 20:27:36 +00:00
Localizer.cpp [Localizer] Don't trick to be smart for the insertion point 2017-05-30 20:53:06 +00:00
MachineIRBuilder.cpp [MachineIRBuilder] Fix formatting. NFC. 2017-07-05 11:47:23 +00:00
RegBankSelect.cpp GlobalISel: verify that a COPY is trivial when created. 2017-06-27 21:41:40 +00:00
RegisterBank.cpp Move size and alignment information of regclass to TargetRegisterInfo 2017-04-24 18:55:33 +00:00
RegisterBankInfo.cpp [RegisterBankInfo] Uniquely allocate instruction mapping. 2017-05-05 22:48:22 +00:00
Utils.cpp [globalisel][tablegen] Add support for COPY_TO_REGCLASS. 2017-06-20 12:36:34 +00:00