how to use the profile-guided optimization of LLVM?

hello,everyone
recently, I analyze the compiler optimization level, so I have searched the usage of profile-guided optimization of LLVM, but little result in google, therefore, could you please list detailed usage of profile-guided optimization? LLVM must be install with flags ‘–enable-profile’? A example will be pleasure.
thanks

von