I’m Yaduveer, trying to do Loop-Unrolling with a modified algorithm which can run on multicore processor. We expect loop unroll factor equal to number of cores available. I want to modify the LoopUnroll Pass so I tried to make a sample pass [http://llvm.org/docs/WritingAnLLVMPass.html#id6] using the existing LoopUnrollPass. I tried running that but could not register the new pass as it resembled with original pass.
Here’s the output when I tried to compile and register the pass.
Can somebody help me how to register this pass and make any more changes?