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

%"class.nvinfer1::plugin::LogStream" = type { %"class.std::basic_ostream.base", %"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kERROR>::Buf", %"class.std::mutex", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kERROR>::Buf" = type { %"class.std::__cxx11::basic_stringbuf" }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.nvinfer1::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::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
@__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [64 x i8], align 1
@_ZN8nvinfer16plugin9gLogErrorE = external global %"class.nvinfer1::plugin::LogStream", align 8
@.str.34 = external hidden unnamed_addr constant [63 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: 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 dso_local noundef ptr @_ZNKSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginMTron7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(336) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %38 = load ptr, ptr %9, align 8
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %47

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

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

47:                                               ; preds = %44, %41, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st, i32 noundef 447, i32 noundef 0, ptr noundef @.str.33) #8
          to label %48 unwind label %49

48:                                               ; preds = %47
  unreachable

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

53:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %54, i64 2
  %56 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds [8 x i64], ptr %57, i64 0, i64 0
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = sub nsw i64 %59, 1
  %61 = trunc i64 %60 to i32
  store i32 %61, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %62, i64 3
  %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 !9
  %68 = trunc i64 %67 to i32
  store i32 %68, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 384, ptr %20, align 4, !tbaa !11
  %69 = load i32, ptr %19, align 4, !tbaa !11
  %70 = icmp sle i32 %69, 128
  br i1 %70, label %71, label %72

71:                                               ; preds = %53
  store i32 128, ptr %20, align 4, !tbaa !11
  br label %82

72:                                               ; preds = %53
  %73 = load i32, ptr %19, align 4, !tbaa !11
  %74 = icmp sle i32 %73, 192
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  store i32 192, ptr %20, align 4, !tbaa !11
  br label %81

76:                                               ; preds = %72
  %77 = load i32, ptr %19, align 4, !tbaa !11
  %78 = icmp sle i32 %77, 256
  br i1 %78, label %79, label %80

79:                                               ; preds = %76
  store i32 256, ptr %20, align 4, !tbaa !11
  br label %80

80:                                               ; preds = %79, %76
  br label %81

81:                                               ; preds = %80, %75
  br label %82

82:                                               ; preds = %81, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds ptr, ptr %83, i64 0
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  store ptr %85, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i64 1
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  store ptr %88, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds ptr, ptr %89, i64 2
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  store ptr %91, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %92 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 7
  %93 = call noundef ptr @_ZNKSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %92) #9
  store ptr %93, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %94 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 6
  %95 = call noundef ptr @_ZNKSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %94) #9
  store ptr %95, ptr %25, align 8, !tbaa !5
  %96 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 20
  %97 = load i32, ptr %96, align 8, !tbaa !13
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %140

99:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds ptr, ptr %100, i64 0
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  store ptr %102, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds ptr, ptr %103, i64 1
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  store ptr %105, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %106 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 8
  %107 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %106) #9
  store ptr %107, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %108 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 9
  %109 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %108) #9
  store ptr %109, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %110 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 10
  %111 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %110) #9
  store ptr %111, ptr %30, align 8, !tbaa !5
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 11
  %114 = load i64, ptr %113, align 8, !tbaa !43
  %115 = trunc i64 %114 to i32
  %116 = load i32, ptr %18, align 4, !tbaa !11
  %117 = load i32, ptr %20, align 4, !tbaa !11
  %118 = load ptr, ptr %21, align 8, !tbaa !5
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  %120 = load ptr, ptr %23, align 8, !tbaa !5
  %121 = load ptr, ptr %24, align 8, !tbaa !5
  %122 = load ptr, ptr %25, align 8, !tbaa !5
  %123 = load ptr, ptr %28, align 8, !tbaa !5
  %124 = load ptr, ptr %30, align 8, !tbaa !5
  %125 = load ptr, ptr %29, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 12
  %127 = load i64, ptr %126, align 8, !tbaa !44
  %128 = trunc i64 %127 to i32
  %129 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 14
  %130 = load i64, ptr %129, align 8, !tbaa !45
  %131 = trunc i64 %130 to i32
  %132 = load ptr, ptr %26, align 8, !tbaa !5
  %133 = load ptr, ptr %27, align 8, !tbaa !5
  %134 = invoke noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormMTronIfEEiP11CUstream_stiiiPKiS6_S6_PKfS8_PKT_SB_SB_iiPS9_SC_(ptr noundef %112, i32 noundef %115, i32 noundef %116, i32 noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125, i32 noundef %128, i32 noundef %131, ptr noundef %132, ptr noundef %133)
          to label %135 unwind label %136

135:                                              ; preds = %99
  store i32 %134, ptr %8, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %198

136:                                              ; preds = %99
  %137 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %16, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %199

140:                                              ; preds = %82
  %141 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 20
  %142 = load i32, ptr %141, align 8, !tbaa !13
  %143 = icmp eq i32 %142, 1
  br i1 %143, label %144, label %185

144:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds ptr, ptr %145, i64 0
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  store ptr %147, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = getelementptr inbounds ptr, ptr %148, i64 1
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  store ptr %150, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %151 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 8
  %152 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %151) #9
  store ptr %152, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %153 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 9
  %154 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %153) #9
  store ptr %154, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %155 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 10
  %156 = call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %155) #9
  store ptr %156, ptr %36, align 8, !tbaa !5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 11
  %159 = load i64, ptr %158, align 8, !tbaa !43
  %160 = trunc i64 %159 to i32
  %161 = load i32, ptr %18, align 4, !tbaa !11
  %162 = load i32, ptr %20, align 4, !tbaa !11
  %163 = load ptr, ptr %21, align 8, !tbaa !5
  %164 = load ptr, ptr %22, align 8, !tbaa !5
  %165 = load ptr, ptr %23, align 8, !tbaa !5
  %166 = load ptr, ptr %24, align 8, !tbaa !5
  %167 = load ptr, ptr %25, align 8, !tbaa !5
  %168 = load ptr, ptr %34, align 8, !tbaa !5
  %169 = load ptr, ptr %36, align 8, !tbaa !5
  %170 = load ptr, ptr %35, align 8, !tbaa !5
  %171 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 12
  %172 = load i64, ptr %171, align 8, !tbaa !44
  %173 = trunc i64 %172 to i32
  %174 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 14
  %175 = load i64, ptr %174, align 8, !tbaa !45
  %176 = trunc i64 %175 to i32
  %177 = load ptr, ptr %32, align 8, !tbaa !5
  %178 = load ptr, ptr %33, align 8, !tbaa !5
  %179 = invoke noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormMTronI6__halfEEiP11CUstream_stiiiPKiS7_S7_PKfS9_PKT_SC_SC_iiPSA_SD_(ptr noundef %157, i32 noundef %160, i32 noundef %161, i32 noundef %162, ptr noundef %163, ptr noundef %164, ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %169, ptr noundef %170, i32 noundef %173, i32 noundef %176, ptr noundef %177, ptr noundef %178)
          to label %180 unwind label %181

180:                                              ; preds = %144
  store i32 %179, ptr %8, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %198

181:                                              ; preds = %144
  %182 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %16, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %199

185:                                              ; preds = %140
  %186 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EA63_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152) @_ZN8nvinfer16plugin9gLogErrorE, ptr noundef nonnull align 1 dereferenceable(63) @.str.34)
          to label %187 unwind label %194

187:                                              ; preds = %185
  %188 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %38, i32 0, i32 20
  %189 = load i32, ptr %188, align 8, !tbaa !13
  %190 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_i(ptr noundef nonnull align 8 dereferenceable(152) %186, i32 noundef %189)
          to label %191 unwind label %194

191:                                              ; preds = %187
  %192 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152) %190, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %193 unwind label %194

193:                                              ; preds = %191
  store i32 3, ptr %8, align 4
  store i32 1, ptr %31, align 4
  br label %198

194:                                              ; preds = %191, %187, %185
  %195 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %16, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %17, align 4
  br label %199

198:                                              ; preds = %193, %180, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %211

199:                                              ; preds = %194, %181, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %200

200:                                              ; preds = %199, %49
  %201 = load i32, ptr %17, align 4
  %202 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %203 = icmp eq i32 %201, %202
  br i1 %203, label %204, label %216

204:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %205 = load ptr, ptr %16, align 8
  %206 = call ptr @__cxa_begin_catch(ptr %205) #9
  store ptr %206, ptr %37, align 8
  %207 = load ptr, ptr %37, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %207)
          to label %208 unwind label %213

208:                                              ; preds = %204
  invoke void @__cxa_end_catch()
          to label %209 unwind label %213

209:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %210

210:                                              ; preds = %209
  store i32 1, ptr %8, align 4
  br label %211

211:                                              ; preds = %210, %198
  %212 = load i32, ptr %8, align 4
  ret i32 %212

213:                                              ; preds = %208, %204
  %214 = landingpad { ptr, i32 }
          catch ptr null
  %215 = extractvalue { ptr, i32 } %214, 0
  call void @__clang_call_terminate(ptr %215) #10
  unreachable

216:                                              ; preds = %200
  %217 = load ptr, ptr %16, align 8
  call void @__clang_call_terminate(ptr %217) #10
  unreachable
}

declare noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormMTronIfEEiP11CUstream_stiiiPKiS6_S6_PKfS8_PKT_SB_SB_iiPS9_SC_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #7

declare noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormMTronI6__halfEEiP11CUstream_stiiiPKiS7_S7_PKfS9_PKT_SC_SC_iiPSA_SD_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #7

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 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { noreturn }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !37, i64 288}
!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, !10, i64 136, !10, i64 144, !10, i64 152, !10, 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, !10, 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, !10, 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", !12, i64 0, !6, i64 8}
!43 = !{!14, !10, i64 136}
!44 = !{!14, !10, i64 144}
!45 = !{!14, !10, i64 160}


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

%"class.nvinfer1::plugin::LogStream" = type { %"class.std::basic_ostream.base", %"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kERROR>::Buf", %"class.std::mutex", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kERROR>::Buf" = type { %"class.std::__cxx11::basic_stringbuf" }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [107 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [64 x i8], align 1
@_ZN8nvinfer16plugin9gLogErrorE = external global %"class.nvinfer1::plugin::LogStream", align 8
@.str.34 = external hidden unnamed_addr constant [63 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: 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 dso_local noundef ptr @_ZNKSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginMTron7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(336) %0, ptr noundef readonly %1, ptr nocapture noundef readnone %2, ptr noundef readonly %3, ptr noundef readonly %4, ptr nocapture noundef readnone %5, ptr noundef %6) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = icmp ne ptr %1, null
  %9 = icmp ne ptr %3, null
  %or.cond = and i1 %8, %9
  %10 = icmp ne ptr %4, null
  %or.cond3 = and i1 %or.cond, %10
  br i1 %or.cond3, label %15, label %11

11:                                               ; preds = %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st, i32 noundef 447, i32 noundef 0, ptr noundef nonnull @.str.33) #7
          to label %12 unwind label %13

12:                                               ; preds = %11
  unreachable

13:                                               ; preds = %11
  %14 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %92

15:                                               ; preds = %7
  %16 = getelementptr inbounds i8, ptr %1, i64 184
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = trunc i64 %17 to i32
  %19 = add i32 %18, -1
  %20 = getelementptr inbounds i8, ptr %1, i64 272
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = trunc i64 %21 to i32
  %23 = icmp slt i32 %22, 129
  br i1 %23, label %27, label %24

24:                                               ; preds = %15
  %25 = icmp ult i32 %22, 193
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  %.inv = icmp ugt i32 %22, 256
  %spec.select = select i1 %.inv, i32 384, i32 256
  br label %27

27:                                               ; preds = %26, %24, %15
  %.053 = phi i32 [ 128, %15 ], [ 192, %24 ], [ %spec.select, %26 ]
  %28 = load ptr, ptr %3, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %3, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %3, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %0, i64 104
  %34 = tail call noundef ptr @_ZNKSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  %35 = getelementptr inbounds i8, ptr %0, i64 96
  %36 = tail call noundef ptr @_ZNKSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  %37 = getelementptr inbounds i8, ptr %0, i64 288
  %38 = load i32, ptr %37, align 8, !tbaa !11
  switch i32 %38, label %83 [
    i32 0, label %39
    i32 1, label %61
  ]

39:                                               ; preds = %27
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %4, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %0, i64 112
  %44 = tail call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  %45 = getelementptr inbounds i8, ptr %0, i64 120
  %46 = tail call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  %47 = getelementptr inbounds i8, ptr %0, i64 128
  %48 = tail call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #8
  %49 = getelementptr inbounds i8, ptr %0, i64 136
  %50 = load i64, ptr %49, align 8, !tbaa !42
  %51 = trunc i64 %50 to i32
  %52 = getelementptr inbounds i8, ptr %0, i64 144
  %53 = load i64, ptr %52, align 8, !tbaa !43
  %54 = trunc i64 %53 to i32
  %55 = getelementptr inbounds i8, ptr %0, i64 160
  %56 = load i64, ptr %55, align 8, !tbaa !44
  %57 = trunc i64 %56 to i32
  %58 = invoke noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormMTronIfEEiP11CUstream_stiiiPKiS6_S6_PKfS8_PKT_SB_SB_iiPS9_SC_(ptr noundef %6, i32 noundef %51, i32 noundef %19, i32 noundef %.053, ptr noundef %28, ptr noundef %30, ptr noundef %32, ptr noundef %34, ptr noundef %36, ptr noundef %44, ptr noundef %48, ptr noundef %46, i32 noundef %54, i32 noundef %57, ptr noundef %40, ptr noundef %42)
          to label %98 unwind label %59

59:                                               ; preds = %39
  %60 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %92

61:                                               ; preds = %27
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %4, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds i8, ptr %0, i64 112
  %66 = tail call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %65) #8
  %67 = getelementptr inbounds i8, ptr %0, i64 120
  %68 = tail call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #8
  %69 = getelementptr inbounds i8, ptr %0, i64 128
  %70 = tail call noundef ptr @_ZNKSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %69) #8
  %71 = getelementptr inbounds i8, ptr %0, i64 136
  %72 = load i64, ptr %71, align 8, !tbaa !42
  %73 = trunc i64 %72 to i32
  %74 = getelementptr inbounds i8, ptr %0, i64 144
  %75 = load i64, ptr %74, align 8, !tbaa !43
  %76 = trunc i64 %75 to i32
  %77 = getelementptr inbounds i8, ptr %0, i64 160
  %78 = load i64, ptr %77, align 8, !tbaa !44
  %79 = trunc i64 %78 to i32
  %80 = invoke noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormMTronI6__halfEEiP11CUstream_stiiiPKiS7_S7_PKfS9_PKT_SC_SC_iiPSA_SD_(ptr noundef %6, i32 noundef %73, i32 noundef %19, i32 noundef %.053, ptr noundef %28, ptr noundef %30, ptr noundef %32, ptr noundef %34, ptr noundef %36, ptr noundef %66, ptr noundef %70, ptr noundef %68, i32 noundef %76, i32 noundef %79, ptr noundef %62, ptr noundef %64)
          to label %98 unwind label %81

81:                                               ; preds = %61
  %82 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %92

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

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

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

90:                                               ; preds = %88, %85, %83
  %91 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %92

92:                                               ; preds = %59, %81, %90, %13
  %.pn.pn = phi { ptr, i32 } [ %14, %13 ], [ %60, %59 ], [ %82, %81 ], [ %91, %90 ]
  %.150 = extractvalue { ptr, i32 } %.pn.pn, 0
  %.152 = extractvalue { ptr, i32 } %.pn.pn, 1
  %93 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %94 = icmp eq i32 %.152, %93
  br i1 %94, label %95, label %102

95:                                               ; preds = %92
  %96 = tail call ptr @__cxa_begin_catch(ptr %.150) #8
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %96)
          to label %97 unwind label %99

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

98:                                               ; preds = %97, %39, %61, %88
  %.1 = phi i32 [ %58, %39 ], [ %80, %61 ], [ 3, %88 ], [ 1, %97 ]
  ret i32 %.1

99:                                               ; preds = %97, %95
  %100 = landingpad { ptr, i32 }
          catch ptr null
  %101 = extractvalue { ptr, i32 } %100, 0
  tail call void @__clang_call_terminate(ptr %101) #9
  unreachable

102:                                              ; preds = %92
  tail call void @__clang_call_terminate(ptr %.150) #9
  unreachable
}

declare noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormMTronIfEEiP11CUstream_stiiiPKiS6_S6_PKfS8_PKT_SB_SB_iiPS9_SC_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormMTronI6__halfEEiP11CUstream_stiiiPKiS7_S7_PKfS9_PKT_SC_SC_iiPSA_SD_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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 = { 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 = { 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 = { "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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !35, i64 288}
!12 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormVarSeqlenPluginBaseE", !13, i64 0, !15, i64 8, !17, i64 16, !18, i64 24, !19, i64 32, !19, i64 64, !21, i64 96, !21, i64 104, !27, i64 112, !27, i64 120, !27, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !33, i64 168, !33, i64 192, !33, i64 216, !33, i64 240, !33, i64 264, !35, i64 288, !35, i64 292, !36, i64 296, !40, i64 320}
!13 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!15 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !14, i64 0}
!17 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !16, i64 0}
!18 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !16, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !6, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!21 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !24, i64 0}
!24 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !25, i64 0}
!25 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !26, i64 0}
!26 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !10, 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", !10, i64 0}
!33 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !34, i64 0}
!34 = !{!"_ZTSN8nvinfer17WeightsE", !35, i64 0, !10, i64 8, !6, i64 16}
!35 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!36 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!40 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !41, i64 0, !10, i64 8}
!41 = !{!"int", !7, i64 0}
!42 = !{!12, !6, i64 136}
!43 = !{!12, !6, i64 144}
!44 = !{!12, !6, i64 160}


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