This revision adds comdat support to functions. Additionally,
it ensures only comdats that have uses are imported/exported and
only non-empty global comdat operations are created.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, module NITs
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h | ||
---|---|---|
346 | NIT: Is it possible to limit the key type to be the ComdatOp? | |
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp | ||
1810–1814 | NIT: This comment is still outdated. It only lists a limited subset of the parsed parts. | |
mlir/lib/Target/LLVMIR/ModuleImport.cpp | ||
1838 | NIT: is there a reason for this change? |
Comment Actions
Address comments.
mlir/lib/Target/LLVMIR/ModuleImport.cpp | ||
---|---|---|
1838 | I wanted to have the comdats before the metadata. Apart from that I do not have a strong reason. |
NIT: Is it possible to limit the key type to be the ComdatOp?