This commit adds the loop annotation attribute to LLVM::Br and
LLVM::CondBr to ensure it is non-discardable. Furthermore, the name is
changed from "llvm.loop" to "loop-annotation".
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks LGTM!
| mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td | ||
|---|---|---|
| 794 | nit: maybe add a c-style comment that these are the loop annotations /*loop_annotations=*/ here and below. | |
| mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMIRToLLVMTranslation.cpp | ||
| 207 | nit: I would probably for symmetry reason also go for branchOp, see comment below | |
| mlir/lib/Target/LLVMIR/ModuleTranslation.cpp | ||
| 1250 | nit: branchOp? | |
nit: maybe add a c-style comment that these are the loop annotations /*loop_annotations=*/ here and below.