This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Move LLVMArrayType to a TypeDef
ClosedPublic

Authored by Mogball on Oct 21 2022, 10:58 AM.

Details

Summary

This moves the LLVMArrayType to a TypeDef. The main side-effect of
this change is that the syntax array<4xi32> is no longer allowed. It
was previously parsed and then printed as array<4 x i32>. Now the
syntax must be the latter.

Diff Detail

Event Timeline

Mogball created this revision.Oct 21 2022, 10:58 AM
Mogball requested review of this revision.Oct 21 2022, 10:58 AM
rriddle accepted this revision.Oct 21 2022, 11:05 AM

Sweet! Moving these to TypeDefs has been a long TODO.

mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
90–93

style: Can you move this above the field?

mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp
1012

Is there a TODO we can add here? I think we should try moving over to using this when we can.

This revision is now accepted and ready to land.Oct 21 2022, 11:05 AM
Mogball updated this revision to Diff 469729.Oct 21 2022, 12:56 PM
Mogball marked 2 inline comments as done.

review comments

This revision was landed with ongoing or failed builds.Oct 21 2022, 12:57 PM
This revision was automatically updated to reflect the committed changes.