; LLVM IR from NVIDIA/TensorRT :: plugin/common/cublasLtWrapper.ll (ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.anon = type { i8 }
%"class.nvinfer1::pluginInternal::CublasLtWrapper" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__func__._ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb(ptr noundef nonnull align 8 dereferenceable(160) %0, i1 noundef zeroext %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca %class.anon, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %6 = zext i1 %1 to i8
  store i8 %6, ptr %4, align 1, !tbaa !9
  %7 = load ptr, ptr %3, align 8
  %8 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %9 = call noundef ptr @_ZN8nvinfer114pluginInternal15CublasLtWrapper18tryLoadingCublasLtEv(ptr noundef nonnull align 8 dereferenceable(160) %7)
  store ptr %9, ptr %8, align 8, !tbaa !11
  %10 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 1
  store ptr null, ptr %10, align 8, !tbaa !13
  %11 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = icmp ne ptr %12, null
  br i1 %13, label %15, label %14

14:                                               ; preds = %2
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.1, ptr noundef @__func__._ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb, i32 noundef 50, i32 noundef 0, ptr noundef @.str.2) #4
  unreachable

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  %16 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %17, ptr noundef @.str.3)
  %19 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 2
  store ptr %18, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %21, ptr noundef @.str.4)
  %23 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 3
  store ptr %22, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %25, ptr noundef @.str.5)
  %27 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 4
  store ptr %26, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %29, ptr noundef @.str.6)
  %31 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 5
  store ptr %30, ptr %31, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %33, ptr noundef @.str.7)
  %35 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 6
  store ptr %34, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %37, ptr noundef @.str.8)
  %39 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 7
  store ptr %38, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %41, ptr noundef @.str.9)
  %43 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 8
  store ptr %42, ptr %43, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %45, ptr noundef @.str.10)
  %47 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 9
  store ptr %46, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %49, ptr noundef @.str.11)
  %51 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 10
  store ptr %50, ptr %51, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %53, ptr noundef @.str.12)
  %55 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 11
  store ptr %54, ptr %55, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %57, ptr noundef @.str.13)
  %59 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 12
  store ptr %58, ptr %59, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %61, ptr noundef @.str.14)
  %63 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 13
  store ptr %62, ptr %63, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !11
  %66 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %65, ptr noundef @.str.15)
  %67 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 14
  store ptr %66, ptr %67, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %69, ptr noundef @.str.16)
  %71 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 15
  store ptr %70, ptr %71, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %73, ptr noundef @.str.17)
  %75 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 17
  store ptr %74, ptr %75, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %77, ptr noundef @.str.18)
  %79 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 16
  store ptr %78, ptr %79, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %81, ptr noundef @.str.19)
  %83 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 18
  store ptr %82, ptr %83, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %85, ptr noundef @.str.20)
  %87 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 19
  store ptr %86, ptr %87, align 8, !tbaa !5
  %88 = load i8, ptr %4, align 1, !tbaa !9, !range !14, !noundef !15
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %101

90:                                               ; preds = %15
  %91 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 1
  %92 = call noundef i32 @_ZN8nvinfer114pluginInternal15CublasLtWrapper14cublasLtCreateEPP15cublasLtContext(ptr noundef nonnull align 8 dereferenceable(160) %7, ptr noundef %91)
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.1, ptr noundef @__func__._ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb, i32 noundef 78, i32 noundef 0, ptr noundef @.str.21) #4
  unreachable

95:                                               ; preds = %90
  %96 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasLtWrapper", ptr %7, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !13
  %98 = icmp ne ptr %97, null
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.1, ptr noundef @__func__._ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb, i32 noundef 79, i32 noundef 0, ptr noundef @.str.22) #4
  unreachable

100:                                              ; preds = %95
  br label %101

101:                                              ; preds = %100, %15
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8nvinfer114pluginInternal15CublasLtWrapper18tryLoadingCublasLtEv(ptr noundef nonnull align 8 dereferenceable(160)) #1 align 2

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8nvinfer114pluginInternal15CublasLtWrapper14cublasLtCreateEPP15cublasLtContext(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN8nvinfer114pluginInternal15CublasLtWrapperE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!13 = !{!12, !6, i64 8}
!14 = !{i8 0, i8 2}
!15 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.anon = type { i8 }

@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__func__._ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb(ptr noundef nonnull align 8 dereferenceable(160) %0, i1 noundef zeroext %1) unnamed_addr #1 align 2 {
  %3 = alloca %class.anon, align 1
  %4 = tail call noundef ptr @_ZN8nvinfer114pluginInternal15CublasLtWrapper18tryLoadingCublasLtEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  store ptr %4, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr null, ptr %5, align 8, !tbaa !10
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %2
  tail call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__._ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb, i32 noundef 50, i32 noundef 0, ptr noundef nonnull @.str.2) #4
  unreachable

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  %8 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull %4, ptr noundef nonnull @.str.3)
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %8, ptr %9, align 8, !tbaa !11
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %10, ptr noundef nonnull @.str.4)
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %11, ptr %12, align 8, !tbaa !11
  %13 = load ptr, ptr %0, align 8, !tbaa !5
  %14 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %13, ptr noundef nonnull @.str.5)
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %14, ptr %15, align 8, !tbaa !11
  %16 = load ptr, ptr %0, align 8, !tbaa !5
  %17 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %16, ptr noundef nonnull @.str.6)
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %17, ptr %18, align 8, !tbaa !11
  %19 = load ptr, ptr %0, align 8, !tbaa !5
  %20 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %19, ptr noundef nonnull @.str.7)
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %20, ptr %21, align 8, !tbaa !11
  %22 = load ptr, ptr %0, align 8, !tbaa !5
  %23 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %22, ptr noundef nonnull @.str.8)
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %23, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %0, align 8, !tbaa !5
  %26 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %25, ptr noundef nonnull @.str.9)
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %26, ptr %27, align 8, !tbaa !11
  %28 = load ptr, ptr %0, align 8, !tbaa !5
  %29 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %28, ptr noundef nonnull @.str.10)
  %30 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %29, ptr %30, align 8, !tbaa !11
  %31 = load ptr, ptr %0, align 8, !tbaa !5
  %32 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %31, ptr noundef nonnull @.str.11)
  %33 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %32, ptr %33, align 8, !tbaa !11
  %34 = load ptr, ptr %0, align 8, !tbaa !5
  %35 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %34, ptr noundef nonnull @.str.12)
  %36 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %35, ptr %36, align 8, !tbaa !11
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %37, ptr noundef nonnull @.str.13)
  %39 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %38, ptr %39, align 8, !tbaa !11
  %40 = load ptr, ptr %0, align 8, !tbaa !5
  %41 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %40, ptr noundef nonnull @.str.14)
  %42 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %41, ptr %42, align 8, !tbaa !11
  %43 = load ptr, ptr %0, align 8, !tbaa !5
  %44 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %43, ptr noundef nonnull @.str.15)
  %45 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %44, ptr %45, align 8, !tbaa !11
  %46 = load ptr, ptr %0, align 8, !tbaa !5
  %47 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %46, ptr noundef nonnull @.str.16)
  %48 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %47, ptr %48, align 8, !tbaa !11
  %49 = load ptr, ptr %0, align 8, !tbaa !5
  %50 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %49, ptr noundef nonnull @.str.17)
  %51 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %50, ptr %51, align 8, !tbaa !11
  %52 = load ptr, ptr %0, align 8, !tbaa !5
  %53 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %52, ptr noundef nonnull @.str.18)
  %54 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %53, ptr %54, align 8, !tbaa !11
  %55 = load ptr, ptr %0, align 8, !tbaa !5
  %56 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %55, ptr noundef nonnull @.str.19)
  %57 = getelementptr inbounds i8, ptr %0, i64 144
  store ptr %56, ptr %57, align 8, !tbaa !11
  %58 = load ptr, ptr %0, align 8, !tbaa !5
  %59 = call noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %58, ptr noundef nonnull @.str.20)
  %60 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %59, ptr %60, align 8, !tbaa !11
  br i1 %1, label %61, label %68

61:                                               ; preds = %7
  %62 = call noundef i32 @_ZN8nvinfer114pluginInternal15CublasLtWrapper14cublasLtCreateEPP15cublasLtContext(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull %5)
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__._ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb, i32 noundef 78, i32 noundef 0, ptr noundef nonnull @.str.21) #4
  unreachable

65:                                               ; preds = %61
  %66 = load ptr, ptr %5, align 8, !tbaa !10
  %.not1 = icmp eq ptr %66, null
  br i1 %.not1, label %67, label %68

67:                                               ; preds = %65
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__._ZN8nvinfer114pluginInternal15CublasLtWrapperC2Eb, i32 noundef 79, i32 noundef 0, ptr noundef nonnull @.str.22) #4
  unreachable

68:                                               ; preds = %65, %7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8nvinfer114pluginInternal15CublasLtWrapper18tryLoadingCublasLtEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #1 align 2

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @"_ZZN8nvinfer114pluginInternal15CublasLtWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8nvinfer114pluginInternal15CublasLtWrapper14cublasLtCreateEPP15cublasLtContext(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN8nvinfer114pluginInternal15CublasLtWrapperE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass