llvm-project/llvm/lib/Bitcode/Reader
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
..
BitReader.cpp Add explicit (void) cast to unused unique_ptr::release() results 2016-11-14 07:26:17 +00:00
BitcodeReader.cpp Enhance synchscope representation 2017-07-11 22:23:00 +00:00
BitstreamReader.cpp Change BitstreamCursor::skipRecord to return the record code (NFC) 2017-01-04 22:54:14 +00:00
CMakeLists.txt Refactor BitcodeReader: move Metadata and ValueId handling in their own class/file 2016-12-12 19:34:26 +00:00
LLVMBuild.txt
MetadataLoader.cpp Align definition of DW_OP_plus with DWARF spec [3/3] 2017-06-14 13:14:38 +00:00
MetadataLoader.h PR32382: Fix emitting complex DWARF expressions. 2017-04-18 01:21:53 +00:00
ValueList.cpp [IR] De-virtualize ~Value to save a vptr 2017-05-18 17:24:10 +00:00
ValueList.h Rename WeakVH to WeakTrackingVH; NFC 2017-05-01 17:07:49 +00:00