[Mlir-commits] [mlir] [llvm] [mlir] use TypeSize and uint64_t in DataLayout (PR #72874)

David Blaikie llvmlistbot at llvm.org
Mon Nov 20 11:17:06 PST 2023


================
@@ -244,6 +244,14 @@ template <typename LeafTy, typename ValueTy> class FixedOrScalableQuantity {
         isScalable());
   }
 
+  /// Returns a value X where the known coefficient will be rounded up to the
+  /// closest power-of-two, except for the zero coefficient that remains zero.
+  constexpr LeafTy coefficientPowerOf2Ceil() const {
----------------
dwblaikie wrote:

+1 (& if it is being added, probably add it separately with a unit test, then use it from MLIR 
 but, yeah, good to make sure there's a use for it first)

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


More information about the Mlir-commits mailing list