-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【PIR】Add ShapeAnalysis, and save() into SymDimMgr. #57029
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
fbe9fa2
to
8d5f1a0
Compare
d9d80b6
to
40dd58e
Compare
pir::dialect::TieShapeOp tieShapeOp5 = | ||
builder.Build<pir::dialect::TieShapeOp>(value5); | ||
|
||
builder.SetInsertionPointToEnd(funcOp.block()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FuncOp 里包含了一个region,内含一个block,存放一个op列表,在FuncOp里能自然访问到父级(即FuncOp所在层级或以上)的变量,但是否有父级需要访问其内region里的变量的场景或需求,因为region默认是「封闭的」
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前没有这种需求。FuncOp 中会存放约束相关 Op 和 SymbolicDim,其中 SymbolicDim 也是以 Op 形式存储的。使用时会通过 SymbolDimMgr 加载 FuncOp 中 Op,之后通过 string symName 来进行绑定。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* add ShapeAnalysis、Mgr::save * add funcOp. * access ShapedType. * remove const_cast.
PR types
Others
PR changes
Others
Description
Other
Pcard-67164