profile directed pass with 'extern' profile data

Hi,

is there a pass for profile-directed optimization or transformation, which doesn't use ProfileInfo- and ProfileLoader-class?
Perhaps in a project based on LLVM that uses profile data generated 'outside' of the standard LLVM-chain shown in 'profile.pl'?

Is there an example for such a pass I've slipped?

Kind regards,
Nico