ModuleOp
Use `moduleOp.getBody()` instead of `moduleOp.getBodyRegion().front()`.
getNum{Dynamic|Scalable}Dims
DeallocationOptions