This commit moves the CFGLoopInfo instantiation into the C++ file to
ensure that it is only compiled once. Instantiating the template
explicitly revealed two missing functions that this commit also adds.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM but let's give others a chance to have a look at this.
mlir/lib/Analysis/CFGLoopInfo.cpp | ||
---|---|---|
12 | nit: maybe "Instantiate the LoopBase and LoopInfoBase classes defined in LoopInfoImpl.h for CFGLoops" ? |
mlir/include/mlir/IR/Block.h | ||
---|---|---|
354–357 | Not for this commit, but if we are already touching to LoopInfo proper, thi can be refactored to be provided through the trait class, defaulting to return false |
mlir/include/mlir/IR/Block.h | ||
---|---|---|
354–357 | Thanks for the comment. I'll check if it makes sense to add this to the GraphTrait or if we should use an SFINAE based mechanism to do this. |
Not for this commit, but if we are already touching to LoopInfo proper, thi can be refactored to be provided through the trait class, defaulting to return false