LowerAtomic happens to be a BasicBlockPass but the scope on which it operates is actually a function.
In general, I don't think BasicBlockPasses should exist at all and can be replaced by FunctionPass(es) which iterate over the set of BasicBlocks. If this looks fine, I'll port the pass to the new PM.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I'm fine with this, but I don't actually think you should really aggressively port basic block passes. I'm fine if it accomplishes something specifically, but in many cases I'd just leave the old basic block pass in place and add a clean function pass for the new pass manager having them both call out to a helper function.
lib/Transforms/Scalar/LowerAtomic.cpp | ||
---|---|---|
124–126 | Please use clang-format and skip the braces here. |
Please use clang-format and skip the braces here.