[llvm] Introduce DIExpression::foldConstantMath() (PR #71718)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 08:56:28 PDT 2024
================
@@ -3064,6 +3064,11 @@ class DIExpression : public MDNode {
/// expression and constant on failure.
std::pair<DIExpression *, const ConstantInt *>
constantFold(const ConstantInt *CI);
+
+ /// Try to shorten an expression with constant math operations that can be
+ /// evaulated at compile time. Returns a new expression on success, or the old
----------------
adrian-prantl wrote:
evaluated
https://github.com/llvm/llvm-project/pull/71718
More information about the llvm-commits
mailing list