TTobias Hieta[MSVC] work-around for compile time issue 102513
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
[Clang][Interp] __builtin_os_log_format_buffer_size should be an unevaluated builtin (#99895) Follow the current behavior of constant evaluator, __builtin_os_log_format_buffer_size should be an unevaluated builtin. The following code is well-formed: void test_builtin_os_log(void *buf, int i, const char *data) { constexpr int len = __builtin_os_log_format_buffer_size("%d %{public}s %{private}.16P", i, data, data); } Signed-off-by: yronglin <yronglin777@gmail.com> | 1 年前 | |
[clang][Interp] Redo variable (re)visiting Depending on the circumstances we visit variables in, we need to be careful about when to destroy their temporaries and whether to emit a Ret op at all or not. | 1 年前 | |
[Clang][Interp] Diagnose use sizeless vector type as the argument of __builtin_vectorelements (#99794) This PR implement an opcode to diagnose use sizeless vector type as the argument of __builtin_vectorelements. --------- Signed-off-by: yronglin <yronglin777@gmail.com> | 1 年前 | |
[clang][Interp] Control InitStack activity state in visitInitList This doesn't change anything about the current tests, but helps once those tests change because of #97308 | 1 年前 | |
[clang][Interp] Ignore incomplete records when visiting lambdas We need them to be complete so we have knowledge about all the lambda captures. | 1 年前 | |
[clang][Interp] Allow reading mutable members if they were created... ... in this evaluation. | 1 年前 | |
[clang][Interp] Calculate APValue offsets for base classes | 1 年前 | |
[clang][Interp] Calculate APValue offsets for base classes | 1 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
Reapply "[clang][Interp] Implement dynamic memory allocation handling (#70306)" This reverts commit 48d703e7f56282ce5d690e45a129a4a7fd040ee6. | 1 年前 | |
Reapply "[clang][Interp] Implement dynamic memory allocation handling (#70306)" This reverts commit 48d703e7f56282ce5d690e45a129a4a7fd040ee6. | 1 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
[clang][Interp] Redo variable (re)visiting Depending on the circumstances we visit variables in, we need to be careful about when to destroy their temporaries and whether to emit a Ret op at all or not. | 1 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
Reapply "[clang][Interp] Implement dynamic memory allocation handling (#70306)" This reverts commit 48d703e7f56282ce5d690e45a129a4a7fd040ee6. | 1 年前 | |
Re-apply "[clang][Interp] Support floating-point values" Don't move the Repr struct into Integral this time. Differential Revision: https://reviews.llvm.org/D134859 | 3 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
[Clang Interpreter] Initial patch for the constexpr interpreter Summary: This patch introduces the skeleton of the constexpr interpreter, capable of evaluating a simple constexpr functions consisting of if statements. The interpreter is described in more detail in the RFC. Further patches will add more features. Reviewers: Bigcheese, jfb, rsmith Subscribers: bruno, uenoku, ldionne, Tyker, thegameg, tschuett, dexonsmith, mgorny, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64146 llvm-svn: 371834 | 6 年前 | |
[clang][ExprConst] Use call source range for 'in call to' diags Differential Revision: https://reviews.llvm.org/D156604 | 2 年前 | |
[clang][Interp][NFC] Return a valid SourceInfo for Function PCs We already assert that the given PC is in range and that the function has a body, so the SrcMap should generally never be empty. However, when generating destructors, we create quite a few instructions for which we have no source information, which may cause the previous assertion to fail. Return the end of the source map in this case. | 2 年前 | |
[clang][Interp] Fix calling lambdas with explicit instance pointers... ...via a function pointer. | 2 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
[MSVC] work-around for compile time issue 102513 Manual cherry-pick of #110986 to the LLVM 19 release branch. | 1 年前 | |
[ExprConstant] Handle shift overflow the same way as other kinds of overflow (#99579) We have a mechanism to allow folding expressions that aren't ICEs as an extension; use it more consistently. This ends up causing bad effects on diagnostics in a few cases, but that's not specific to shifts; it's a general issue with the way those uses handle overflow diagnostics. (cherry picked from commit 20eff684203287828d6722fc860b9d3621429542) | 1 年前 | |
[clang][Interp][NFC] Be more cautious about Block initialization state ... when moving a Block to a DeadBlock. Only invoke the MoveFn if the old block was initialized at all. | 1 年前 | |
Reapply "[clang][Interp] Implement dynamic memory allocation handling (#70306)" This reverts commit 48d703e7f56282ce5d690e45a129a4a7fd040ee6. | 1 年前 | |
[clang][Interp] Fix classifying __builtin_addressof() argument It's an lvalue, so we need to use the classify() taking an expression. | 1 年前 | |
[clang][Interp][NFC] Assert initialization state in invoke{C,D}tor | 1 年前 | |
[clang][Interp][NFC] Apply some clang-tidy suggestions Remove unused includes and don't use an else after a return. | 1 年前 | |
[clang][Interp] Implement nullability argument checking Implement constexpr checking for null pointers being passed to arguments annotated as nonnull. | 2 年前 | |
[clang][Interp] Implement nullability argument checking Implement constexpr checking for null pointers being passed to arguments annotated as nonnull. | 2 年前 | |
[clang][Interp] Member Pointers (#91303) This adds a MemberPointer class along with a PT_MemberPtr primitive type. A MemberPointer has a Pointer Base as well as a Decl* (could be ValueDecl*?) decl it points to. For the actual logic, this mainly changes the way we handle PtrMemOps in VisitBinaryOperator. | 2 年前 | |
[clang][Interp][NFC] Fix a user-after-move Reported by a static analyzer. | 1 年前 | |
[clang][Interp][NFC] Be more cautious about Block initialization state ... when moving a Block to a DeadBlock. Only invoke the MoveFn if the old block was initialized at all. | 1 年前 | |
Reapply "[clang][Interp] Implement dynamic memory allocation handling (#70306)" This reverts commit 48d703e7f56282ce5d690e45a129a4a7fd040ee6. | 1 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
[clang][Interp] Pass ASTContext to toAPValue() Not yet needed, but we need to ASTContext in a later patch when we start computing proper values for the APValue offset. | 1 年前 | |
[Clang Interpreter] Initial patch for the constexpr interpreter Summary: This patch introduces the skeleton of the constexpr interpreter, capable of evaluating a simple constexpr functions consisting of if statements. The interpreter is described in more detail in the RFC. Further patches will add more features. Reviewers: Bigcheese, jfb, rsmith Subscribers: bruno, uenoku, ldionne, Tyker, thegameg, tschuett, dexonsmith, mgorny, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64146 llvm-svn: 371834 | 6 年前 | |
[Clang][Interp] Diagnose use sizeless vector type as the argument of __builtin_vectorelements (#99794) This PR implement an opcode to diagnose use sizeless vector type as the argument of __builtin_vectorelements. --------- Signed-off-by: yronglin <yronglin777@gmail.com> | 1 年前 | |
[clang][Interp] Calculate APValue offsets for base classes | 1 年前 | |
[clang][Interp] Calculate APValue offsets for base classes | 1 年前 | |
[clang][Interp] Member Pointers (#91303) This adds a MemberPointer class along with a PT_MemberPtr primitive type. A MemberPointer has a Pointer Base as well as a Decl* (could be ValueDecl*?) decl it points to. For the actual logic, this mainly changes the way we handle PtrMemOps in VisitBinaryOperator. | 2 年前 | |
[clang][Interp] Member Pointers (#91303) This adds a MemberPointer class along with a PT_MemberPtr primitive type. A MemberPointer has a Pointer Base as well as a Decl* (could be ValueDecl*?) decl it points to. For the actual logic, this mainly changes the way we handle PtrMemOps in VisitBinaryOperator. | 2 年前 | |
Re-apply "[clang][Interp] Support floating-point values" Don't move the Repr struct into Integral this time. Differential Revision: https://reviews.llvm.org/D134859 | 3 年前 | |
[clang][Interp][NFC] Simplify record creation Try to keep the indentation width lower here. | 1 年前 | |
[clang][Interp][NFC] Provide Program accessor for global temporaries Just like the one we have taking a ValueDecl*, provide a getGlobal() version taking an expression. | 1 年前 | |
[Interp] Record::getBase - merge isRecordType/getAs<RecordType>() checks. NFC. Noticed because static analyzer doesn't understand that isRecordType is just a wrapper to isa<> and was warning about a potential null dereference | 1 年前 | |
[clang][Interp][NFC] Save IsUnion bit for Records Now that we call this more often, try to keep pointer chasing to a minimum. | 2 年前 | |
[clang][Interp][NFC] Make a local variable const | 2 年前 | |
[llvm] Drop unaligned from calls to llvm::support::endian::{read,write} (NFC) The last template parameter of llvm::support::endian::{read,write} defaults to unaligned, so we can drop that at call sites. | 2 年前 | |
[clang][Interp] Don't add 'in call to' diagnostics for builtin frames | 2 年前 | |
[Interp] Modernize State (NFC) | 2 年前 |