[llvm] Introduce CounterExpressionBuilder::replace(C, Map) (PR #112698)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 18 02:10:59 PDT 2024


================
@@ -135,6 +135,38 @@ Counter CounterExpressionBuilder::subtract(Counter LHS, Counter RHS,
   return Simplify ? simplify(Cnt) : Cnt;
 }
 
+Counter CounterExpressionBuilder::replace(Counter C, const ReplaceMap &Map) {
----------------
chapuni wrote:

I thought its name may be simple here, since it is declared in the class.

"This replaces each term (or possibly recognizable expression) with an existing **expression**."

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


More information about the llvm-commits mailing list