[PATCH] D40838: [OpenCL] Fix layering violation by getOpenCLTypeAddrSpace

Sven van Haastregt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 5 06:57:27 PST 2017


svenvh created this revision.
Herald added a subscriber: nhaehnle.

Commit 7ac28eb0a5 / r310911 ("[OpenCL] Allow targets to select address
space per type", 2017-08-15) made Basic depend on AST, introducing a
circular dependency.  Break this dependency by adding the
OpenCLTypeKind enum in Basic and map from AST types to this enum in
ASTContext.


https://reviews.llvm.org/D40838

Files:
  include/clang/AST/ASTContext.h
  include/clang/Basic/TargetInfo.h
  lib/AST/ASTContext.cpp
  lib/Basic/TargetInfo.cpp
  lib/Basic/Targets/AMDGPU.h
  lib/CodeGen/CGOpenCLRuntime.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40838.125521.patch
Type: text/x-patch
Size: 7432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171205/bed0130d/attachment-0001.bin>


More information about the cfe-commits mailing list