I am performing an optimization in llvm that requires the InstNamer pass to be run before my optimization. Currently, I am running it by manually passing "-instnamer" to opt. Is there a way I can add InstNamer as a required pass in the code?
I tried doing AU.addRequired();
But that doesn't compile as it throws "undeclared identifier 'InstNamer'".
Is there a way I can do this?