34 bool runOnFunction(
Function &
F)
override {
35 for (
auto &Arg : F.
args())
44 if (!
I.hasName() && !
I.getType()->isVoidTy())
55 "Assign names to anonymous instructions",
false,
false)
62 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)
void setPreservesAll()
Set by analyses that do not transform their input at all.
void initializeInstNamerPass(PassRegistry &)
char & InstructionNamerID
FunctionPass * createInstructionNamerPass()
iterator_range< arg_iterator > args()