Skip to content

第4章(1):约束 | Inside Compiler #61

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

Open
fiking opened this issue Jun 29, 2024 · 0 comments
Open

第4章(1):约束 | Inside Compiler #61

fiking opened this issue Jun 29, 2024 · 0 comments

Comments

@fiking
Copy link
Collaborator

fiking commented Jun 29, 2024

https://inside-compiler.github.io/2024/06/15/mlir-constraint/

正如2.3节提到的MLIR框架通过特质为操作、类型、属性提供约束,从而尽可能保证操作、属性、类型的正确性。接口借助于特质完成操作、属性、类型公共处理能力。本章主要介绍谓词、特质、接口的实现以及如何正确使用它们。 4.1 谓词谓词(Pred)是对操作和方言进行类型、属性等进行限制。由于谓词是在操作或者方言构建时使用,本书将其称为静态约束。在MLIR约束(Constraint)继承于谓词。约束对谓词增

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant