Comments (7)
I would prefer not removing IntAttr, because its purpose is to encapsulate a python int
.
However, we can indeed rename it to something else!
from xdsl.
Walking the issues for some reason; forgot this even was a problem as I got through it myself, but it would make sense to solve that still!
I would be in favor of keeping IntegerAttr as-is for MLIR consistency; IntAttr being the xDSL novelty, we could make this one more explicit? Like IntegerValueAttr
or something in that direction?
from xdsl.
There is no rush for such a thing. I just wanted to write this down somewhere.
from xdsl.
At first sight I thought it was like Haskell's Int (bounded) and Integer (unbounded) but looks the other way round.
from xdsl.
Can we make the bounded integer inherit from unbounded integer? So we can access the value by ".data.value" instead of ".data.data.value"
from xdsl.
Hey! A bit of explanation on the IntAttr
versus IntegerAttr
.
An IntAttr
is an attribute that only contains an integer.
An IntegerAttr
is an attribute that contains an IntAttr
and an IntegerType
. This is a way to have a typed integer.
The problem is that the naming is not that great. One proposition Michel had was to change IntegerAttr
to ValueAttr
, which makes more sense in my opinion! The only problem is that we would need to write some more code for the translation to MLIR.
from xdsl.
Or maybe TypedIntegerValue
?
from xdsl.
Related Issues (20)
- transformations: (dmp) Update `stencil_global_to_local.py` to match `stencil.ExternalLoadOp`
- backend: (csl) Add remaining missing features for code demo
- core: Meditate on the attribute names situation. HOT 1
- arith: Missing `fastmath` property on `arith.cmpf`
- memref: Missing `reinterpret_cast`
- Missing custom syntax for `math.exp`
- epic, backend: (risc-v) Lowering NsNet2 IREE kernels
- Pyright: Update from 1.345 HOT 1
- Assembly format does not print/parse dialect attributes correctly HOT 3
- Toy example tests fail locally HOT 2
- backend: (risc-v) `IndexError` when translating a `memref` with non-identity strides HOT 1
- Tests on main fail without mlir installed
- testing: marimo tests should run all tests and report all that fail, not stop at first one
- Type Conversion of function arguments HOT 1
- Precision limit in xDSL output HOT 1
- Wrong values on large dense arrays after xdsl-opt HOT 2
- remove zero return in riscv_snitch config ops
- dialects: merge snitch dialects HOT 3
- Add `_stream` suffix when creating stream block arguments in memref-streamify pass
- Split `linalg.generic` attributes over multiple lines in custom syntax.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdsl.