Similarly to scf::ForOp, introduce additional function_ref arguments to
AffineForOp::build that can be used to populate the body of the loop during
its construction. Provide compatibility functions for constructing affine loop
nests using edsc::ScopedContext.
edsc::AffineLoopNestBuilder and reletad functionality is now deprecated and
will be removed soon, users are expected to switch to affineLoopNestBuilder
that provides similar functionality with a simpler OpBuilder-based
implementation.
Depends On D81753
You could use m_Constant(IntegerAttr*) or m_ConstantInt(APInt*) instead here.