; LLVM IR from NVIDIA/TensorRT :: plugin/fcPlugin (fcPlugin)

; 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.nvinfer1::plugin::LogStream.13" = type { %"class.std::basic_ostream.base", %"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kERROR>::Buf", %"class.std::mutex", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kERROR>::Buf" = type { %"class.std::__cxx11::basic_stringbuf" }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.nvinfer1::plugin::bert::Gemm" = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8, i8, i32, i32, i32, float, float }
%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo" = type { [8 x i64] }
%"struct.nvinfer1::plugin::bert::Gemm.10" = type <{ ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8, i8, [2 x i8], i32, i32, i32, %struct.__half, %struct.__half, [4 x i8] }>
%struct.__half = type { i16 }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::bert::FCPluginDynamic" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i64, i64, i32, i32, %"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"class.std::unique_ptr", %"struct.nvinfer1::plugin::bert::LtContext", ptr }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"struct.nvinfer1::plugin::bert::LtContext" = type { ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, %"struct.nvinfer1::pluginInternal::cublasLtMatmulHeuristicResult" }
%"struct.nvinfer1::pluginInternal::cublasLtMatmulHeuristicResult" = type { %"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo", i64, i32, float, [4 x i32] }

@.str = external hidden unnamed_addr constant [78 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert15FCPluginDynamic7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZN8nvinfer16plugin9gLogErrorE = external global %"class.nvinfer1::plugin::LogStream.13", align 8

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #4

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare void @__cxa_end_catch()

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert4GemmIfEC2Eiiibb(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert4GemmI6__halfEC2Eiiibb(ptr noundef nonnull align 8 dereferenceable(140), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert15FCPluginDynamic7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.nvinfer1::plugin::bert::Gemm", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo", align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.nvinfer1::plugin::bert::Gemm.10", align 8
  %30 = alloca %"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo", align 8
  %31 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %32 = load ptr, ptr %9, align 8
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %47

35:                                               ; preds = %7
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %47

38:                                               ; preds = %35
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %47

41:                                               ; preds = %38
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %47

44:                                               ; preds = %41
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %53, label %47

47:                                               ; preds = %44, %41, %38, %35, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert15FCPluginDynamic7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st, i32 noundef 575, i32 noundef 0, ptr noundef @.str.33) #9
          to label %48 unwind label %49

48:                                               ; preds = %47
  unreachable

49:                                               ; preds = %47
  %50 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %16, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %17, align 4
  br label %180

53:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = load ptr, ptr %32, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 28
  %58 = load ptr, ptr %57, align 8
  %59 = call noundef i64 %58(ptr noundef nonnull align 8 dereferenceable(376) %32, ptr noundef %54, i32 noundef 1, ptr noundef %55, i32 noundef 1) #10
  store i64 %59, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds [8 x i64], ptr %62, i64 0, i64 0
  %64 = load i64, ptr %63, align 8, !tbaa !11
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds [8 x i64], ptr %68, i64 0, i64 1
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = trunc i64 %70 to i32
  store i32 %71, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  %72 = load i32, ptr %19, align 4, !tbaa !13
  %73 = load i32, ptr %20, align 4, !tbaa !13
  %74 = mul nsw i32 %72, %73
  store i32 %74, ptr %21, align 4, !tbaa !13
  %75 = load i32, ptr %21, align 4, !tbaa !13
  %76 = icmp sge i32 %75, 0
  br i1 %76, label %83, label %77

77:                                               ; preds = %53
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert15FCPluginDynamic7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st, i32 noundef 582, i32 noundef 0, ptr noundef @.str.34) #9
          to label %78 unwind label %79

78:                                               ; preds = %77
  unreachable

79:                                               ; preds = %175, %171, %169, %83, %77
  %80 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %16, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %17, align 4
  br label %179

83:                                               ; preds = %53
  %84 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 11
  %85 = load i32, ptr %21, align 4, !tbaa !13
  %86 = sext i32 %85 to i64
  invoke void @_ZN8nvinfer16plugin4bert9LtContext4setNEm(ptr noundef nonnull align 8 dereferenceable(168) %84, i64 noundef %86)
          to label %87 unwind label %79

87:                                               ; preds = %83
  %88 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 3
  %89 = load i32, ptr %88, align 8, !tbaa !15
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %128

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = getelementptr inbounds ptr, ptr %92, i64 0
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  store ptr %94, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds ptr, ptr %95, i64 0
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  store ptr %97, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %24) #10
  %98 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 4
  %99 = load i64, ptr %98, align 8, !tbaa !38
  %100 = trunc i64 %99 to i32
  %101 = load i32, ptr %21, align 4, !tbaa !13
  %102 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 7
  %103 = load i32, ptr %102, align 4, !tbaa !39
  invoke void @_ZN8nvinfer16plugin4bert4GemmIfEC2Eiiibb(ptr noundef nonnull align 8 dereferenceable(144) %24, i32 noundef %100, i32 noundef %101, i32 noundef %103, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %104 unwind label %108

104:                                              ; preds = %91
  %105 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 10
  %106 = call noundef zeroext i1 @_ZSteqIvN8nvinfer114pluginInternal11CudaDeleterIvEEEbRKSt10unique_ptrIT_T0_EDn(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr null) #10
  br i1 %106, label %107, label %112

107:                                              ; preds = %104
  store i32 1, ptr %8, align 4
  store i32 1, ptr %25, align 4
  br label %127

108:                                              ; preds = %112, %91
  %109 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %16, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 144, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %179

112:                                              ; preds = %104
  %113 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 10
  %114 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %113) #10
  %115 = getelementptr inbounds %"struct.nvinfer1::plugin::bert::Gemm", ptr %24, i32 0, i32 0
  store ptr %114, ptr %115, align 8, !tbaa !40
  %116 = load ptr, ptr %22, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.nvinfer1::plugin::bert::Gemm", ptr %24, i32 0, i32 1
  store ptr %116, ptr %117, align 8, !tbaa !44
  %118 = load ptr, ptr %23, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.nvinfer1::plugin::bert::Gemm", ptr %24, i32 0, i32 2
  store ptr %118, ptr %119, align 8, !tbaa !45
  %120 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 11
  %121 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %121, i64 64, i1 false), !tbaa.struct !46
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load i64, ptr %18, align 8, !tbaa !11
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = invoke noundef i32 @_ZN8nvinfer16plugin4bert14cublasLtMatmulIfEENS_14pluginInternal12CublasStatusERNS1_9LtContextERNS1_4GemmIT_EENS3_18cublasLtMatmulAlgoEPvmP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(168) %120, ptr noundef nonnull align 8 dereferenceable(144) %24, ptr noundef byval(%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo") align 8 %26, ptr noundef %122, i64 noundef %123, ptr noundef %124)
          to label %126 unwind label %108

126:                                              ; preds = %112
  store i32 %125, ptr %8, align 4
  store i32 1, ptr %25, align 4
  br label %127

127:                                              ; preds = %126, %107
  call void @llvm.lifetime.end.p0(i64 144, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %178

128:                                              ; preds = %87
  %129 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 3
  %130 = load i32, ptr %129, align 8, !tbaa !15
  %131 = icmp eq i32 %130, 1
  br i1 %131, label %132, label %169

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = getelementptr inbounds ptr, ptr %133, i64 0
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  store ptr %135, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = getelementptr inbounds ptr, ptr %136, i64 0
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  store ptr %138, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %29) #10
  %139 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 4
  %140 = load i64, ptr %139, align 8, !tbaa !38
  %141 = trunc i64 %140 to i32
  %142 = load i32, ptr %21, align 4, !tbaa !13
  %143 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 7
  %144 = load i32, ptr %143, align 4, !tbaa !39
  invoke void @_ZN8nvinfer16plugin4bert4GemmI6__halfEC2Eiiibb(ptr noundef nonnull align 8 dereferenceable(140) %29, i32 noundef %141, i32 noundef %142, i32 noundef %144, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %145 unwind label %149

145:                                              ; preds = %132
  %146 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 10
  %147 = call noundef zeroext i1 @_ZSteqIvN8nvinfer114pluginInternal11CudaDeleterIvEEEbRKSt10unique_ptrIT_T0_EDn(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr null) #10
  br i1 %147, label %148, label %153

148:                                              ; preds = %145
  store i32 1, ptr %8, align 4
  store i32 1, ptr %25, align 4
  br label %168

149:                                              ; preds = %153, %132
  %150 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %16, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 144, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %179

153:                                              ; preds = %145
  %154 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 10
  %155 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %154) #10
  %156 = getelementptr inbounds %"struct.nvinfer1::plugin::bert::Gemm.10", ptr %29, i32 0, i32 0
  store ptr %155, ptr %156, align 8, !tbaa !48
  %157 = load ptr, ptr %27, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.nvinfer1::plugin::bert::Gemm.10", ptr %29, i32 0, i32 1
  store ptr %157, ptr %158, align 8, !tbaa !52
  %159 = load ptr, ptr %28, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.nvinfer1::plugin::bert::Gemm.10", ptr %29, i32 0, i32 2
  store ptr %159, ptr %160, align 8, !tbaa !53
  %161 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 11
  %162 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %162, i64 64, i1 false), !tbaa.struct !46
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = load i64, ptr %18, align 8, !tbaa !11
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = invoke noundef i32 @_ZN8nvinfer16plugin4bert14cublasLtMatmulI6__halfEENS_14pluginInternal12CublasStatusERNS1_9LtContextERNS1_4GemmIT_EENS4_18cublasLtMatmulAlgoEPvmP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(168) %161, ptr noundef nonnull align 8 dereferenceable(140) %29, ptr noundef byval(%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo") align 8 %30, ptr noundef %163, i64 noundef %164, ptr noundef %165)
          to label %167 unwind label %149

167:                                              ; preds = %153
  store i32 %166, ptr %8, align 4
  store i32 1, ptr %25, align 4
  br label %168

168:                                              ; preds = %167, %148
  call void @llvm.lifetime.end.p0(i64 144, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %178

169:                                              ; preds = %128
  %170 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EA63_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152) @_ZN8nvinfer16plugin9gLogErrorE, ptr noundef nonnull align 1 dereferenceable(63) @.str.16)
          to label %171 unwind label %79

171:                                              ; preds = %169
  %172 = getelementptr inbounds %"class.nvinfer1::plugin::bert::FCPluginDynamic", ptr %32, i32 0, i32 3
  %173 = load i32, ptr %172, align 8, !tbaa !15
  %174 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_i(ptr noundef nonnull align 8 dereferenceable(152) %170, i32 noundef %173)
          to label %175 unwind label %79

175:                                              ; preds = %171
  %176 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152) %174, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %177 unwind label %79

177:                                              ; preds = %175
  store i32 1, ptr %8, align 4
  store i32 1, ptr %25, align 4
  br label %178

178:                                              ; preds = %177, %168, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %191

179:                                              ; preds = %149, %108, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %180

180:                                              ; preds = %179, %49
  %181 = load i32, ptr %17, align 4
  %182 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #10
  %183 = icmp eq i32 %181, %182
  br i1 %183, label %184, label %196

184:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %185 = load ptr, ptr %16, align 8
  %186 = call ptr @__cxa_begin_catch(ptr %185) #10
  store ptr %186, ptr %31, align 8
  %187 = load ptr, ptr %31, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %187)
          to label %188 unwind label %193

188:                                              ; preds = %184
  invoke void @__cxa_end_catch()
          to label %189 unwind label %193

189:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  br label %190

190:                                              ; preds = %189
  store i32 1, ptr %8, align 4
  br label %191

191:                                              ; preds = %190, %178
  %192 = load i32, ptr %8, align 4
  ret i32 %192

193:                                              ; preds = %188, %184
  %194 = landingpad { ptr, i32 }
          catch ptr null
  %195 = extractvalue { ptr, i32 } %194, 0
  call void @__clang_call_terminate(ptr %195) #11
  unreachable

196:                                              ; preds = %180
  %197 = load ptr, ptr %16, align 8
  call void @__clang_call_terminate(ptr %197) #11
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert9LtContext4setNEm(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIvN8nvinfer114pluginInternal11CudaDeleterIvEEEbRKSt10unique_ptrIT_T0_EDn(ptr noundef nonnull align 8 dereferenceable(8), ptr) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14cublasLtMatmulIfEENS_14pluginInternal12CublasStatusERNS1_9LtContextERNS1_4GemmIT_EENS3_18cublasLtMatmulAlgoEPvmP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef byval(%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo") align 8, ptr noundef, i64 noundef, ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14cublasLtMatmulI6__halfEENS_14pluginInternal12CublasStatusERNS1_9LtContextERNS1_4GemmIT_EENS4_18cublasLtMatmulAlgoEPvmP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(140), ptr noundef byval(%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo") align 8, ptr noundef, i64 noundef, ptr noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_i(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EA63_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 1 dereferenceable(63)) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind memory(none) }
attributes #4 = { noinline noreturn nounwind uwtable "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 #5 = { 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 #6 = { mustprogress nounwind 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 #7 = { 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 #8 = { inlinehint mustprogress nounwind 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 #9 = { noreturn }
attributes #10 = { nounwind }
attributes #11 = { noreturn 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !22, i64 72}
!16 = !{!"_ZTSN8nvinfer16plugin4bert15FCPluginDynamicE", !17, i64 0, !20, i64 8, !20, i64 40, !22, i64 72, !12, i64 80, !12, i64 88, !14, i64 96, !14, i64 100, !23, i64 104, !24, i64 168, !26, i64 192, !32, i64 200, !6, i64 368}
!17 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !12, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!23 = !{!"_ZTSN8nvinfer114pluginInternal18cublasLtMatmulAlgoE", !7, i64 0}
!24 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !25, i64 0}
!25 = !{!"_ZTSN8nvinfer17WeightsE", !22, i64 0, !6, i64 8, !12, i64 16}
!26 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!32 = !{!"_ZTSN8nvinfer16plugin4bert9LtContextE", !6, i64 0, !6, i64 8, !33, i64 16, !33, i64 20, !33, i64 24, !34, i64 28, !33, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !35, i64 72}
!33 = !{!"_ZTS14cudaDataType_t", !7, i64 0}
!34 = !{!"_ZTSN8nvinfer114pluginInternal17cublasComputeTypeE", !7, i64 0}
!35 = !{!"_ZTSN8nvinfer114pluginInternal29cublasLtMatmulHeuristicResultE", !23, i64 0, !12, i64 64, !36, i64 72, !37, i64 76, !7, i64 80}
!36 = !{!"_ZTSN8nvinfer114pluginInternal12CublasStatusE", !7, i64 0}
!37 = !{!"float", !7, i64 0}
!38 = !{!16, !12, i64 80}
!39 = !{!16, !14, i64 100}
!40 = !{!41, !6, i64 0}
!41 = !{!"_ZTSN8nvinfer16plugin4bert4GemmIfEE", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !42, i64 120, !42, i64 121, !43, i64 124, !43, i64 128, !14, i64 132, !37, i64 136, !37, i64 140}
!42 = !{!"bool", !7, i64 0}
!43 = !{!"_ZTSN8nvinfer114pluginInternal15cublasOperationE", !7, i64 0}
!44 = !{!41, !6, i64 8}
!45 = !{!41, !6, i64 16}
!46 = !{i64 0, i64 64, !47}
!47 = !{!7, !7, i64 0}
!48 = !{!49, !6, i64 0}
!49 = !{!"_ZTSN8nvinfer16plugin4bert4GemmI6__halfEE", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !42, i64 120, !42, i64 121, !43, i64 124, !43, i64 128, !14, i64 132, !50, i64 136, !50, i64 138}
!50 = !{!"_ZTS6__half", !51, i64 0}
!51 = !{!"short", !7, i64 0}
!52 = !{!49, !6, i64 8}
!53 = !{!49, !6, i64 16}


; 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.nvinfer1::plugin::LogStream.13" = type { %"class.std::basic_ostream.base", %"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kERROR>::Buf", %"class.std::mutex", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kERROR>::Buf" = type { %"class.std::__cxx11::basic_stringbuf" }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.nvinfer1::plugin::bert::Gemm" = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8, i8, i32, i32, i32, float, float }
%"struct.nvinfer1::plugin::bert::Gemm.10" = type <{ ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8, i8, [2 x i8], i32, i32, i32, %struct.__half, %struct.__half, [4 x i8] }>
%struct.__half = type { i16 }
%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo" = type { [8 x i64] }

@.str = external hidden unnamed_addr constant [78 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert15FCPluginDynamic7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZN8nvinfer16plugin9gLogErrorE = external global %"class.nvinfer1::plugin::LogStream.13", align 8

; 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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #3

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

declare void @__cxa_end_catch() local_unnamed_addr

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert4GemmIfEC2Eiiibb(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert4GemmI6__halfEC2Eiiibb(ptr noundef nonnull align 8 dereferenceable(140), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert15FCPluginDynamic7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef %1, ptr noundef %2, ptr noundef readonly %3, ptr noundef readonly %4, ptr noundef %5, ptr noundef %6) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"struct.nvinfer1::plugin::bert::Gemm", align 8
  %9 = alloca %"struct.nvinfer1::plugin::bert::Gemm.10", align 8
  %10 = insertelement <4 x ptr> poison, ptr %1, i64 0
  %11 = insertelement <4 x ptr> %10, ptr %2, i64 1
  %12 = insertelement <4 x ptr> %11, ptr %3, i64 2
  %13 = insertelement <4 x ptr> %12, ptr %4, i64 3
  %14 = icmp ne ptr %5, null
  %15 = icmp eq <4 x ptr> %13, zeroinitializer
  %16 = bitcast <4 x i1> %15 to i4
  %17 = icmp eq i4 %16, 0
  %op.rdx = and i1 %17, %14
  br i1 %op.rdx, label %22, label %18

18:                                               ; preds = %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert15FCPluginDynamic7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st, i32 noundef 575, i32 noundef 0, ptr noundef nonnull @.str.33) #8
          to label %19 unwind label %20

19:                                               ; preds = %18
  unreachable

20:                                               ; preds = %18
  %21 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %90

22:                                               ; preds = %7
  %23 = load ptr, ptr %0, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 224
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef i64 %25(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef nonnull %1, i32 noundef 1, ptr noundef nonnull %2, i32 noundef 1) #9
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !8
  %29 = trunc i64 %28 to i32
  %30 = getelementptr inbounds i8, ptr %1, i64 16
  %31 = load i64, ptr %30, align 8, !tbaa !8
  %32 = trunc i64 %31 to i32
  %33 = mul nsw i32 %32, %29
  %34 = icmp sgt i32 %33, -1
  br i1 %34, label %39, label %35

35:                                               ; preds = %22
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert15FCPluginDynamic7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st, i32 noundef 582, i32 noundef 0, ptr noundef nonnull @.str.34) #8
          to label %36 unwind label %37

36:                                               ; preds = %35
  unreachable

37:                                               ; preds = %88, %85, %83, %39, %35
  %38 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %90

39:                                               ; preds = %22
  %40 = getelementptr inbounds i8, ptr %0, i64 200
  %41 = zext nneg i32 %33 to i64
  invoke void @_ZN8nvinfer16plugin4bert9LtContext4setNEm(ptr noundef nonnull align 8 dereferenceable(168) %40, i64 noundef %41)
          to label %42 unwind label %37

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %0, i64 72
  %44 = load i32, ptr %43, align 8, !tbaa !11
  switch i32 %44, label %83 [
    i32 0, label %45
    i32 1, label %64
  ]

45:                                               ; preds = %42
  %46 = load ptr, ptr %3, align 8, !tbaa !36
  %47 = load ptr, ptr %4, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %8) #9
  %48 = getelementptr inbounds i8, ptr %0, i64 80
  %49 = load i64, ptr %48, align 8, !tbaa !37
  %50 = trunc i64 %49 to i32
  %51 = getelementptr inbounds i8, ptr %0, i64 100
  %52 = load i32, ptr %51, align 4, !tbaa !38
  call void @_ZN8nvinfer16plugin4bert4GemmIfEC2Eiiibb(ptr noundef nonnull align 8 dereferenceable(144) %8, i32 noundef %50, i32 noundef %33, i32 noundef %52, i1 noundef zeroext false, i1 noundef zeroext false)
  %53 = getelementptr inbounds i8, ptr %0, i64 192
  %54 = call noundef zeroext i1 @_ZSteqIvN8nvinfer114pluginInternal11CudaDeleterIvEEEbRKSt10unique_ptrIT_T0_EDn(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr null) #9
  br i1 %54, label %63, label %57

55:                                               ; preds = %57
  %56 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %8) #9
  br label %90

57:                                               ; preds = %45
  %58 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #9
  store ptr %58, ptr %8, align 8, !tbaa !39
  %59 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %46, ptr %59, align 8, !tbaa !43
  %60 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %47, ptr %60, align 8, !tbaa !44
  %61 = getelementptr inbounds i8, ptr %0, i64 104
  %62 = invoke noundef i32 @_ZN8nvinfer16plugin4bert14cublasLtMatmulIfEENS_14pluginInternal12CublasStatusERNS1_9LtContextERNS1_4GemmIT_EENS3_18cublasLtMatmulAlgoEPvmP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(168) %40, ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef nonnull byval(%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo") align 8 %61, ptr noundef nonnull %5, i64 noundef %26, ptr noundef %6)
          to label %63 unwind label %55

63:                                               ; preds = %57, %45
  %.0 = phi i32 [ 1, %45 ], [ %62, %57 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %8) #9
  br label %96

64:                                               ; preds = %42
  %65 = load ptr, ptr %3, align 8, !tbaa !36
  %66 = load ptr, ptr %4, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %9) #9
  %67 = getelementptr inbounds i8, ptr %0, i64 80
  %68 = load i64, ptr %67, align 8, !tbaa !37
  %69 = trunc i64 %68 to i32
  %70 = getelementptr inbounds i8, ptr %0, i64 100
  %71 = load i32, ptr %70, align 4, !tbaa !38
  call void @_ZN8nvinfer16plugin4bert4GemmI6__halfEC2Eiiibb(ptr noundef nonnull align 8 dereferenceable(140) %9, i32 noundef %69, i32 noundef %33, i32 noundef %71, i1 noundef zeroext false, i1 noundef zeroext false)
  %72 = getelementptr inbounds i8, ptr %0, i64 192
  %73 = call noundef zeroext i1 @_ZSteqIvN8nvinfer114pluginInternal11CudaDeleterIvEEEbRKSt10unique_ptrIT_T0_EDn(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr null) #9
  br i1 %73, label %82, label %76

74:                                               ; preds = %76
  %75 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #9
  br label %90

76:                                               ; preds = %64
  %77 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %72) #9
  store ptr %77, ptr %9, align 8, !tbaa !45
  %78 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %65, ptr %78, align 8, !tbaa !49
  %79 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr %66, ptr %79, align 8, !tbaa !50
  %80 = getelementptr inbounds i8, ptr %0, i64 104
  %81 = invoke noundef i32 @_ZN8nvinfer16plugin4bert14cublasLtMatmulI6__halfEENS_14pluginInternal12CublasStatusERNS1_9LtContextERNS1_4GemmIT_EENS4_18cublasLtMatmulAlgoEPvmP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(168) %40, ptr noundef nonnull align 8 dereferenceable(140) %9, ptr noundef nonnull byval(%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo") align 8 %80, ptr noundef nonnull %5, i64 noundef %26, ptr noundef %6)
          to label %82 unwind label %74

82:                                               ; preds = %76, %64
  %.1 = phi i32 [ 1, %64 ], [ %81, %76 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #9
  br label %96

83:                                               ; preds = %42
  %84 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EA63_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152) @_ZN8nvinfer16plugin9gLogErrorE, ptr noundef nonnull align 1 dereferenceable(63) @.str.16)
          to label %85 unwind label %37

85:                                               ; preds = %83
  %86 = load i32, ptr %43, align 8, !tbaa !11
  %87 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_i(ptr noundef nonnull align 8 dereferenceable(152) %84, i32 noundef %86)
          to label %88 unwind label %37

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152) %87, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %96 unwind label %37

90:                                               ; preds = %37, %55, %74, %20
  %.pn.pn = phi { ptr, i32 } [ %21, %20 ], [ %56, %55 ], [ %75, %74 ], [ %38, %37 ]
  %.142 = extractvalue { ptr, i32 } %.pn.pn, 0
  %.144 = extractvalue { ptr, i32 } %.pn.pn, 1
  %91 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #9
  %92 = icmp eq i32 %.144, %91
  br i1 %92, label %93, label %100

93:                                               ; preds = %90
  %94 = call ptr @__cxa_begin_catch(ptr %.142) #9
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %94)
          to label %95 unwind label %97

95:                                               ; preds = %93
  invoke void @__cxa_end_catch()
          to label %96 unwind label %97

96:                                               ; preds = %95, %63, %82, %88
  %.3 = phi i32 [ %.0, %63 ], [ %.1, %82 ], [ 1, %88 ], [ 1, %95 ]
  ret i32 %.3

97:                                               ; preds = %95, %93
  %98 = landingpad { ptr, i32 }
          catch ptr null
  %99 = extractvalue { ptr, i32 } %98, 0
  call void @__clang_call_terminate(ptr %99) #10
  unreachable

100:                                              ; preds = %90
  call void @__clang_call_terminate(ptr %.142) #10
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert9LtContext4setNEm(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIvN8nvinfer114pluginInternal11CudaDeleterIvEEEbRKSt10unique_ptrIT_T0_EDn(ptr noundef nonnull align 8 dereferenceable(8), ptr) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14cublasLtMatmulIfEENS_14pluginInternal12CublasStatusERNS1_9LtContextERNS1_4GemmIT_EENS3_18cublasLtMatmulAlgoEPvmP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef byval(%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo") align 8, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14cublasLtMatmulI6__halfEENS_14pluginInternal12CublasStatusERNS1_9LtContextERNS1_4GemmIT_EENS4_18cublasLtMatmulAlgoEPvmP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(140), ptr noundef byval(%"struct.nvinfer1::pluginInternal::cublasLtMatmulAlgo") align 8, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_i(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EA63_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 1 dereferenceable(63)) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nofree nosync nounwind memory(none) }
attributes #3 = { noinline noreturn nounwind uwtable "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 "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 #5 = { mustprogress nounwind 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 #6 = { 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 #7 = { inlinehint mustprogress nounwind 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 #8 = { noreturn }
attributes #9 = { nounwind }
attributes #10 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !19, i64 72}
!12 = !{!"_ZTSN8nvinfer16plugin4bert15FCPluginDynamicE", !13, i64 0, !16, i64 8, !16, i64 40, !19, i64 72, !9, i64 80, !9, i64 88, !20, i64 96, !20, i64 100, !21, i64 104, !22, i64 168, !24, i64 192, !30, i64 200, !18, i64 368}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !9, i64 8, !10, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !18, i64 0}
!18 = !{!"any pointer", !10, i64 0}
!19 = !{!"_ZTSN8nvinfer18DataTypeE", !10, i64 0}
!20 = !{!"int", !10, i64 0}
!21 = !{!"_ZTSN8nvinfer114pluginInternal18cublasLtMatmulAlgoE", !10, i64 0}
!22 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer17WeightsE", !19, i64 0, !18, i64 8, !9, i64 16}
!24 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !18, i64 0}
!30 = !{!"_ZTSN8nvinfer16plugin4bert9LtContextE", !18, i64 0, !18, i64 8, !31, i64 16, !31, i64 20, !31, i64 24, !32, i64 28, !31, i64 32, !18, i64 40, !18, i64 48, !18, i64 56, !18, i64 64, !33, i64 72}
!31 = !{!"_ZTS14cudaDataType_t", !10, i64 0}
!32 = !{!"_ZTSN8nvinfer114pluginInternal17cublasComputeTypeE", !10, i64 0}
!33 = !{!"_ZTSN8nvinfer114pluginInternal29cublasLtMatmulHeuristicResultE", !21, i64 0, !9, i64 64, !34, i64 72, !35, i64 76, !10, i64 80}
!34 = !{!"_ZTSN8nvinfer114pluginInternal12CublasStatusE", !10, i64 0}
!35 = !{!"float", !10, i64 0}
!36 = !{!18, !18, i64 0}
!37 = !{!12, !9, i64 80}
!38 = !{!12, !20, i64 100}
!39 = !{!40, !18, i64 0}
!40 = !{!"_ZTSN8nvinfer16plugin4bert4GemmIfEE", !18, i64 0, !18, i64 8, !18, i64 16, !20, i64 24, !20, i64 28, !20, i64 32, !20, i64 36, !20, i64 40, !20, i64 44, !20, i64 48, !20, i64 52, !20, i64 56, !20, i64 60, !20, i64 64, !20, i64 68, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !41, i64 120, !41, i64 121, !42, i64 124, !42, i64 128, !20, i64 132, !35, i64 136, !35, i64 140}
!41 = !{!"bool", !10, i64 0}
!42 = !{!"_ZTSN8nvinfer114pluginInternal15cublasOperationE", !10, i64 0}
!43 = !{!40, !18, i64 8}
!44 = !{!40, !18, i64 16}
!45 = !{!46, !18, i64 0}
!46 = !{!"_ZTSN8nvinfer16plugin4bert4GemmI6__halfEE", !18, i64 0, !18, i64 8, !18, i64 16, !20, i64 24, !20, i64 28, !20, i64 32, !20, i64 36, !20, i64 40, !20, i64 44, !20, i64 48, !20, i64 52, !20, i64 56, !20, i64 60, !20, i64 64, !20, i64 68, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !41, i64 120, !41, i64 121, !42, i64 124, !42, i64 128, !20, i64 132, !47, i64 136, !47, i64 138}
!47 = !{!"_ZTS6__half", !48, i64 0}
!48 = !{!"short", !10, i64 0}
!49 = !{!46, !18, i64 8}
!50 = !{!46, !18, i64 16}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass