[CMake] Move intrinsics_gen to lib/Target out of add_public_tablegen_target.

add_public_tablegen_target is used somewhere.