This change was reverted because it introduced a linking issue due to
duplicated symbols. Making sure that the detail helper only has a static
header implementation fixes this issue.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I think the commit message should say "excluding the swift specific one" or similar?
mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td | ||
---|---|---|
66 | nit: TODOs are usually commented with rather than / and | |
70 | If TODO and comment only refer to that one line then we may want to move it after the others? | |
mlir/test/Dialect/LLVMIR/parameter-attrs-invalid.mlir | ||
125 | should this be a dereferenceable_or_null test? |
Is importing and exporting immarg really required? IIRC this attribute is only valid on arguments of intrinsics, and so far we've been modelling (most of, but should be all of) these specific intrinsics to have attributes for immarg arguments within the LLVM Dialect.
I didn't realise this, thanks for pointing it out. In that case, we can drop the import of immarg entirely. I assume that the same applies to elementtype, as the doc states they are only valid on intrinsics.
LGTM!
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp | ||
---|---|---|
912 | nit: Let's spell out the type here and above. |
nit: TODOs are usually commented with rather than / and
nit: typo Restict