mikael accepted this revision.
mikael added a comment.
This revision is now accepted and ready to land.
The changes looks good to me.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56509/new/
https://reviews.llvm.org/D56509
_
mikael marked an inline comment as done.
mikael added inline comments.
Comment at: lib/Sema/SemaInit.cpp:4539
+ if (InitCategory.isPRValue() || InitCategory.isXValue())
+T1Quals.removeAddressSpace();
+
This is probably not the correct way to solve this. But
mikael created this revision.
mikael added reviewers: Anastasia, rjmccall.
Herald added subscribers: cfe-commits, yaxunl.
- Implicity and explicity defaulted class members
- Resolved the FIXMEs in addrspace-of-this.cl
Repository:
rC Clang
https://reviews.llvm.org/D55656
Files:
include/clan
mikael added a comment.
Seems like my this commit broke:
http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/33176
But since I don't really know what anything about lldb, I probably won't be
able to fix it fast enough.
/lldb-buildbot/buildServerSlave/lldb-android-b
This revision was automatically updated to reflect the committed changes.
Closed by commit rC348927: [OpenCL] Add generic AS to 'this' pointer
(authored by mikael, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D54862?vs=177477&id=177846#toc
Repository:
rC Clang
CHANGES S
mikael marked an inline comment as done.
mikael added inline comments.
Comment at: lib/Sema/SemaType.cpp:5169
+TypeSourceInfo *Sema::GetTypeForDeclarator(Declarator &D, Scope *S,
+ const DeclContext *DC) {
// Determine the type of the
mikael marked an inline comment as done.
mikael added inline comments.
Comment at: test/SemaOpenCLCXX/address-space-templates.cl:7
T f1(); // expected-error{{function type may not be qualified with an
address space}}
- void f2(T); // expected-error{{parameter may not be
mikael marked 4 inline comments as done.
mikael added inline comments.
Comment at: lib/Sema/SemaDecl.cpp:3196
+
+QualType AdjustedQT = QualType(AdjustedType, 0);
+LangAS AS = Old->getType().getAddressSpace();
When merging the class function and the file c
mikael added a comment.
I rebased on Friday, and noticed that I broke two tests:
Failing Tests (2):
Clang :: CodeGenOpenCLCXX/template-address-spaces.cl
Clang :: SemaOpenCLCXX/address-space-templates.cl
This upload contains a few extra fixes.
CHANGES SINCE LAST ACTION
https://reviews.ll
mikael updated this revision to Diff 177477.
mikael marked an inline comment as not done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54862/new/
https://reviews.llvm.org/D54862
Files:
include/clang/AST/CanonicalType.h
include/clang/AST/DeclCXX.h
include/clang/AST/Type.h
include
mikael marked an inline comment as done and an inline comment as not done.
mikael added inline comments.
Comment at: lib/AST/Type.cpp:2950
+ FunctionTypeBits.HasExtQuals = 0;
+ }
}
mikael wrote:
> rjmccall wrote:
> > The indentation here is messed up.
> >
>
mikael updated this revision to Diff 176943.
mikael added a comment.
- Added FIXME's.
- Fixed the latest comments.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54862/new/
https://reviews.llvm.org/D54862
Files:
include/clang/AST/CanonicalType.h
include/clang/AST/DeclCXX.h
include
mikael marked 3 inline comments as done.
mikael added inline comments.
Comment at: lib/AST/Type.cpp:2950
+ FunctionTypeBits.HasExtQuals = 0;
+ }
}
rjmccall wrote:
> The indentation here is messed up.
>
> You seem to be mixing up "fast qualifiers" with "CVR q
mikael marked an inline comment as done.
mikael added inline comments.
Comment at: lib/AST/ItaniumMangle.cpp:1507
+Qualifiers MethodQuals = Qualifiers::fromCVRUMask(
+Method->getTypeQualifiers().getCVRUQualifiers());
// We do not consider restrict a distinguishin
mikael updated this revision to Diff 176831.
mikael added a comment.
I uploaded a new patch for most of the comments. I did leave some things out
since they need clarification.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54862/new/
https://reviews.llvm.org/D54862
Files:
include/cl
mikael marked an inline comment as done and an inline comment as not done.
mikael added a comment.
Thanks for the feedback, I'll work on fixing the issues!
Comment at: lib/Sema/SemaOverload.cpp:1146
+unsigned OldQuals = OldMethod->getTypeQualifiers().getCVRUQualifiers();
+
mikael marked an inline comment as done.
mikael added inline comments.
Comment at: lib/Sema/SemaType.cpp:4816
+// OpenCLCPlusPlus: A class member function has an address space.
+if (state.getSema().getLangOpts().OpenCLCPlusPlus &&
+state.getDeclarator(
mikael updated this revision to Diff 176596.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54862/new/
https://reviews.llvm.org/D54862
Files:
include/clang/AST/CanonicalType.h
include/clang/AST/DeclCXX.h
include/clang/AST/Type.h
lib/AST/ASTContext.cpp
lib/AST/ASTDumper.cpp
lib
mikael marked an inline comment as done.
mikael added inline comments.
Comment at: lib/Sema/SemaOverload.cpp:5254
+ if (!Context.hasSameType(From->getType(), DestType)) {
+if (From->getType().getAddressSpace() != DestType.getAddressSpace())
+ From = ImpCastExprToType(Fr
mikael updated this revision to Diff 176063.
Herald added subscribers: arphaman, eraman.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54862/new/
https://reviews.llvm.org/D54862
Files:
include/clang/AST/DeclCXX.h
include/clang/AST/Type.h
lib/AST/DeclCXX.cpp
lib/AST/ItaniumMangle.
mikael updated this revision to Diff 175646.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54862/new/
https://reviews.llvm.org/D54862
Files:
lib/AST/DeclCXX.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGClass.cpp
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CGExprCXX.cpp
lib/Sema/SemaTyp
mikael marked an inline comment as done.
mikael added inline comments.
Comment at: lib/CodeGen/CGCall.cpp:4035
+ V = Builder.CreatePointerBitCastOrAddrSpaceCast(V, DestTy);
+}
rjmccall wrote:
> Always use the `performAddrSpaceConversion` target
mikael created this revision.
mikael added a reviewer: Anastasia.
Herald added subscribers: cfe-commits, yaxunl.
Address spaces are cast into generic before invoking the constructor.
Repository:
rC Clang
https://reviews.llvm.org/D54862
Files:
lib/AST/DeclCXX.cpp
lib/CodeGen/CGCall.cpp
23 matches
Mail list logo