; LLVM IR from NVIDIA/TensorRT :: plugin/skipLayerNormPlugin (skipLayerNormInt8InterleavedPluginLegacy)

; 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"

%"struct.nvinfer1::DynamicPluginTensorDesc" = type { %"struct.nvinfer1::PluginTensorDesc", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64" }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy" = type <{ %"class.nvinfer1::IPluginV2DynamicExt", ptr, %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", %"class.std::unique_ptr", i64, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i64, i8, [7 x i8] }>
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = 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::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.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }

@.str = external hidden unnamed_addr constant [121 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [61 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef) #1

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

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

; 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)) #5

declare void @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i(ptr noundef nonnull align 8 dereferenceable(129) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %16 = load ptr, ptr %6, align 8
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %25, label %19

19:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 237, i32 noundef 0, ptr noundef @.str.10) #7
          to label %20 unwind label %21

20:                                               ; preds = %19
  unreachable

21:                                               ; preds = %60, %51, %42, %37, %28, %19
  %22 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %23 = extractvalue { ptr, i32 } %22, 0
  store ptr %23, ptr %11, align 8
  %24 = extractvalue { ptr, i32 } %22, 1
  store i32 %24, ptr %12, align 4
  br label %85

25:                                               ; preds = %5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %30, label %28

28:                                               ; preds = %25
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 238, i32 noundef 0, ptr noundef @.str.17) #7
          to label %29 unwind label %21

29:                                               ; preds = %28
  unreachable

30:                                               ; preds = %25
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = load ptr, ptr %16, align 8, !tbaa !11
  %33 = getelementptr inbounds ptr, ptr %32, i64 3
  %34 = load ptr, ptr %33, align 8
  %35 = call noundef i32 %34(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %36 = icmp eq i32 %31, %35
  br i1 %36, label %39, label %37

37:                                               ; preds = %30
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 239, i32 noundef 0, ptr noundef @.str.15) #7
          to label %38 unwind label %21

38:                                               ; preds = %37
  unreachable

39:                                               ; preds = %30
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 2
  br i1 %41, label %44, label %42

42:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 240, i32 noundef 0, ptr noundef @.str.11) #7
          to label %43 unwind label %21

43:                                               ; preds = %42
  unreachable

44:                                               ; preds = %39
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %45, i64 0
  %47 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 8, !tbaa !13
  %50 = icmp eq i32 2, %49
  br i1 %50, label %53, label %51

51:                                               ; preds = %44
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 241, i32 noundef 0, ptr noundef @.str.18) #7
          to label %52 unwind label %21

52:                                               ; preds = %51
  unreachable

53:                                               ; preds = %44
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %54, i64 1
  %56 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !13
  %59 = icmp eq i32 2, %58
  br i1 %59, label %62, label %60

60:                                               ; preds = %53
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 242, i32 noundef 0, ptr noundef @.str.19) #7
          to label %61 unwind label %21

61:                                               ; preds = %60
  unreachable

62:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %63, i64 0
  %65 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %65, i32 0, i32 0
  store ptr %66, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %67, i64 1
  %69 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %69, i32 0, i32 0
  store ptr %70, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !20
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !20
  %78 = icmp eq i32 %74, %77
  br i1 %78, label %96, label %79

79:                                               ; preds = %62
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 248, i32 noundef 0, ptr noundef @.str.20) #7
          to label %80 unwind label %81

80:                                               ; preds = %79
  unreachable

81:                                               ; preds = %132, %128, %126, %122, %113, %96, %79
  %82 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %11, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %85

85:                                               ; preds = %81, %21
  %86 = load i32, ptr %12, align 4
  %87 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %88 = icmp eq i32 %86, %87
  br i1 %88, label %89, label %140

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %90 = load ptr, ptr %11, align 8
  %91 = call ptr @__cxa_begin_catch(ptr %90) #8
  store ptr %91, ptr %15, align 8
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %92)
          to label %93 unwind label %137

93:                                               ; preds = %89
  invoke void @__cxa_end_catch()
          to label %94 unwind label %137

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %95

95:                                               ; preds = %136, %94
  ret void

96:                                               ; preds = %62
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %97, i32 0, i32 1
  %99 = getelementptr inbounds [8 x i64], ptr %98, i64 0, i64 0
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %100, i32 0, i32 1
  %102 = getelementptr inbounds [8 x i64], ptr %101, i64 0, i64 0
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !20
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i64, ptr %102, i64 %106
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds [8 x i64], ptr %109, i64 0, i64 0
  %111 = invoke noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef %99, ptr noundef %107, ptr noundef %110)
          to label %112 unwind label %81

112:                                              ; preds = %96
  br i1 %111, label %115, label %113

113:                                              ; preds = %112
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 249, i32 noundef 0, ptr noundef @.str.21) #7
          to label %114 unwind label %81

114:                                              ; preds = %113
  unreachable

115:                                              ; preds = %112
  %116 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef 1) #8
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 8
  store i64 %117, ptr %118, align 8, !tbaa !21
  %119 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 9
  %120 = load i8, ptr %119, align 8, !tbaa !38, !range !39, !noundef !40
  %121 = trunc i8 %120 to i1
  br i1 %121, label %136, label %122

122:                                              ; preds = %115
  %123 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 6
  %124 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 6
  %125 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %124, i32 noundef 1)
          to label %126 unwind label %81

126:                                              ; preds = %122
  %127 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 3
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %125, ptr noundef nonnull align 8 dereferenceable(8) %127)
          to label %128 unwind label %81

128:                                              ; preds = %126
  %129 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 7
  %130 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 7
  %131 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %130, i32 noundef 1)
          to label %132 unwind label %81

132:                                              ; preds = %128
  %133 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 4
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %131, ptr noundef nonnull align 8 dereferenceable(8) %133)
          to label %134 unwind label %81

134:                                              ; preds = %132
  %135 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBaseLegacy", ptr %16, i32 0, i32 9
  store i8 1, ptr %135, align 8, !tbaa !38
  br label %136

136:                                              ; preds = %134, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %95

137:                                              ; preds = %93, %89
  %138 = landingpad { ptr, i32 }
          catch ptr null
  %139 = extractvalue { ptr, i32 } %138, 0
  call void @__clang_call_terminate(ptr %139) #9
  unreachable

140:                                              ; preds = %85
  %141 = load ptr, ptr %11, align 8
  call void @__clang_call_terminate(ptr %141) #9
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { noreturn }
attributes #8 = { nounwind }
attributes #9 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !17, i64 72}
!14 = !{!"_ZTSN8nvinfer123DynamicPluginTensorDescE", !15, i64 0, !16, i64 88, !16, i64 160, !16, i64 232}
!15 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !16, i64 0, !17, i64 72, !18, i64 76, !19, i64 80}
!16 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!17 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!18 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!16, !10, i64 0}
!21 = !{!22, !28, i64 120}
!22 = !{!"_ZTSN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacyE", !23, i64 0, !6, i64 8, !26, i64 16, !29, i64 48, !29, i64 56, !28, i64 64, !35, i64 72, !35, i64 96, !28, i64 120, !37, i64 128}
!23 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !24, i64 0}
!24 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !25, i64 0}
!25 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!35 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !36, i64 0}
!36 = !{!"_ZTSN8nvinfer17WeightsE", !17, i64 0, !6, i64 8, !28, i64 16}
!37 = !{!"bool", !7, i64 0}
!38 = !{!22, !37, i64 128}
!39 = !{i8 0, i8 2}
!40 = !{}


; 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"

@.str = external hidden unnamed_addr constant [121 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [61 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef) local_unnamed_addr #1

; 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 #4

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i(ptr noundef nonnull align 8 dereferenceable(129) %0, ptr noundef %1, i32 noundef %2, ptr noundef readnone %3, i32 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.invoke, label %8

6:                                                ; preds = %.invoke
  %7 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %34

8:                                                ; preds = %5
  %.not22 = icmp eq ptr %3, null
  br i1 %.not22, label %.invoke, label %9

9:                                                ; preds = %8
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 24
  %12 = load ptr, ptr %11, align 8
  %13 = tail call noundef i32 %12(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %14 = icmp eq i32 %13, %4
  br i1 %14, label %15, label %.invoke

15:                                               ; preds = %9
  %16 = icmp eq i32 %2, 2
  br i1 %16, label %17, label %.invoke

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %1, i64 72
  %19 = load i32, ptr %18, align 8, !tbaa !8
  %20 = icmp eq i32 %19, 2
  br i1 %20, label %21, label %.invoke

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %1, i64 376
  %23 = load i32, ptr %22, align 8, !tbaa !8
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %27, label %.invoke

.invoke:                                          ; preds = %5, %21, %17, %15, %9, %8
  %25 = phi i32 [ 238, %8 ], [ 239, %9 ], [ 240, %15 ], [ 241, %17 ], [ 242, %21 ], [ 237, %5 ]
  %26 = phi ptr [ @.str.17, %8 ], [ @.str.15, %9 ], [ @.str.11, %15 ], [ @.str.18, %17 ], [ @.str.19, %21 ], [ @.str.10, %5 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef %25, i32 noundef 0, ptr noundef nonnull %26) #7
          to label %.cont unwind label %6

.cont:                                            ; preds = %.invoke
  unreachable

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %1, i64 304
  %29 = load i32, ptr %1, align 8, !tbaa !17
  %30 = load i32, ptr %28, align 8, !tbaa !17
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %41, label %.invoke24

32:                                               ; preds = %.invoke24, %61, %57, %41
  %33 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %34

34:                                               ; preds = %32, %6
  %.pn = phi { ptr, i32 } [ %33, %32 ], [ %7, %6 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.019 = extractvalue { ptr, i32 } %.pn, 1
  %35 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #6
  %36 = icmp eq i32 %.019, %35
  br i1 %36, label %37, label %69

37:                                               ; preds = %34
  %38 = tail call ptr @__cxa_begin_catch(ptr %.0) #6
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %39 unwind label %66

39:                                               ; preds = %37
  invoke void @__cxa_end_catch()
          to label %40 unwind label %66

40:                                               ; preds = %50, %65, %39
  ret void

41:                                               ; preds = %27
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = sext i32 %29 to i64
  %44 = getelementptr inbounds i64, ptr %42, i64 %43
  %45 = getelementptr inbounds i8, ptr %1, i64 312
  %46 = invoke noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef nonnull %42, ptr noundef nonnull %44, ptr noundef nonnull %45)
          to label %47 unwind label %32

47:                                               ; preds = %41
  br i1 %46, label %50, label %.invoke24

.invoke24:                                        ; preds = %27, %47
  %48 = phi i32 [ 249, %47 ], [ 248, %27 ]
  %49 = phi ptr [ @.str.21, %47 ], [ @.str.20, %27 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacy15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef %48, i32 noundef 0, ptr noundef nonnull %49) #7
          to label %.cont25 unwind label %32

.cont25:                                          ; preds = %.invoke24
  unreachable

50:                                               ; preds = %47
  %51 = tail call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef 1) #6
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds i8, ptr %0, i64 120
  store i64 %52, ptr %53, align 8, !tbaa !18
  %54 = getelementptr inbounds i8, ptr %0, i64 128
  %55 = load i8, ptr %54, align 8, !tbaa !36, !range !37, !noundef !38
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %40, label %57

57:                                               ; preds = %50
  %58 = getelementptr inbounds i8, ptr %0, i64 72
  %59 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %58, i32 noundef 1)
  %60 = getelementptr inbounds i8, ptr %0, i64 48
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %59, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %61 unwind label %32

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %0, i64 96
  %63 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %62, i32 noundef 1)
  %64 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %63, ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %65 unwind label %32

65:                                               ; preds = %61
  store i8 1, ptr %54, align 8, !tbaa !36
  br label %40

66:                                               ; preds = %39, %37
  %67 = landingpad { ptr, i32 }
          catch ptr null
  %68 = extractvalue { ptr, i32 } %67, 0
  tail call void @__clang_call_terminate(ptr %68) #8
  unreachable

69:                                               ; preds = %34
  tail call void @__clang_call_terminate(ptr %.0) #8
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1

attributes #0 = { 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 #1 = { 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 #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 = { 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 #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 = { nounwind }
attributes #7 = { noreturn }
attributes #8 = { 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, !14, i64 72}
!9 = !{!"_ZTSN8nvinfer123DynamicPluginTensorDescE", !10, i64 0, !11, i64 88, !11, i64 160, !11, i64 232}
!10 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !11, i64 0, !14, i64 72, !15, i64 76, !16, i64 80}
!11 = !{!"_ZTSN8nvinfer16Dims64E", !12, i64 0, !13, i64 8}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"_ZTSN8nvinfer18DataTypeE", !13, i64 0}
!15 = !{!"_ZTSN8nvinfer112TensorFormatE", !13, i64 0}
!16 = !{!"float", !13, i64 0}
!17 = !{!11, !12, i64 0}
!18 = !{!19, !26, i64 120}
!19 = !{!"_ZTSN8nvinfer16plugin4bert40SkipLayerNormInterleavedPluginBaseLegacyE", !20, i64 0, !23, i64 8, !24, i64 16, !27, i64 48, !27, i64 56, !26, i64 64, !33, i64 72, !33, i64 96, !26, i64 120, !35, i64 128}
!20 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !21, i64 0}
!21 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!23 = !{!"any pointer", !13, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !13, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !23, i64 0}
!26 = !{!"long", !13, i64 0}
!27 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !30, i64 0}
!30 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !31, i64 0}
!31 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !32, i64 0}
!32 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !23, i64 0}
!33 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !34, i64 0}
!34 = !{!"_ZTSN8nvinfer17WeightsE", !14, i64 0, !23, i64 8, !26, i64 16}
!35 = !{!"bool", !13, i64 0}
!36 = !{!19, !35, i64 128}
!37 = !{i8 0, i8 2}
!38 = !{}


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