Logo
Explore Help
Register Sign In
tomoaki/hakorune
1
0
Fork 0
You've already forked hakorune
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
ee2b3115eef135e39f7b0b5fa80dfafcb89cc91f
hakorune/tests/mir_snapshots/basic_arithmetic.mir

13 lines
213 B
Plaintext
Raw Normal View History

Implement Phase 1: MIR + VM backend with golden tests Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
2025-08-13 05:59:10 +00:00
; MIR Module: main
mir: read plugin method signatures from nyash_box (#134) * mir: load plugin method signatures * llvm: read box type ids from nyash_box * mir: show value types in MIR printer
2025-09-11 03:33:33 +09:00
define i64 @main() {
Implement Phase 1: MIR + VM backend with golden tests Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
2025-08-13 05:59:10 +00:00
bb0:
mir: read plugin method signatures from nyash_box (#134) * mir: load plugin method signatures * llvm: read box type ids from nyash_box * mir: show value types in MIR printer
2025-09-11 03:33:33 +09:00
0: %0: Integer = const 42
1: %1: Integer = const 10
2: %2: Integer = %0 Add %1
3: extern_call env.console.log(%2) [effects: pure|io]
Implement Phase 1: MIR + VM backend with golden tests Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
2025-08-13 05:59:10 +00:00
4: ret %2
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 52ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API