[polly] Avoid llvm::Type::getPointerTo() (NFC) (#112368)

`llvm::Type::getPointerTo()` is to be deprecated & removed soon.

Also, avoid pointercasts that are essentially no-ops.

GitOrigin-RevId: 467a9bde06e681cecc69afa18580aadf2ed9769b
3 files changed