Comments (2)
As note:
An alternative (to #165) way how this issue manifests is during code generation (instead of application):
%core.trait.*
is expected to be resolved entirely before code generation.
In some cases, however, it remains and no size is computed.
Example: %core.trait.size «_3152207; «_3152209; .Idx 4294967296»»
.
Fork: Neuralcoder3
Branch: matrix_dialect
Call: ./build/bin/thorin -d matrix lit/matrix/print_const_dyn_mat.thorin -d affine -d direct -d clos -o - -VVVV --output-ll T.ll
Note: add_mem is disabled due to another bug (possibly related to projections)
The indices are statically unknown.
Note: Code generation fails with assert(false);
without telling that it happens during code generation or what is wrong.
A more informative error like assert(false && "trait should be lowered before codegen");
would be helpful.
from thorin2.
We've already mentioned that in a couple of other issues like #9 that we probably want to move away from assertions and instead use proper error messages/exceptions instead. In the midterm we could expose this "failure is an option" to the compilation pipeline.
from thorin2.
Related Issues (20)
- Rewrite Phase Assertion Issue HOT 8
- Clos Conv FDA error
- Add mem unexpected behaviour HOT 2
- Rewrite phase issue with lambda vars. HOT 2
- Recent commits broke matrix axioms HOT 5
- Allocation of nested array HOT 6
- Core::zip Documentation HOT 1
- Closure Conversion dependent type rewrites HOT 1
- Code generation for floating point casts HOT 2
- Scheduler returns wrong position dynamically
- Automatic Dialect Loading HOT 4
- Shadowing for variables HOT 1
- Association Dialect HOT 4
- Application Error with matching domain HOT 7
- Grammar Improvements HOT 1
- Add mem problem with dependent types
- Add mem adds too many mems HOT 2
- Backend Preparation: Nested Extract Splitting
- Float Infer Unification Issue
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 thorin2.