doc: update IR samples to new mie sub-directory and file extension

This commit is contained in:
2025-04-03 10:47:24 +01:00
parent 944ffcaea2
commit 962c1ae9d4
2 changed files with 40 additions and 1 deletions

39
doc/mie/sample/Person.mie Normal file
View File

@@ -0,0 +1,39 @@
record package_scope = "net.doorstuck.test"
record import = { "std.io" }
define void @L0001(id %0) lambda {
}
define void @Person::@_M4init4name3ageE(id %0, id %1) instance {
}
define void @Person::@_M4test5param0E(id %0, id %1) instance {
}
define id @Person::@_M4nameE(id %0, id %1) instance {
}
define id @Person::@_M3ageE(id %0, id %1) instance {
}
define id @Person::@_M11ageInMonthsE(id %0, id %1) instance {
}
define void @Person::@_M07setNameE(id %0, id %1) instance {
}
define void @Person::@_M06setAge6inUnitE(id %0, id %1) instance {
}
define id @Person::@_M012getAgeInUnitE(id %0, id %1) instance {
}

View File

@@ -5,7 +5,7 @@ record package_scope = "net.doorstuck.test"
data @.str.0 = str "Finds the sum of a set of numbers." data @.str.0 = str "Finds the sum of a set of numbers."
data @.str.1 = str "Number (blank to finish): " data @.str.1 = str "Number (blank to finish): "
define iblock { define void _() static {
; cout put:'Finds the sum of a set of numbers.' ; cout put:'Finds the sum of a set of numbers.'
%1 = alloca id %1 = alloca id
store id @.str.0, ptr %1 store id @.str.0, ptr %1