[LLVMdev] questions about getAnalysisUsage

songlh songlh at cs.wisc.edu
Mon Sep 29 14:51:36 PDT 2014


Hi,

   I notice that there are several different methods called inside 
getAnalysisUsage(). The parameters of addRequiredID and addPreservedID 
are passID. What is the difference between Required and Preserved? There 
are also function named addRequired<PassName>() called. What is the 
difference between addRequired<PassName>() and addRequiredID(PassID)?

   Thanks a lot!

   Best,

                                                           Linhai



More information about the llvm-dev mailing list