This patch allows code gen to use APValue Results from ConstantExprs.
There are some outstanding concerns I'll mark with inline comments.
This is the codegen "sister patch" of: https://reviews.llvm.org/D76438
Paths
| Differential D76443
Use ConstantExpr cached APValues if present for code generation AbandonedPublic Authored by wchilders on Mar 19 2020, 12:15 PM.
Details Summary This patch allows code gen to use APValue Results from ConstantExprs. There are some outstanding concerns I'll mark with inline comments. This is the codegen "sister patch" of: https://reviews.llvm.org/D76438
Diff Detail Event Timeline
Comment Actions Updated to remove duplicated (and out dated) APValue generation logic, and fixed formatting issues. (Thanks for pointing out something was awry Tyker)
Revision Contents
Diff 252610 clang/include/clang/AST/Expr.h
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprAgg.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CGStmt.cpp
|
This one is a bit weird, I think the comment explains it well, but I feel there should be a better way to handle this or if there are similar issues lurking elsewhere.