doc: update IR samples to new mie sub-directory and file extension
This commit is contained in:
39
doc/mie/sample/Person.mie
Normal file
39
doc/mie/sample/Person.mie
Normal 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 {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user