[PATCH] D64015: [WIP][CUDA] Use shared MangleContext for CUDA and CXX CG

2019-07-02 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin resigned from this revision. aheejin added a comment. Sorry, I don't think I know enough about this code to review this. Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64015/new/ https://reviews.llvm.org/D64015 __

[PATCH] D64015: [WIP][CUDA] Use shared MangleContext for CUDA and CXX CG

2019-07-02 Thread Philip Salzmann via Phabricator via cfe-commits
psalz updated this revision to Diff 207488. psalz added a comment. Move ownership of shared `MangleContext`s to `ASTContext`, return references from `getSharedMangleContext`. Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64015/new/ https://reviews.llvm.org/D6401

[PATCH] D64015: [WIP][CUDA] Use shared MangleContext for CUDA and CXX CG

2019-07-01 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. I don't know of any problems that the shared mangle context would cause, though I'm not sure about using the shared_ptr. It seems to me that SOMEONE should own this, and the other should use a reference. IMO, the SharedMangleContexts should be a unique_ptr and CGCXX

[PATCH] D64015: [WIP][CUDA] Use shared MangleContext for CUDA and CXX CG

2019-07-01 Thread Philip Salzmann via Phabricator via cfe-commits
psalz created this revision. psalz added reviewers: hliao, tra, aheejin. Herald added a project: clang. Herald added a subscriber: cfe-commits. NOTE: This is a work in progress and mainly intended to highlight the issue - i.e., I'm not certain the provided solution is appropriate. Given this CUD