34 bool runOnFunction(
Function &
F)
override {
37 if (!AI->hasName() && !AI->getType()->isVoidTy())
45 if (!
I.hasName() && !
I.getType()->isVoidTy())
56 "Assign names to anonymous instructions",
false,
false)
63 return new InstNamer();
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
LLVM Basic Block Representation.
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
Iterator for intrusive lists based on ilist_node.
void setPreservesAll()
Set by analyses that do not transform their input at all.
void initializeInstNamerPass(PassRegistry &)
char & InstructionNamerID
FunctionPass * createInstructionNamerPass()