; 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
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace7enqueueEPKNS_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 i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = 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
  %36 = load ptr, ptr %9, align 8
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %45

39:                                               ; preds = %7
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %51, label %45

45:                                               ; preds = %42, %39, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace7enqueueEPKNS_16PluginTensorDescES5_PKPKvPKPvSA_P11CUstream_st, i32 noundef 375, i32 noundef 0, ptr noundef @.str.33) #8
          to label %46 unwind label %47

46:                                               ; preds = %45
  unreachable

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

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

69:                                               ; preds = %51
  store i32 128, ptr %20, align 4, !tbaa !11
  br label %80

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

73:                                               ; preds = %70
  store i32 192, ptr %20, align 4, !tbaa !11
  br label %79

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

77:                                               ; preds = %74
  store i32 256, ptr %20, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %77, %74
  br label %79

79:                                               ; preds = %78, %73
  br label %80

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

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

129:                                              ; preds = %97
  store i32 %128, ptr %8, align 4
  store i32 1, ptr %30, align 4
  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 %188

130:                                              ; preds = %97
  %131 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %16, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %17, align 4
  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 %189

134:                                              ; preds = %80
  %135 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %36, i32 0, i32 20
  %136 = load i32, ptr %135, align 8, !tbaa !13
  %137 = icmp eq i32 %136, 1
  br i1 %137, label %138, label %175

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

170:                                              ; preds = %138
  store i32 %169, ptr %8, align 4
  store i32 1, ptr %30, align 4
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %188

171:                                              ; preds = %138
  %172 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %16, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %17, align 4
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %189

175:                                              ; preds = %134
  %176 = 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 %177 unwind label %184

177:                                              ; preds = %175
  %178 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %36, i32 0, i32 20
  %179 = load i32, ptr %178, align 8, !tbaa !13
  %180 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_i(ptr noundef nonnull align 8 dereferenceable(152) %176, i32 noundef %179)
          to label %181 unwind label %184

181:                                              ; preds = %177
  %182 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152) %180, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %183 unwind label %184

183:                                              ; preds = %181
  store i32 3, ptr %8, align 4
  store i32 1, ptr %30, align 4
  br label %188

184:                                              ; preds = %181, %177, %175
  %185 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %16, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %17, align 4
  br label %189

188:                                              ; preds = %183, %170, %129
  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 %201

189:                                              ; preds = %184, %171, %130
  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 %190

190:                                              ; preds = %189, %47
  %191 = load i32, ptr %17, align 4
  %192 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %193 = icmp eq i32 %191, %192
  br i1 %193, label %194, label %206

194:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %195 = load ptr, ptr %16, align 8
  %196 = call ptr @__cxa_begin_catch(ptr %195) #9
  store ptr %196, ptr %35, align 8
  %197 = load ptr, ptr %35, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %197)
          to label %198 unwind label %203

198:                                              ; preds = %194
  invoke void @__cxa_end_catch()
          to label %199 unwind label %203

199:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %200

200:                                              ; preds = %199
  store i32 1, ptr %8, align 4
  br label %201

201:                                              ; preds = %200, %188
  %202 = load i32, ptr %8, align 4
  ret i32 %202

203:                                              ; preds = %198, %194
  %204 = landingpad { ptr, i32 }
          catch ptr null
  %205 = extractvalue { ptr, i32 } %204, 0
  call void @__clang_call_terminate(ptr %205) #10
  unreachable

206:                                              ; preds = %190
  %207 = load ptr, ptr %16, align 8
  call void @__clang_call_terminate(ptr %207) #10
  unreachable
}

; 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

declare noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormHFaceIfEEiP11CUstream_stiiiPKiS6_S6_PKfS8_PKT_SB_SB_iiPS9_(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) #6

declare noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormHFaceI6__halfEEiP11CUstream_stiiiPKiS7_S7_PKfS9_PKT_SC_SC_iiPSA_(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) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #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)) #7

; 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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace7enqueueEPKNS_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 375, 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 %88

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
  %.049 = 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 %79 [
    i32 0, label %39
    i32 1, label %59
  ]

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

57:                                               ; preds = %39
  %58 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %88

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

77:                                               ; preds = %59
  %78 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %88

79:                                               ; preds = %27
  %80 = 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 %81 unwind label %86

81:                                               ; preds = %79
  %82 = load i32, ptr %37, align 8, !tbaa !11
  %83 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_i(ptr noundef nonnull align 8 dereferenceable(152) %80, i32 noundef %82)
          to label %84 unwind label %86

84:                                               ; preds = %81
  %85 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE1EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152) %83, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %94 unwind label %86

86:                                               ; preds = %84, %81, %79
  %87 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %88

88:                                               ; preds = %57, %77, %86, %13
  %.pn.pn = phi { ptr, i32 } [ %14, %13 ], [ %58, %57 ], [ %78, %77 ], [ %87, %86 ]
  %.146 = extractvalue { ptr, i32 } %.pn.pn, 0
  %.148 = extractvalue { ptr, i32 } %.pn.pn, 1
  %89 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %90 = icmp eq i32 %.148, %89
  br i1 %90, label %91, label %98

91:                                               ; preds = %88
  %92 = tail call ptr @__cxa_begin_catch(ptr %.146) #8
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %92)
          to label %93 unwind label %95

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

94:                                               ; preds = %93, %39, %59, %84
  %.1 = phi i32 [ %56, %39 ], [ %76, %59 ], [ 3, %84 ], [ 1, %93 ]
  ret i32 %.1

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

98:                                               ; preds = %88
  tail call void @__clang_call_terminate(ptr %.146) #9
  unreachable
}

; 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

declare noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormHFaceIfEEiP11CUstream_stiiiPKiS6_S6_PKfS8_PKT_SB_SB_iiPS9_(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) local_unnamed_addr #5

declare noundef i32 @_ZN8nvinfer16plugin4bert21embSkipLayerNormHFaceI6__halfEEiP11CUstream_stiiiPKiS7_S7_PKfS9_PKT_SC_SC_iiPSA_(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) local_unnamed_addr #5

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

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 = { "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 = { 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