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

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


================
@@ -1998,6 +1997,286 @@ DIExpression::constantFold(const ConstantInt *CI) {
           ConstantInt::get(getContext(), NewInt)};
 }
 
+static bool isConstOperation(uint64_t Op) {
----------------
adrian-prantl wrote:

This is a confusing function name: isConstant().

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


More information about the llvm-commits mailing list