Skip to content
Snippets Groups Projects
  1. Jun 20, 2016
  2. Jun 15, 2016
  3. Jun 09, 2016
  4. May 31, 2016
    • Manman Ren's avatar
      PCH + module: make sure we write out macros associated with builtin identifiers. · f8601b27
      Manman Ren authored
      When we import a module that defines a builtin identifier from prefix header and
      precompile the prefix header, the macro information related to the identifier
      is lost.
      
      If we don't precompile the prefix header, the source file can still see the
      macro information. The reason is that we write out the identifier in the pch
      but not the macro information since the macro is not defined locally.
      
      This is related to r251565. In that commit, if we read a builtin identifier from
      a module that wasn't "interesting" to that module, we will still write it out to
      a PCH that imports that module.
      
      The fix is to write exported module macros for PCH as well.
      
      rdar://24666630
      
      Differential Revision: http://reviews.llvm.org/D20383
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271310 91177308-0d34-0410-b5e6-96231b3b80d8
      f8601b27
  5. May 26, 2016
  6. May 25, 2016
  7. May 18, 2016
  8. May 14, 2016
  9. May 13, 2016
  10. May 09, 2016
  11. May 07, 2016
  12. May 04, 2016
  13. Apr 29, 2016
  14. Apr 28, 2016
  15. Apr 27, 2016
  16. Apr 26, 2016
    • Samuel Antao's avatar
      [OpenMP] Improve mappable expressions Sema. · e53ba6d4
      Samuel Antao authored
      Summary:
      This patch adds logic to save the components of mappable expressions in the clause that uses it, so that they don't have to be recomputed during codegen. Given that the mappable components are (will be) used in several clauses a new geneneric implementation `OMPMappableExprListClause` is used that extends the existing `OMPVarListClause`.
      
      This patch does not add new tests. The goal is to preserve the existing functionality while storing more info in the clauses.
      
      Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev
      
      Subscribers: cfe-commits, caomhin
      
      Differential Revision: http://reviews.llvm.org/D19382
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267560 91177308-0d34-0410-b5e6-96231b3b80d8
      e53ba6d4
  17. Apr 18, 2016
  18. Apr 15, 2016
  19. Apr 14, 2016
  20. Apr 13, 2016
  21. Apr 08, 2016
    • Richard Smith's avatar
      Remove unused functions from ASTWriter interface. · 3cf63497
      Richard Smith authored
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265857 91177308-0d34-0410-b5e6-96231b3b80d8
      3cf63497
    • Richard Smith's avatar
      PR25501: Delay loading visible updates for a declaration until after we've · 7bcddb41
      Richard Smith authored
      processed update records. If an update record adds a definition, we need to
      merge that with any pre-existing definition to determine which the canonical
      definition is before we apply the visible update, otherwise we wouldn't know
      where to apply it.
      
      Thanks to Vassil Vassilev for help reducing this and tracking down the problem.
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265848 91177308-0d34-0410-b5e6-96231b3b80d8
      7bcddb41
    • Alexey Bader's avatar
      [OpenCL] Complete image types support. · aa8b893c
      Alexey Bader authored
      I. Current implementation of images is not conformant to spec in the following points:
        1. It makes no distinction with respect to access qualifiers and therefore allows to use images with different access type interchangeably. The following code would compile just fine:
      
              void write_image(write_only image2d_t img);
              kernel void foo(read_only image2d_t img) { write_image(img); } // Accepted code
      
           which is disallowed according to s6.13.14.
      
        2. It discards access qualifier on generated code, which leads to generated code for the above example:
      
              call void @write_image(%opencl.image2d_t* %img);
      
           In OpenCL2.0 however we can have different calls into write_image with read_only and wite_only images.
           Also generally following compiler steps have no easy way to take different path depending on the image access: linking to the right implementation of image types, performing IR opts and backend codegen differently.
      
        3. Image types are language keywords and can't be redeclared s6.1.9, which can happen currently as they are just typedef names.
        4. Default access qualifier read_only is to be added if not provided explicitly.
      
      II. This patch corrects the above points as follows:
        1. All images are encapsulated into a separate .def file that is inserted in different points where image handling is required. This avoid a lot of code repetition as all images are handled the same way in the code with no distinction of their exact type.
        2. The Cartesian product of image types and image access qualifiers is added to the builtin types. This simplifies a lot handling of access type mismatch as no operations are allowed by default on distinct Builtin types. Also spec intended access qualifier as special type qualifier that are combined with an image type to form a distinct type (see statement above - images can't be created w/o access qualifiers).
        3. Improves testing of images in Clang.
      
      Author: Anastasia Stulova
      Reviewers: bader, mgrang.
      Subscribers: pxli168, pekka.jaaskelainen, yaxunl.
      Differential Revision: http://reviews.llvm.org/D17821
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265783 91177308-0d34-0410-b5e6-96231b3b80d8
      aa8b893c
  22. Apr 07, 2016
  23. Apr 06, 2016
Loading