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

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 22:17:58 PST 2025


================
@@ -213,6 +214,11 @@ class CounterExpressionBuilder {
   /// Return a counter that represents the expression that subtracts RHS from
   /// LHS.
   Counter subtract(Counter LHS, Counter RHS, bool Simplify = true);
+
+  using SubstMap = std::map<Counter, Counter>;
----------------
chapuni wrote:

This is just for convenience for the object to be accepted by the method. (I remember someone requested it to use DenseMap)

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


More information about the llvm-commits mailing list