Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 357 Bytes

File metadata and controls

15 lines (11 loc) · 357 Bytes

Structures in LLVM IR

Structures in LLVM IR can be defined using syntax similar to constructing the body of a function when it is defined. It can only contain unique types.

{ i64, i32, ptr, [8 x i8] }

These structures can be used as return types when defining a function.

define { i64, i32, ptr, [8 x i8] } @test() {
    ...
}