Home | History | Annotate | Download | only in DebugIR
      1 ; ModuleID = 'struct.cpp'
      2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
      3 target triple = "x86_64-pc-linux-gnu"
      4 
      5 %struct.blah = type { i32, float, i8 }
      6 
      7 ; Function Attrs: nounwind uwtable
      8 define i32 @main() #0 {
      9   %1 = alloca i32, align 4                                    ; CHECK: !dbg
     10   %b = alloca %struct.blah, align 4                           ; CHECK-NEXT: !dbg
     11   store i32 0, i32* %1                                        ; CHECK-NEXT: !dbg
     12   %2 = getelementptr inbounds %struct.blah* %b, i32 0, i32 0  ; CHECK-NEXT: !dbg
     13   %3 = load i32* %2, align 4                                  ; CHECK-NEXT: !dbg
     14   ret i32 %3                                                  ; CHECK-NEXT: !dbg
     15 }
     16 
     17 attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
     18 
     19 ; CHECK: = metadata !{i32 11,
     20 ; CHECK-NEXT: = metadata !{i32 12,
     21 ; CHECK-NEXT: = metadata !{i32 13,
     22 ; CHECK-NEXT: = metadata !{i32 14,
     23 
     24 ; RUN: opt %s -debug-ir -S | FileCheck %s
     25