- shape.with_shape supports ExtentTensorType
- add helper to create shape.func
Details
Details
- Reviewers
jpienaar - Commits
- rGaf29db64b2c7: [mlir][shape] refine shape.func and shape.with_shape
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
---|---|---|
1293 | getSymNameAttr ? They do match (on purpose) but sym_name is the attribute name ODS defined and what the autogenerated builders use. | |
1295 | Similiarly in the generated code we have odsState.addAttribute(getFunctionTypeAttrName(odsState.name), function_type); rather than querying the generic. (the difference is the latter form uses a cached Attribute rather than looking up the stringref and uniqueing it). |
Comment Actions
Thanks for pointing this out, use getSymNameAttrName and getFunctionTypeAttrName instead
getSymNameAttr ? They do match (on purpose) but sym_name is the attribute name ODS defined and what the autogenerated builders use.