Created
May 12, 2014 22:52
-
-
Save anonymous/e73b961659a9dc0064de to your computer and use it in GitHub Desktop.
test.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'test.cpp' | |
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32" | |
target triple = "i686-pc-mingw32" | |
%"class.std::ios_base::Init" = type { i8 } | |
%"class.std::basic_ostream" = type { i32 (...)**, %"class.std::basic_ios" } | |
%"class.std::basic_ios" = type { %"class.std::ios_base", %"class.std::basic_ostream"*, i8, i8, %"class.std::basic_streambuf"*, %"class.std::ctype"*, %"class.std::num_put"*, %"class.std::num_get"* } | |
%"class.std::ios_base" = type { i32 (...)**, i32, i32, i32, i32, i32, %"struct.std::ios_base::_Callback_list"*, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, %"struct.std::ios_base::_Words"*, %"class.std::locale" } | |
%"struct.std::ios_base::_Callback_list" = type { %"struct.std::ios_base::_Callback_list"*, void (i32, %"class.std::ios_base"*, i32)*, i32, i32 } | |
%"struct.std::ios_base::_Words" = type { i8*, i32 } | |
%"class.std::locale" = type { %"class.std::locale::_Impl"* } | |
%"class.std::locale::_Impl" = type { i32, %"class.std::locale::facet"**, i32, %"class.std::locale::facet"**, i8** } | |
%"class.std::locale::facet" = type { i32 (...)**, i32 } | |
%"class.std::basic_streambuf" = type { i32 (...)**, i8*, i8*, i8*, i8*, i8*, i8*, %"class.std::locale" } | |
%"class.std::ctype" = type { %"class.std::locale::facet", i32*, i8, i32*, i32*, i16*, i8, [256 x i8], [256 x i8], i8 } | |
%"class.std::num_put" = type { %"class.std::locale::facet" } | |
%"class.std::num_get" = type { %"class.std::locale::facet" } | |
@_ZStL8__ioinit = internal global %"class.std::ios_base::Init" zeroinitializer, align 1 | |
@_ZSt4cout = external global %"class.std::basic_ostream" | |
@.str = private unnamed_addr constant [13 x i8] c"Hello World!\00", align 1 | |
@llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }] | |
define internal void @__cxx_global_var_init() { | |
call void @_ZNSt8ios_base4InitC1Ev(%"class.std::ios_base::Init"* @_ZStL8__ioinit) | |
%1 = call i32 @atexit(void ()* @__dtor__ZStL8__ioinit) #1 | |
ret void | |
} | |
declare void @_ZNSt8ios_base4InitC1Ev(%"class.std::ios_base::Init"*) #0 | |
declare void @_ZNSt8ios_base4InitD1Ev(%"class.std::ios_base::Init"*) #0 | |
define internal void @__dtor__ZStL8__ioinit() { | |
call void @_ZNSt8ios_base4InitD1Ev(%"class.std::ios_base::Init"* @_ZStL8__ioinit) | |
ret void | |
} | |
; Function Attrs: nounwind | |
declare i32 @atexit(void ()*) #1 | |
define i32 @main() #0 { | |
%1 = alloca i32, align 4 | |
store i32 0, i32* %1 | |
%2 = call %"class.std::basic_ostream"* @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(%"class.std::basic_ostream"* @_ZSt4cout, i8* getelementptr inbounds ([13 x i8]* @.str, i32 0, i32 0)) | |
%3 = call %"class.std::basic_ostream"* @_ZNSolsEPFRSoS_E(%"class.std::basic_ostream"* %2, %"class.std::basic_ostream"* (%"class.std::basic_ostream"*)* @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_) | |
ret i32 0 | |
} | |
declare %"class.std::basic_ostream"* @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(%"class.std::basic_ostream"*, i8*) #0 | |
declare %"class.std::basic_ostream"* @_ZNSolsEPFRSoS_E(%"class.std::basic_ostream"*, %"class.std::basic_ostream"* (%"class.std::basic_ostream"*)*) #0 | |
declare %"class.std::basic_ostream"* @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(%"class.std::basic_ostream"*) #0 | |
define internal void @_GLOBAL__I_a() { | |
call void @__cxx_global_var_init() | |
ret void | |
} | |
attributes #0 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } | |
attributes #1 = { nounwind } | |
!llvm.ident = !{!0} | |
!0 = metadata !{metadata !"clang version 3.4 (tags/RELEASE_34/final)"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment