This commit introduces support for locations as part of the loop
annotation attribute. These locations indicate the start and the end of
the loop.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM modulo nit comments.
mlir/lib/Target/LLVMIR/LoopAnnotationImporter.cpp | ||
---|---|---|
26–27 | nit: for converting member functions or for the conversion of member functions? | |
413 | Is FailureOr here needed? It seems like we use nullptr to signal failure? | |
424 | I assume LLVM models same start and end location by adding only one location? Should we just set start and end location to the same value in that case? |
address reviewer comments
mlir/lib/Target/LLVMIR/LoopAnnotationImporter.cpp | ||
---|---|---|
413 | For the start loc, this is indeed not required. I added it to be compatible with the templated attribute construction further down. | |
424 | From the LangRef (https://llvm.org/docs/LangRef.html#llvm-loop):
So the second one really indicates the end. |
nit: for converting member functions or for the conversion of member functions?