mirror of https://github.com/llvm/circt.git
[OM] Add missing CAPI omTypeIsAMapType (#8321)
Signed-off-by: unlsycn <unlsycn@unlsycn.com>
This commit is contained in:
parent
a17521e73d
commit
d46f0bb29d
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue