Comments (4)
Thank you for interesting in MIR.
I was asked this question several times.
To be honest right now I'd like to keep MIR away from implementing vector insns. It is not important feature for implementing lighweight tier1 JITs.
It is a very target dependent feature. Besides arithmetic insns you need insns to pack and unpack vectors, other necessary insns. Also why only fp insns? It would be logical to add integer vector insns too. Also you need new vector types, a lot of target dependent machine code to implement the vector insns (call ABI could be complicated even more). For me next logical step would be implementing autovectorization in MIR. It is so complicated area requiring a lot of expertise and efforts to implement huge code, a whole can of worms. So adding even simple vector insns would considerably complicate MIR.
I am not saying that MIR will never support vector insns. Simply I'd like to try MIR in Ruby JIT implementation and I don't see how vector insns could help this goal. If I see that MIR could be successful as tier2 compiler I probably will think hard about adding vector insns and which ones.
from mir.
I agree with @vnmakarov here. We have a similar use case with Faust and we just added a backend to use MIR, see #54.
The thing is that MIR seems perfect to deploy reasonably fast code using a small an easy to deploy piece of code. It you really want the fastest code, then you'll have to use the LLVM path.
from mir.
Hi, I think MIR should avoid the complexity and bloat from vector insns because there is no need for MIR to be like LLVM. The huge strength of MIR is small size and reasonable performance. I would hate to see feature creep in MIR that then makes it lose its special asset. No point in making another LLVM.
from mir.
Ok. Thank you for your answers. Anyway, I will try to add some basic SIMD stuff in a local branch to see if is feasible.
My purpose of using SIMD in MIR is not to create a super-optimizin compiler, but it is including the SIMD datatypes and operations in the IR itself in order to avoid external add-ons to a language as intrinsics are used in C/C++.
from mir.
Related Issues (20)
- Assertion failed: (0), function out_op, file mir2c.c, line 65 HOT 8
- Supplying custom allocation/deallocation routines HOT 2
- Building with zig and failing at runtime on `mir_hash_1`
- Support for system calls? HOT 11
- Issue 361 test case failed HOT 2
- Shebang support for Mir files? HOT 13
- Awk has a syntax error in the benchmarks HOT 16
- Allow MIR text to be mixed in with C API
- Bug in mir-gen-x86_64.c on bbv branch HOT 3
- Add Apple Silicon CI support HOT 2
- Assertion error in 'process_aggregate_arg' for anonymous struct/union HOT 2
- Assertion error in 'get_uptodate_def_insn' relating to division by `sizeof(char)` HOT 3
- Please implement _Thread_local HOT 1
- CMake build broken with 9b7aa03 HOT 2
- Feature request: add debug info support?
- v1.0.0 Undefined function _MIR_name_char_p when #MIR_NO_SCAN is used HOT 2
- v1.0.0 Fails to compile C code HOT 6
- v1.0.0 causes crashes during execution HOT 30
- Inconsistent MIR_BFS results in interp and gen HOT 2
- Graceful crash handling?
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 mir.