[Modules] Move the ConstantFolder into the IR library where it can
reference the ConstantExpr implementation.