; LLVM IR from NVIDIA/TensorRT :: plugin/embLayerNormPlugin (embLayerNormVarSeqlenPlugin)

; 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::EmbLayerNormVarSeqlenPluginBase" = 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", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr.6", %"class.std::unique_ptr.6", %"class.std::unique_ptr.6", i64, i64, i64, i64, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, %"class.std::vector", %"struct.nvinfer1::PluginFieldCollection" }
%"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::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 }
%"class.std::unique_ptr.6" = type { %"struct.std::__uniq_ptr_data.7" }
%"struct.std::__uniq_ptr_data.7" = type { %"class.std::__uniq_ptr_impl.8" }
%"class.std::__uniq_ptr_impl.8" = type { %"class.std::tuple.9" }
%"class.std::tuple.9" = type { %"struct.std::_Tuple_impl.10" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Head_base.13" }
%"struct.std::_Head_base.13" = type { ptr }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"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 }

@.str = external hidden unnamed_addr constant [107 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.23 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [26 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) #0

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

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

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) #3

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

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) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_124checkConfigurationInputsEPKN8nvinfer116PluginTensorDescEiS3_i(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginMTron13onShapeChangeEPKNS_16PluginTensorDescEiS5_i(ptr noundef nonnull align 8 dereferenceable(336) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #5 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
  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
  %15 = load ptr, ptr %7, align 8
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  %19 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN12_GLOBAL__N_124checkConfigurationInputsEPKN8nvinfer116PluginTensorDescEiS3_i(ptr noundef %16, i32 noundef %17, ptr noundef %18, i32 noundef %19) #6
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %20, i64 0
  %22 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %22, i32 0, i32 1
  %24 = getelementptr inbounds [8 x i64], ptr %23, i64 0, i64 1
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 11
  %27 = load i64, ptr %26, align 8, !tbaa !13
  %28 = icmp eq i64 %25, %27
  br i1 %28, label %46, label %29

29:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.23, ptr noundef @.str, i32 noundef 345)
          to label %30 unwind label %31

30:                                               ; preds = %29
  br label %46

31:                                               ; preds = %121, %111, %101, %91, %81, %69, %53, %29
  %32 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %12, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %13, align 4
  br label %35

35:                                               ; preds = %31
  %36 = load i32, ptr %13, align 4
  %37 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #6
  %38 = icmp eq i32 %36, %37
  br i1 %38, label %39, label %129

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %40 = load ptr, ptr %12, align 8
  %41 = call ptr @__cxa_begin_catch(ptr %40) #6
  store ptr %41, ptr %14, align 8
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %43 unwind label %126

43:                                               ; preds = %39
  invoke void @__cxa_end_catch()
          to label %44 unwind label %126

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %45

45:                                               ; preds = %44
  store i32 1, ptr %6, align 4
  br label %124

46:                                               ; preds = %30, %5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %47, i64 1
  %49 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !43
  %52 = icmp eq i32 %51, 4
  br i1 %52, label %55, label %53

53:                                               ; preds = %46
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.28, ptr noundef @.str, i32 noundef 347)
          to label %54 unwind label %31

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54, %46
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %56, i64 1
  %58 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %58, i32 0, i32 1
  %60 = getelementptr inbounds [8 x i64], ptr %59, i64 0, i64 0
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %62, i64 0
  %64 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %64, i32 0, i32 1
  %66 = getelementptr inbounds [8 x i64], ptr %65, i64 0, i64 0
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = icmp eq i64 %61, %67
  br i1 %68, label %71, label %69

69:                                               ; preds = %55
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.29, ptr noundef @.str, i32 noundef 348)
          to label %70 unwind label %31

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70, %55
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %72, i64 1
  %74 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %74, i32 0, i32 1
  %76 = getelementptr inbounds [8 x i64], ptr %75, i64 0, i64 1
  %77 = load i64, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 11
  %79 = load i64, ptr %78, align 8, !tbaa !13
  %80 = icmp eq i64 %77, %79
  br i1 %80, label %83, label %81

81:                                               ; preds = %71
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.30, ptr noundef @.str, i32 noundef 349)
          to label %82 unwind label %31

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82, %71
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %84, i64 1
  %86 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds [8 x i64], ptr %87, i64 0, i64 2
  %89 = load i64, ptr %88, align 8, !tbaa !11
  %90 = icmp eq i64 %89, 1
  br i1 %90, label %93, label %91

91:                                               ; preds = %83
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.31, ptr noundef @.str, i32 noundef 350)
          to label %92 unwind label %31

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92, %83
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %94, i64 1
  %96 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %96, i32 0, i32 1
  %98 = getelementptr inbounds [8 x i64], ptr %97, i64 0, i64 3
  %99 = load i64, ptr %98, align 8, !tbaa !11
  %100 = icmp eq i64 %99, 1
  br i1 %100, label %103, label %101

101:                                              ; preds = %93
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.32, ptr noundef @.str, i32 noundef 351)
          to label %102 unwind label %31

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102, %93
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %104, i64 0
  %106 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !48
  %108 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 20
  %109 = load i32, ptr %108, align 8, !tbaa !49
  %110 = icmp eq i32 %107, %109
  br i1 %110, label %113, label %111

111:                                              ; preds = %103
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.24, ptr noundef @.str, i32 noundef 353)
          to label %112 unwind label %31

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112, %103
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %114, i64 1
  %116 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !48
  %118 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 21
  %119 = load i32, ptr %118, align 4, !tbaa !50
  %120 = icmp eq i32 %117, %119
  br i1 %120, label %123, label %121

121:                                              ; preds = %113
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.26, ptr noundef @.str, i32 noundef 354)
          to label %122 unwind label %31

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122, %113
  store i32 0, ptr %6, align 4
  br label %124

124:                                              ; preds = %123, %45
  %125 = load i32, ptr %6, align 4
  ret i32 %125

126:                                              ; preds = %43, %39
  %127 = landingpad { ptr, i32 }
          catch ptr null
  %128 = extractvalue { ptr, i32 } %127, 0
  call void @__clang_call_terminate(ptr %128) #7
  unreachable

129:                                              ; preds = %35
  %130 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %130) #7
  unreachable
}

attributes #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 #1 = { nounwind memory(none) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 136}
!14 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormVarSeqlenPluginBaseE", !15, i64 0, !17, i64 8, !19, i64 16, !20, i64 24, !21, i64 32, !21, i64 64, !23, i64 96, !23, i64 104, !29, i64 112, !29, i64 120, !29, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !35, i64 168, !35, i64 192, !35, i64 216, !35, i64 240, !35, i64 264, !37, i64 288, !37, i64 292, !38, i64 296, !42, i64 320}
!15 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!17 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !16, i64 0}
!19 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !18, i64 0}
!20 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !18, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !12, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !6, 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", !37, i64 0, !6, i64 8, !12, i64 16}
!37 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!38 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !10, i64 0, !6, i64 8}
!43 = !{!44, !10, i64 0}
!44 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !45, i64 0, !37, i64 72, !46, i64 76, !47, i64 80}
!45 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!46 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!47 = !{!"float", !7, i64 0}
!48 = !{!44, !37, i64 72}
!49 = !{!14, !37, i64 288}
!50 = !{!14, !37, i64 292}


; 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 [107 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.23 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [26 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

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 #3

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_124checkConfigurationInputsEPKN8nvinfer116PluginTensorDescEiS3_i(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginMTron13onShapeChangeEPKNS_16PluginTensorDescEiS5_i(ptr nocapture noundef nonnull readonly align 8 dereferenceable(336) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN12_GLOBAL__N_124checkConfigurationInputsEPKN8nvinfer116PluginTensorDescEiS3_i(ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #5
  %6 = getelementptr inbounds i8, ptr %3, i64 16
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 136
  %9 = load i64, ptr %8, align 8, !tbaa !9
  %10 = icmp eq i64 %7, %9
  br i1 %10, label %21, label %11

11:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str, i32 noundef 345)
          to label %21 unwind label %12

12:                                               ; preds = %62, %55, %48, %43, %38, %32, %25, %11
  %13 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %14 = extractvalue { ptr, i32 } %13, 0
  %15 = extractvalue { ptr, i32 } %13, 1
  %16 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #5
  %17 = icmp eq i32 %15, %16
  br i1 %17, label %18, label %67

18:                                               ; preds = %12
  %19 = tail call ptr @__cxa_begin_catch(ptr %14) #5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %20 unwind label %64

20:                                               ; preds = %18
  invoke void @__cxa_end_catch()
          to label %63 unwind label %64

21:                                               ; preds = %11, %5
  %22 = getelementptr inbounds i8, ptr %3, i64 88
  %23 = load i32, ptr %22, align 8, !tbaa !41
  %24 = icmp eq i32 %23, 4
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str, i32 noundef 347)
          to label %26 unwind label %12

26:                                               ; preds = %25, %21
  %27 = getelementptr inbounds i8, ptr %3, i64 96
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %1, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = icmp eq i64 %28, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str, i32 noundef 348)
          to label %33 unwind label %12

33:                                               ; preds = %32, %26
  %34 = getelementptr inbounds i8, ptr %3, i64 104
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = load i64, ptr %8, align 8, !tbaa !9
  %37 = icmp eq i64 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str, i32 noundef 349)
          to label %39 unwind label %12

39:                                               ; preds = %38, %33
  %40 = getelementptr inbounds i8, ptr %3, i64 112
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = icmp eq i64 %41, 1
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str, i32 noundef 350)
          to label %44 unwind label %12

44:                                               ; preds = %43, %39
  %45 = getelementptr inbounds i8, ptr %3, i64 120
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = icmp eq i64 %46, 1
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str, i32 noundef 351)
          to label %49 unwind label %12

49:                                               ; preds = %48, %44
  %50 = getelementptr inbounds i8, ptr %3, i64 72
  %51 = load i32, ptr %50, align 8, !tbaa !46
  %52 = getelementptr inbounds i8, ptr %0, i64 288
  %53 = load i32, ptr %52, align 8, !tbaa !47
  %54 = icmp eq i32 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %49
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str, i32 noundef 353)
          to label %56 unwind label %12

56:                                               ; preds = %55, %49
  %57 = getelementptr inbounds i8, ptr %3, i64 160
  %58 = load i32, ptr %57, align 8, !tbaa !46
  %59 = getelementptr inbounds i8, ptr %0, i64 292
  %60 = load i32, ptr %59, align 4, !tbaa !48
  %61 = icmp eq i32 %58, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str, i32 noundef 354)
          to label %63 unwind label %12

63:                                               ; preds = %56, %62, %20
  %.0 = phi i32 [ 1, %20 ], [ 0, %62 ], [ 0, %56 ]
  ret i32 %.0

64:                                               ; preds = %20, %18
  %65 = landingpad { ptr, i32 }
          catch ptr null
  %66 = extractvalue { ptr, i32 } %65, 0
  tail call void @__clang_call_terminate(ptr %66) #6
  unreachable

67:                                               ; preds = %12
  tail call void @__clang_call_terminate(ptr %14) #6
  unreachable
}

attributes #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 #1 = { nofree nosync nounwind memory(none) }
attributes #2 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 136}
!10 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormVarSeqlenPluginBaseE", !11, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !17, i64 32, !17, i64 64, !20, i64 96, !20, i64 104, !26, i64 112, !26, i64 120, !26, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !32, i64 168, !32, i64 192, !32, i64 216, !32, i64 240, !32, i64 264, !34, i64 288, !34, i64 292, !35, i64 296, !39, i64 320}
!11 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !12, i64 0}
!12 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!13 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !12, i64 0}
!15 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !14, i64 0}
!16 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !14, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !6, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !23, i64 0}
!23 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !24, i64 0}
!24 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !25, i64 0}
!25 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !19, i64 0}
!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", !19, i64 0}
!32 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !33, i64 0}
!33 = !{!"_ZTSN8nvinfer17WeightsE", !34, i64 0, !19, i64 8, !6, i64 16}
!34 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!35 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!39 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !40, i64 0, !19, i64 8}
!40 = !{!"int", !7, i64 0}
!41 = !{!42, !40, i64 0}
!42 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !43, i64 0, !34, i64 72, !44, i64 76, !45, i64 80}
!43 = !{!"_ZTSN8nvinfer16Dims64E", !40, i64 0, !7, i64 8}
!44 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!45 = !{!"float", !7, i64 0}
!46 = !{!42, !34, i64 72}
!47 = !{!10, !34, i64 288}
!48 = !{!10, !34, i64 292}


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