This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Placeholder used in predicate should be the base type
ClosedPublic

Authored by Chia-hungDuan on Oct 24 2021, 8:38 PM.

Details

Summary

Added a notification in the placeholder section. While writing things
like preciate of an attribute, we may embed certain placeholder in the C
expression. Note that the type of the placeholder is only guaranteed to
be the base type like mlir::Type, it's better not to use the derived
type which is based on the implementation.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Oct 24 2021, 8:38 PM
Chia-hungDuan requested review of this revision.Oct 24 2021, 8:38 PM

I'm not sure if we should add a test at the tblgen side, any suggestion?

mehdi_amini accepted this revision.Oct 24 2021, 9:13 PM
mehdi_amini added inline comments.
mlir/include/mlir/IR/OpBase.td
81
This revision is now accepted and ready to land.Oct 24 2021, 9:13 PM
Chia-hungDuan marked an inline comment as done.

Fix typo

This revision was landed with ongoing or failed builds.Oct 26 2021, 10:37 AM
This revision was automatically updated to reflect the committed changes.