Previously we are using IntegerAttr to back all SPIR-V enum
attributes. Therefore we all such attributes are showed like
IntegerAttr in IRs, which is barely readable and breaks
roundtripability of the IR. This commit changes to use
EnumAttr as the base directly so that we can have separate
attribute definitions and better IR printing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks fine to me. I'm not very familiar with this part of many of the changed files, so please wait for a second approval before submitting.
mlir/lib/Target/SPIRV/Serialization/Serializer.cpp | ||
---|---|---|
197–199 | ubernit: auto mm = and auto am = ? |
ubernit: auto mm = and auto am = ?