[llvm] Introduce DIExpression::foldConstantMath() (PR #71718)

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 17:55:12 PST 2023


================
@@ -3045,7 +3045,10 @@ class DIExpression : public MDNode {
   std::pair<DIExpression *, const ConstantInt *>
   constantFold(const ConstantInt *CI);
 
-  DIExpression *constantFold();
+  /// Try to shorten an expression with constand math operations that can be
+  /// evaulated at compile time. Returns a new expression on success, or the old
----------------
adrian-prantl wrote:

typo

https://github.com/llvm/llvm-project/pull/71718


More information about the llvm-commits mailing list