`llvm::Type::getPointerTo()` is to be deprecated & removed soon. Also, avoid pointercasts that are essentially no-ops.
Intrinsic::getDeclaration
getOrInsertDeclaration