Add evaluation for conversion instructions. (#3594)

Also some finessing of evaluation for other instruction kinds and some
additional testing.
This commit is contained in:
Richard Smith
2024-01-11 23:50:04 +00:00
committed by GitHub
parent 7553d864e1
commit a2012d4777
58 changed files with 232 additions and 171 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ fn Main() {
// CHECK:STDOUT: %Echo.ref: <function> = name_ref Echo, file.%Echo, const = file.%Echo
// CHECK:STDOUT: %.loc12_9.1: {} = struct_literal ()
// CHECK:STDOUT: %.loc12_9.2: {} = struct_value (), const = constants.%.loc12
// CHECK:STDOUT: %.loc12_9.3: {} = converted %.loc12_9.1, %.loc12_9.2
// CHECK:STDOUT: %.loc12_9.3: {} = converted %.loc12_9.1, %.loc12_9.2, const = constants.%.loc12
// CHECK:STDOUT: %.loc12_7: init {} = call %Echo.ref(%.loc12_9.3)
// CHECK:STDOUT: return
// CHECK:STDOUT: }