1. Jan 04, 2017
    • Carlo Bertolli's avatar
      [OPENMP] Private, firstprivate, and lastprivate clauses for distribute, host code generation · 962bb807
      Carlo Bertolli authored
      https://reviews.llvm.org/D17840
      
      This patch enables private, firstprivate, and lastprivate clauses for the OpenMP distribute directive.
      Regression tests differ from the similar case of the same clauses on the for directive, by removing a reference to two global variables g and g1. This is necessary because: 1. a distribute pragma is only allowed inside a target region; 2. referring a global variable (e.g. g and g1) in a target region requires the program to enclose the variable in a "declare target" region; 3. declare target pragmas, which are used to define a declare target region, are currently unavailable in clang (patch being prepared).
      For this reason, I moved the global declarations into local variables.
      
      llvm-svn: 290898
      962bb807
    • Michal Gorny's avatar
      [ADT] APFloatBase: Prevent collapsing semPPCDoubleDouble and semBogus · 21c12044
      Michal Gorny authored
      Provide a distinct contents for semBogus and semPPCDoubleDouble in order
      to prevent compilers from collapsing them to a single memory address,
      while we heavily rely on every semantic having distinct address.
      
      This happens if insecure optimization collapsing identical values is
      enabled. As a result, APFloats of semBogus are indistinguishable from
      semPPCDoubleDouble -- and whenever the move constructor is used, the old
      value beings being incorrectly recognized as a semPPCDoubleDouble.
      
      Since the values in semPPCDoubleDouble are not used anywhere,
      we can easily solve this issue via altering the value of one of the
      fields and therefore ensuring that the collapse can not occur.
      
      Differential Revision: https://reviews.llvm.org/D28112
      
      llvm-svn: 290896
      21c12044
    • Tamas Berghammer's avatar
      Improve the performance of jModulesInfo in lldb-server · a6f5795a
      Tamas Berghammer authored
      Previously it parsed /proc/<pid>/maps for every module separately
      resulting in a very slow response time. This CL add some caching and
      optimizes the implementation to improve the code from O(n*m) to O(n+m)
      where n is the number of modules requested and m is the number of
      files mapped into memory.
      
      Differential revision: https://reviews.llvm.org/D28233
      
      llvm-svn: 290895
      a6f5795a
  2. Jan 03, 2017