[OM] Add missing CAPI omTypeIsAMapType (#8321)

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
This commit is contained in:
unlsycn 2025-03-19 04:35:24 +08:00 committed by GitHub
parent a17521e73d
commit d46f0bb29d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ MlirType omStringTypeGet(MlirContext ctx) {
return wrap(StringType::get(unwrap(ctx)));
}
/// Is the Type a MapType.
bool omTypeIsAMapType(MlirType type) { return isa<MapType>(unwrap(type)); }
/// Return a key type of a map.
MlirType omMapTypeGetKeyType(MlirType type) {
return wrap(cast<MapType>(unwrap(type)).getKeyType());