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

; 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::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase" = type <{ %"class.nvinfer1::v_1_0::IPluginV3", %"class.nvinfer1::v_1_0::IPluginV3OneCore", %"class.nvinfer1::v_1_0::IPluginV3OneBuild", %"class.nvinfer1::v_1_0::IPluginV3OneRuntime", ptr, %"class.std::__cxx11::basic_string", %"class.std::vector", %"struct.nvinfer1::PluginFieldCollection", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"class.std::unique_ptr", %"class.std::unique_ptr", i64, i64, i8, [7 x i8] }>
%"class.nvinfer1::v_1_0::IPluginV3" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::IVersionedInterface" = type { ptr }
%"class.nvinfer1::v_1_0::IPluginV3OneCore" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.nvinfer1::v_1_0::IPluginCapability" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::v_1_0::IPluginV3OneBuild" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.nvinfer1::v_1_0::IPluginV3OneRuntime" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl" }
%"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl" = type { %"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.nvinfer1::PluginFieldCollection" = type { i32, 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.5" }
%"struct.std::_Head_base.5" = type { ptr }

@.str = external hidden unnamed_addr constant [115 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.22 = 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: 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) #3

declare ptr @__cxa_begin_catch(ptr)

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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i(ptr noundef nonnull align 8 dereferenceable(193) %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 i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  %17 = load ptr, ptr %7, align 8
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %26, label %20

20:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 241, i32 noundef 0, ptr noundef @.str.15) #7
          to label %21 unwind label %22

21:                                               ; preds = %20
  unreachable

22:                                               ; preds = %60, %52, %44, %39, %29, %20
  %23 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %12, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %13, align 4
  br label %83

26:                                               ; preds = %5
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %31, label %29

29:                                               ; preds = %26
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 242, i32 noundef 0, ptr noundef @.str.16) #7
          to label %30 unwind label %22

30:                                               ; preds = %29
  unreachable

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

39:                                               ; preds = %31
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 243, i32 noundef 0, ptr noundef @.str.17) #7
          to label %40 unwind label %22

40:                                               ; preds = %39
  unreachable

41:                                               ; preds = %31
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 2
  br i1 %43, label %46, label %44

44:                                               ; preds = %41
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 244, i32 noundef 0, ptr noundef @.str.18) #7
          to label %45 unwind label %22

45:                                               ; preds = %44
  unreachable

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

52:                                               ; preds = %46
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 245, i32 noundef 0, ptr noundef @.str.19) #7
          to label %53 unwind label %22

53:                                               ; preds = %52
  unreachable

54:                                               ; preds = %46
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %55, i64 1
  %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 = %54
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 246, i32 noundef 0, ptr noundef @.str.20) #7
          to label %61 unwind label %22

61:                                               ; preds = %60
  unreachable

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

77:                                               ; preds = %62
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 252, i32 noundef 0, ptr noundef @.str.21) #7
          to label %78 unwind label %79

78:                                               ; preds = %77
  unreachable

79:                                               ; preds = %130, %126, %124, %120, %111, %94, %77
  %80 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %83

83:                                               ; preds = %79, %22
  %84 = load i32, ptr %13, align 4
  %85 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %86 = icmp eq i32 %84, %85
  br i1 %86, label %87, label %140

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %88 = load ptr, ptr %12, align 8
  %89 = call ptr @__cxa_begin_catch(ptr %88) #8
  store ptr %89, ptr %16, align 8
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %90)
          to label %91 unwind label %137

91:                                               ; preds = %87
  invoke void @__cxa_end_catch()
          to label %92 unwind label %137

92:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %93

93:                                               ; preds = %92
  store i32 1, ptr %6, align 4
  br label %135

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

110:                                              ; preds = %94
  br i1 %109, label %113, label %111

111:                                              ; preds = %110
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 253, i32 noundef 0, ptr noundef @.str.22) #7
          to label %112 unwind label %79

112:                                              ; preds = %111
  unreachable

113:                                              ; preds = %110
  %114 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef 1) #8
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 13
  store i64 %115, ptr %116, align 8, !tbaa !20
  %117 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 14
  %118 = load i8, ptr %117, align 8, !tbaa !45, !range !46, !noundef !47
  %119 = trunc i8 %118 to i1
  br i1 %119, label %134, label %120

120:                                              ; preds = %113
  %121 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 8
  %122 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 8
  %123 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %122, i32 noundef 1)
          to label %124 unwind label %79

124:                                              ; preds = %120
  %125 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 10
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %123, ptr noundef nonnull align 8 dereferenceable(8) %125)
          to label %126 unwind label %79

126:                                              ; preds = %124
  %127 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 9
  %128 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 9
  %129 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %128, i32 noundef 1)
          to label %130 unwind label %79

130:                                              ; preds = %126
  %131 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 11
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129, ptr noundef nonnull align 8 dereferenceable(8) %131)
          to label %132 unwind label %79

132:                                              ; preds = %130
  %133 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormInterleavedPluginBase", ptr %17, i32 0, i32 14
  store i8 1, ptr %133, align 8, !tbaa !45
  br label %134

134:                                              ; preds = %132, %113
  store i32 0, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %135

135:                                              ; preds = %134, %93
  %136 = load i32, ptr %6, align 4
  ret i32 %136

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

140:                                              ; preds = %83
  %141 = load ptr, ptr %12, 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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !16, i64 72}
!14 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !15, i64 0, !16, i64 72, !17, i64 76, !18, i64 80}
!15 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!16 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!17 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!15, !10, i64 0}
!20 = !{!21, !30, i64 184}
!21 = !{!"_ZTSN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBaseE", !22, i64 0, !24, i64 8, !26, i64 16, !27, i64 24, !6, i64 32, !28, i64 40, !31, i64 72, !35, i64 96, !36, i64 112, !36, i64 136, !38, i64 160, !38, i64 168, !30, i64 176, !30, i64 184, !44, i64 192}
!22 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!24 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !25, i64 0}
!25 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !23, i64 0}
!26 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !25, i64 0}
!27 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !25, i64 0}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !30, i64 8, !7, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!30 = !{!"long", !7, i64 0}
!31 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !10, i64 0, !6, i64 8}
!36 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !37, i64 0}
!37 = !{!"_ZTSN8nvinfer17WeightsE", !16, i64 0, !6, i64 8, !30, i64 16}
!38 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !40, i64 0}
!40 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !41, i64 0}
!41 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !42, i64 0}
!42 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !43, i64 0}
!43 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!44 = !{!"bool", !7, i64 0}
!45 = !{!21, !44, i64 192}
!46 = !{i8 0, i8 2}
!47 = !{}


; 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 [115 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.22 = 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 noundef range(i32 0, 2) i32 @_ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i(ptr noundef nonnull align 8 dereferenceable(193) %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 %35

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

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

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

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

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %1, i64 160
  %24 = load i32, ptr %23, align 8, !tbaa !8
  %25 = icmp eq i32 %24, 2
  br i1 %25, label %28, label %.invoke

.invoke:                                          ; preds = %5, %22, %18, %16, %9, %8
  %26 = phi i32 [ 242, %8 ], [ 243, %9 ], [ 244, %16 ], [ 245, %18 ], [ 246, %22 ], [ 241, %5 ]
  %27 = phi ptr [ @.str.16, %8 ], [ @.str.17, %9 ], [ @.str.18, %16 ], [ @.str.19, %18 ], [ @.str.20, %22 ], [ @.str.15, %5 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef %26, i32 noundef 0, ptr noundef nonnull %27) #7
          to label %.cont unwind label %6

.cont:                                            ; preds = %.invoke
  unreachable

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %1, i64 88
  %30 = load i32, ptr %1, align 8, !tbaa !16
  %31 = load i32, ptr %29, align 8, !tbaa !16
  %32 = icmp eq i32 %30, %31
  br i1 %32, label %41, label %.invoke26

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

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

38:                                               ; preds = %35
  %39 = tail call ptr @__cxa_begin_catch(ptr %.020) #6
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %40 unwind label %67

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

41:                                               ; preds = %28
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = sext i32 %30 to i64
  %44 = getelementptr inbounds i64, ptr %42, i64 %43
  %45 = getelementptr inbounds i8, ptr %1, i64 96
  %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 %33

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

.invoke26:                                        ; preds = %28, %47
  %48 = phi i32 [ 253, %47 ], [ 252, %28 ]
  %49 = phi ptr [ @.str.22, %47 ], [ @.str.21, %28 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBase13onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef %48, i32 noundef 0, ptr noundef nonnull %49) #7
          to label %.cont27 unwind label %33

.cont27:                                          ; preds = %.invoke26
  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 184
  store i64 %52, ptr %53, align 8, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %0, i64 192
  %55 = load i8, ptr %54, align 8, !tbaa !43, !range !44, !noundef !45
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %66, label %57

57:                                               ; preds = %50
  %58 = getelementptr inbounds i8, ptr %0, i64 112
  %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 160
  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 %33

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %0, i64 136
  %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 168
  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 %33

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

66:                                               ; preds = %50, %65, %40
  %.0 = phi i32 [ 1, %40 ], [ 0, %65 ], [ 0, %50 ]
  ret i32 %.0

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

70:                                               ; preds = %35
  tail call void @__clang_call_terminate(ptr %.020) #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, !13, i64 72}
!9 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !10, i64 0, !13, i64 72, !14, i64 76, !15, i64 80}
!10 = !{!"_ZTSN8nvinfer16Dims64E", !11, i64 0, !12, i64 8}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSN8nvinfer18DataTypeE", !12, i64 0}
!14 = !{!"_ZTSN8nvinfer112TensorFormatE", !12, i64 0}
!15 = !{!"float", !12, i64 0}
!16 = !{!10, !11, i64 0}
!17 = !{!18, !28, i64 184}
!18 = !{!"_ZTSN8nvinfer16plugin4bert34SkipLayerNormInterleavedPluginBaseE", !19, i64 0, !21, i64 8, !23, i64 16, !24, i64 24, !25, i64 32, !26, i64 40, !29, i64 72, !33, i64 96, !34, i64 112, !34, i64 136, !36, i64 160, !36, i64 168, !28, i64 176, !28, i64 184, !42, i64 192}
!19 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !20, i64 0}
!20 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!21 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !20, i64 0}
!23 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !22, i64 0}
!24 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !22, i64 0}
!25 = !{!"any pointer", !12, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !12, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !25, i64 0}
!28 = !{!"long", !12, i64 0}
!29 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !25, i64 0, !25, i64 8, !25, i64 16}
!33 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !11, i64 0, !25, i64 8}
!34 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !35, i64 0}
!35 = !{!"_ZTSN8nvinfer17WeightsE", !13, i64 0, !25, i64 8, !28, i64 16}
!36 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !39, i64 0}
!39 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !40, i64 0}
!40 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !41, i64 0}
!41 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !25, i64 0}
!42 = !{!"bool", !12, i64 0}
!43 = !{!18, !42, i64 192}
!44 = !{i8 0, i8 2}
!45 = !{}


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