Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Bindings/Python/IRAttributes.cpp | ||
---|---|---|
452 | should this be removed from the CAPI, since it's not a unique typeid? (similar to how BoolAttr doesn't have its typeid exposed) | |
453–481 | not sure trying to parse @/::s here is a good idea, as far as I know they're valid characters in symbol names: module @"@foo::bar" {} // no complaints from the verifier better to leave it to Attribute.parse to handle all that imo | |
503–511 | Doesn't str() effectively do this already, since it prints the asm string? I would return List[str] here instead. |
mlir/lib/Bindings/Python/IRAttributes.cpp | ||
---|---|---|
453–481 | fair enough |
mlir/test/python/ir/attributes.py | ||
---|---|---|
248–252 | nit: default_get is used in both of these prints, can you change one of them |
not sure trying to parse @/::s here is a good idea, as far as I know they're valid characters in symbol names:
better to leave it to Attribute.parse to handle all that imo