Update the constantFold/fold API to use LogicalResult instead of bool.

PiperOrigin-RevId: 237719658
12 files changed