tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146030/new/
https://reviews.llvm.org/D146030
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.h:182-183
+ template
+ bool visitConditional(const AbstractConditionalOperator *E, VisitFn V);
+
erichkeane wrote:
> tbaeder wrote:
> > aaron.ballman wrote:
> > > The template de
tbaeder updated this revision to Diff 508619.
tbaeder marked an inline comment as done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146788/new/
https://reviews.llvm.org/D146788
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/test/AST/Interp/floats.cpp
Index: clang/test/AST/
tbaeder added a subscriber: cjdb.
tbaeder added a comment.
Pinging @cjdb and @aaron.ballman for some feedback on the wording
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146358/new/
https://reviews.llvm.org/D146358
___
cfe-commits mailing li
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeStmtGen.cpp:199-200
+bool ByteCodeStmtGen::visitUnscopedCompoundStmt(const Stmt *S) {
+ if (isa(S))
+return true;
+
aaron.ballman wrote:
> Errr, I'm surprised it isn't UB to call this wi
tbaeder updated this revision to Diff 509021.
tbaeder set the repository for this revision to rG LLVM Github Monorepo.
tbaeder added a comment.
Add support for integer complex types as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146408/new/
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1595
+return true;
+ } else if (const auto *CE = dyn_cast(Initializer)) {
+if (!this->emitDupPtr(Initializer))
aaron.ballman wrote:
> Member calls as well?
Yes, and some
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/PrimType.h:108
+switch (Expr) {
\
+ TYPE_SWITCH_CASE(PT_Sint8, B)
\
+ TYPE_SWITCH_CASE(PT_Uint8, B
tbaeder updated this revision to Diff 509223.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146408/new/
https://reviews.llvm.org/D146408
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/Context.cpp
clang/lib/AST/Interp/Ev
tbaeder updated this revision to Diff 509264.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145545/new/
https://reviews.llvm.org/D145545
Files:
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/lib/AST/Interp/ByteCodeStmtGen.h
Index: clang/lib/A
tbaeder marked 3 inline comments as done.
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeStmtGen.cpp:324-328
+ LocalScope Scope(this);
+ if (!this->visitUnscopedCompoundStmt(Body))
return false;
+
+ Scope.emitDestructors();
aaron.
tbaeder updated this revision to Diff 509279.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145545/new/
https://reviews.llvm.org/D145545
Files:
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/lib/AST/Interp/ByteCodeStmtGen.h
Index: clang/lib/A
tbaeder updated this revision to Diff 509281.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145545/new/
https://reviews.llvm.org/D145545
Files:
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/lib/AST/Interp/ByteCodeStmtGen.h
Index: clang/lib/A
tbaeder marked an inline comment as done.
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.h:338
+this->emitDestructors();
+this->Ctx->emitDestroy(*Idx, SourceInfo{});
+ }
aaron.ballman wrote:
> Should we be setting `Idx =
tbaeder added a comment.
Make sure to include context in the patch you upload:
https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146376/new/
https://reviews.llvm.org/D146
tbaeder added inline comments.
Comment at: clang/lib/Sema/SemaDeclCXX.cpp:16732
+// Ignore BO_LOr operators at the toplevel.
+if (Op->getOpcode() == BO_LOr)
+ return;
tbaeder wrote:
> You can just drop the comment and move this into the `if` statemen
tbaeder added inline comments.
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:3764-3767
if (!checkFunctionOrMethodParameterIndex(S, D, AL, 1, IdxExpr, Idx))
return;
-
+ if (Idx.getASTIndex() >= getFunctionOrMethodNumParams(D))
+return;
erichkeane wrote:
tbaeder updated this revision to Diff 509359.
tbaeder set the repository for this revision to rG LLVM Github Monorepo.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146408/new/
https://reviews.llvm.org/D146408
Files:
clang/lib/AST/Interp/ByteCodeE
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/PrimType.h:108
+switch (Expr) {
\
+ TYPE_SWITCH_CASE(PT_Sint8, B)
\
+ TYPE_SWITCH_CASE(PT_Uint8, B
tbaeder marked an inline comment as done.
tbaeder added a comment.
Thanks, I'll verify the patch once again with an msan build before I push, just
to be sure.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145545/new/
https://reviews.llvm.org/D145545
___
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/PrimType.h:108
+switch (Expr) {
\
+ TYPE_SWITCH_CASE(PT_Sint8, B)
\
+ TYPE_SWITCH_CASE(PT_Uint8, B
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144272/new/
https://reviews.llvm.org/D144272
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafi.ahmad.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This implements bitcasts by traversing the poi
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:92
+ // FIXME: Diagnostics.
+ if (*ToT == PT_Ptr)
+return false;
One of the problems here is that right now, //all// diagnostics are emitted
during interpretation time.
=
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140803/new/
https://reviews.llvm.org/D140803
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138802/new/
https://reviews.llvm.org/D138802
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138275/new/
https://reviews.llvm.org/D138275
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136751/new/
https://reviews.llvm.org/D136751
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaeder updated this revision to Diff 501380.
tbaeder marked 2 inline comments as done.
tbaeder added a comment.
Added the new test case.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136751/new/
https://reviews.llvm.org/D136751
Files:
clang/lib/AST/Interp/Function.h
clang/lib/AST/
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143480/new/
https://reviews.llvm.org/D143480
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143466/new/
https://reviews.llvm.org/D143466
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143334/new/
https://reviews.llvm.org/D143334
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142630/new/
https://reviews.llvm.org/D142630
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142617/new/
https://reviews.llvm.org/D142617
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1486
bool IsBeingCompiled = Func && !Func->isFullyCompiled();
- bool WasNotDefined = Func && !Func->hasBody();
+ bool WasNotDefined = Func && !Func->isConstexpr() && !Func->hasBody();
-
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141472/new/
https://reviews.llvm.org/D141472
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8d09bd616be8: [clang][Interp] This pointers are writable in
de-/constructors (authored by tbaeder).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136751/new/
tbaeder updated this revision to Diff 501502.
tbaeder added a comment.
Added an `aligned()` assertion and renamed the old `peek(unsigned Offset)`
returning a `void*` to `peekData()`, so both `peek` overloads are now public
member functions.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/
tbaeder updated this revision to Diff 501506.
tbaeder marked an inline comment as done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142630/new/
https://reviews.llvm.org/D142630
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/Context.cpp
clang/lib/AST/Interp/C
This revision was automatically updated to reflect the committed changes.
Closed by commit rG730eca6a3de8: [clang][Interp] Handle DecompositionDecls
(authored by tbaeder).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138802/new/
https://reviews.llv
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf18b71d14f7e: [clang][Interp] Implement remaining
MaterializeTemporaryExpr bits (authored by tbaeder).
Changed prior to commit:
https://reviews.ll
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbf6c1344ec18: [clang][Interp] Handle defined functions
without a body (authored by tbaeder).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LA
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbce8b3c18304: [clang][Interp] Implement C++ Range-for loops
(authored by tbaeder).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG569222e172e5: [clang][Interp] Only check constructors for
global variables (authored by tbaeder).
Changed prior to commit:
https://reviews.llvm.or
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6b5afda61c4a: [clang][Interp] Add ArrayElemPtr{,Pop} opcode
(authored by tbaeder).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG90d921fa1f71: [clang][Interp] Handle record initialization
via CastExpr (authored by tbaeder).
Changed prior to commit:
https://reviews.llvm.org/D
tbaeder added a comment.
All the interpreter work is experimental so it doesn't really need to be in the
release branch. This should all be fine, thanks for asking.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142328/new/
https://reviews.llvm.org
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG78e4237460bf: [clang][Interp] Support destructors (authored
by tbaeder).
Changed prior to commit:
https://reviews.llvm.org/D137070?vs=494660&id=50
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, tahonermann, erichkeane, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Ok, let me explain.
PREVIOUSLY:
When generating b
tbaeder marked an inline comment as done.
tbaeder added a comment.
The tests you proposed need https://reviews.llvm.org/D143480 first so we can
cast up more than one level.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143466/new/
https://reviews.
tbaeder updated this revision to Diff 504022.
tbaeder marked 2 inline comments as done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143480/new/
https://reviews.llvm.org/D143480
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/test/AST/I
tbaeder added inline comments.
Comment at: clang/test/AST/Interp/records.cpp:266
};
#endif
aaron.ballman wrote:
> I think it'd be good to add test coverage for cases like:
> https://godbolt.org/z/GnPnP4z76
That even worked :)
CHANGES SINCE LAST ACTION
ht
tbaeder abandoned this revision.
tbaeder added a comment.
Abandoning this since it's superseded by https://reviews.llvm.org/D144943
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141194/new/
https://reviews.llvm.org/D141194
tbaeder updated this revision to Diff 504079.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141497/new/
https://reviews.llvm.org/D141497
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/test/AST/Interp/records.cpp
Index: clang/test/AST/I
tbaeder added inline comments.
Comment at: clang/include/clang/Basic/ParsedAttrInfo.h:92
+ /// Check if this attribute has specified spelling.
+ bool hasSpelling(AttributeCommonInfo::Syntax Syntax, StringRef Name) {
+return llvm::any_of(Spellings, [&] (const Spelling &S) {
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141472/new/
https://reviews.llvm.org/D141472
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144164/new/
https://reviews.llvm.org/D144164
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144457/new/
https://reviews.llvm.org/D144457
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder updated this revision to Diff 504146.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143466/new/
https://reviews.llvm.org/D143466
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/Interp.cpp
clang/lib/AST/Interp/Record.cpp
clang/lib/AST/Interp/Record.h
tbaeder marked an inline comment as done.
tbaeder added inline comments.
Comment at: clang/test/AST/Interp/records.cpp:271
+ static_assert(d.B::a == 12);
+ static_assert(d.C::a == 0);
};
These lines are added by https://reviews.llvm.org/D143480 now, but the te
tbaeder added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:7673
+Info.FFDiag(Callee, diag::note_constexpr_null_callee)
+<< const_cast(Callee);
+return false;
Is the `const_cast` really necessary?
Repository:
rG LLVM
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://revi
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144943/new/
https://reviews.llvm.org/D144943
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder updated this revision to Diff 504406.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145841/new/
https://reviews.llvm.org/D145841
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/test/AST/Interp/cxx20.cpp
clang/test/AST/Interp/records.cpp
Index: clang/test/AST/Interp/
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://revi
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
They ar
tbaeder created this revision.
tbaeder added a reviewer: aaron.ballman.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
NFC but I thought I'd at least better ask.
Repository:
rG LLVM Github Monorepo
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeStmtGen.cpp:224
for (auto *D : DS->decls()) {
-if (isa(D))
+if (isa(D))
continue;
aaron.ballman wrote:
> What about other kinds of declarations, such as typedefs or function
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Unfortunately I couldn't find an existing test file
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6603c68302c1: [clang][sema][NFC] Make a few functions const
(authored by tbaeder).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145947/new/
https://reviews
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, shafik, hazohelet, cjdb.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152132/new/
https://reviews.llvm.org/D152132
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder added a comment.
Pign
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152504/new/
https://reviews.llvm.org/D152504
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Add a new `InvalidCast` op for this purpose and emi
tbaeder accepted this revision.
tbaeder added a comment.
This revision is now accepted and ready to land.
LGTM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152548/new/
https://reviews.llvm.org/D152548
___
cfe-commits mailing list
cfe-commits
tbaeder added a comment.
LGTM but let's wait for a second opinion.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153267/new/
https://reviews.llvm.org/D153267
___
cfe-commits mailing list
cfe-commits@list
tbaeder added a comment.
Can you post a before/after comparison of the exact output for that example?
Comment at: clang/lib/Sema/SemaOverload.cpp:10752
QualType ToTy = Conv.Bad.getToType();
+ ParmVarDecl *ToPVD = !isObjectArgument ? Fn->getParamDecl(I) : nullptr;
tbaeder updated this revision to Diff 533175.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152504/new/
https://reviews.llvm.org/D152504
Files:
clang/include/clang/Analysis/CFG.h
clang/lib/Analysis/CFG.cpp
clang/lib/Analysis/ThreadSafety.cpp
clang/test/Sema/warn-thread-safety-ana
tbaeder added a comment.
Added a new element for cleanup functions.
Comment at: clang/lib/Analysis/ThreadSafety.cpp:2436
+CF.getVarDecl()->getLocation());
+ break;
+}
This handles the function call, but witho
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/Interp.h:1854
+ S.FFDiag(Loc, diag::note_constexpr_invalid_cast)
+ << static_cast(Kind) << S.Current->getRange(OpPC);
+ return false;
aaron.ballman wrote:
> Should this be doing the cast? The
tbaeder updated this revision to Diff 533238.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153276/new/
https://reviews.llvm.org/D153276
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/Disasm.cpp
clang/lib/AST/Interp/Int
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153001/new/
https://reviews.llvm.org/D153001
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Move the logic for initialization of a lambda int
tbaeder added inline comments.
Comment at: clang/test/Lexer/unicode.c:30
-int _;
+int a;
Are these changes only for the case where we compile as c++? I know lots of C
(and c++?) projects use `_` as GNU gettext identifier to mark a translatable
strin
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
If the return type of a function is void, ReturnT
tbaeder updated this revision to Diff 534021.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153649/new/
https://reviews.llvm.org/D153649
Files:
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/test/AST/Interp/functions.cpp
Index: clang/test/AST/Interp/functions.cpp
==
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
visitLocalInitializer() pops the pointer from the
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Fixes a so far broken Lambda test case.
Repositor
tbaeder updated this revision to Diff 534174.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153653/new/
https://reviews.llvm.org/D153653
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/test/AST/Interp/records.cpp
Index: clang/test/AST/Interp/records.cpp
==
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
They might appear freestanding, not as part of an
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
We pass these as pointers, so we need to be caref
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144164/new/
https://reviews.llvm.org/D144164
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaeder created this revision.
tbaeder added reviewers: cjdb, aaron.ballman.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The first line of the code snippet we print is potentially lower than
the
tbaeder added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153241/new/
https://reviews.llvm.org/D153241
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tbaeder marked 2 inline comments as done.
tbaeder added inline comments.
Comment at: clang/test/Sema/warn-thread-safety-analysis.c:76-77
+void cleanup_int(int *unused) __attribute__((release_capability(mu1))) {
+ (void)unused;
+ mutex_exclusive_unlock(&mu1);
tbaeder updated this revision to Diff 534982.
tbaeder marked an inline comment as done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152504/new/
https://reviews.llvm.org/D152504
Files:
clang/include/clang/Analysis/CFG.h
clang/lib/Analysis/CFG.cpp
clang/lib/Analysis/ThreadSafety.cp
tbaeder added a comment.
Didn't remember and re-checked, using it that way makes the implementation
harder I think:
tsa2.c:7:54: error: incomplete definition of type 'struct Mutex'
7 | int counter GUARDED_BY(__builtin_instance_member(M)->M);
|
tbaeder added inline comments.
Comment at: clang/lib/Analysis/ThreadSafety.cpp:2436
+CF.getVarDecl()->getLocation());
+ break;
+}
aaronpuchert wrote:
> aaronpuchert wrote:
> > tbaeder wrote:
> > > This handles
tbaeder added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:2422
+ << BS.getType();
+ Info.Note(BS.getBeginLoc(),
diag::note_constexpr_base_inherited_here);
+ return false;
Can you pass `<< BS.getSourceRange()` here?
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1022
+
+if (DiscardResult)
+ return this->emitPopPtr(E);
shafik wrote:
> Could you just pass `DiscardResult` to `visitLocalInitializer`
Nope, the `visitInitializer` funct
1501 - 1600 of 2106 matches
Mail list logo