Created
March 27, 2014 03:10
-
-
Save laserson/9799355 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 = '<stdin>' | |
| 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" | |
| target triple = "x86_64-apple-macosx10.7.0" | |
| %"class.impala_udf::FunctionContext" = type { %"class.impala::FunctionContextImpl"* } | |
| %"class.impala::FunctionContextImpl" = type opaque | |
| %"struct.impala_udf::StringVal" = type { %"struct.impala_udf::AnyVal", i32, i8* } | |
| %"struct.impala_udf::AnyVal" = type { i8 } | |
| ; Function Attrs: nounwind readonly ssp uwtable | |
| define zeroext i1 @_Z9StringEq3PN10impala_udf15FunctionContextERKNS_9StringValES4_(%"class.impala_udf::FunctionContext"* nocapture %context, %"struct.impala_udf::StringVal"* nocapture %arg1, %"struct.impala_udf::StringVal"* nocapture %arg2) #0 { | |
| entry: | |
| %ptr = getelementptr inbounds %"struct.impala_udf::StringVal"* %arg1, i64 0, i32 2 | |
| %0 = load i8** %ptr, align 8, !tbaa !0 | |
| %ptr1 = getelementptr inbounds %"struct.impala_udf::StringVal"* %arg2, i64 0, i32 2 | |
| %1 = load i8** %ptr1, align 8, !tbaa !0 | |
| %len = getelementptr inbounds %"struct.impala_udf::StringVal"* %arg1, i64 0, i32 1 | |
| %2 = load i32* %len, align 4, !tbaa !3 | |
| %conv = sext i32 %2 to i64 | |
| %call = tail call i32 @memcmp(i8* %0, i8* %1, i64 %conv) | |
| %cmp = icmp eq i32 %call, 0 | |
| ret i1 %cmp | |
| } | |
| ; Function Attrs: nounwind readonly | |
| declare i32 @memcmp(i8* nocapture, i8* nocapture, i64) #1 | |
| attributes #0 = { nounwind readonly ssp 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" } | |
| attributes #1 = { nounwind readonly "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" } | |
| !0 = metadata !{metadata !"any pointer", metadata !1} | |
| !1 = metadata !{metadata !"omnipotent char", metadata !2} | |
| !2 = metadata !{metadata !"Simple C/C++ TBAA"} | |
| !3 = metadata !{metadata !"int", metadata !1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment