; LLVM IR from NVIDIA/TensorRT :: plugin/disentangledAttentionPlugin (disentangledAttentionPlugin)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.__half = type { i16 }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::DisentangledAttentionPlugin" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", i32, float }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZTISt9exception = external constant ptr
@.str.4 = external hidden unnamed_addr constant [116 x i8], align 1
@__func__._ZN8nvinfer16plugin27DisentangledAttentionPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 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 @_ZN8nvinfer16plugin27DisentangledAttentionPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(48) %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 %struct.__half, align 2
  %19 = 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
  %20 = load ptr, ptr %9, align 8
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %32

23:                                               ; preds = %7
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %32

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

29:                                               ; preds = %26
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %47, label %32

32:                                               ; preds = %29, %26, %23, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.4, ptr noundef @__func__._ZN8nvinfer16plugin27DisentangledAttentionPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 123, i32 noundef 0, ptr noundef @.str.7) #8
          to label %33 unwind label %34

33:                                               ; preds = %32
  unreachable

34:                                               ; preds = %87, %85, %75, %70, %61, %52, %32
  %35 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %16, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %17, align 4
  br label %38

38:                                               ; preds = %34
  %39 = load i32, ptr %17, align 4
  %40 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %41 = icmp eq i32 %39, %40
  br i1 %41, label %42, label %97

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %43 = load ptr, ptr %16, align 8
  %44 = call ptr @__cxa_begin_catch(ptr %43) #9
  store ptr %44, ptr %19, align 8
  %45 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %46 unwind label %94

46:                                               ; preds = %42
  store i32 1, ptr %8, align 4
  invoke void @__cxa_end_catch()
          to label %90 unwind label %94

47:                                               ; preds = %29
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %48, i64 0
  %50 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !9
  switch i32 %51, label %85 [
    i32 0, label %52
    i32 1, label %61
    i32 2, label %75
  ]

52:                                               ; preds = %47
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.nvinfer1::plugin::DisentangledAttentionPlugin", ptr %20, i32 0, i32 3
  %59 = load float, ptr %58, align 4, !tbaa !16
  invoke void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeIfEEvPKNS_16PluginTensorDescES5_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, float noundef %59)
          to label %60 unwind label %34

60:                                               ; preds = %52
  br label %87

61:                                               ; preds = %47
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.nvinfer1::plugin::DisentangledAttentionPlugin", ptr %20, i32 0, i32 3
  %68 = load float, ptr %67, align 4, !tbaa !16
  %69 = invoke i16 @_ZL12__float2halff(float noundef %68)
          to label %70 unwind label %34

70:                                               ; preds = %61
  %71 = getelementptr inbounds %struct.__half, ptr %18, i32 0, i32 0
  store i16 %69, ptr %71, align 2
  %72 = getelementptr inbounds %struct.__half, ptr %18, i32 0, i32 0
  %73 = load i16, ptr %72, align 2
  invoke void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeI6__halfEEvPKNS_16PluginTensorDescES6_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, i16 %73)
          to label %74 unwind label %34

74:                                               ; preds = %70
  br label %87

75:                                               ; preds = %47
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.nvinfer1::plugin::DisentangledAttentionPlugin", ptr %20, i32 0, i32 3
  %82 = load float, ptr %81, align 4, !tbaa !16
  %83 = fptosi float %82 to i8
  invoke void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeIaEEvPKNS_16PluginTensorDescES5_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, i8 noundef signext %83)
          to label %84 unwind label %34

84:                                               ; preds = %75
  br label %87

85:                                               ; preds = %47
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.4, ptr noundef @__func__._ZN8nvinfer16plugin27DisentangledAttentionPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 136, i32 noundef 0, ptr noundef @.str.8) #8
          to label %86 unwind label %34

86:                                               ; preds = %85
  unreachable

87:                                               ; preds = %84, %74, %60
  %88 = invoke i32 @cudaPeekAtLastError()
          to label %89 unwind label %34

89:                                               ; preds = %87
  store i32 %88, ptr %8, align 4
  br label %92

90:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %92

91:                                               ; No predecessors!
  unreachable

92:                                               ; preds = %90, %89
  %93 = load i32, ptr %8, align 4
  ret i32 %93

94:                                               ; preds = %46, %42
  %95 = landingpad { ptr, i32 }
          catch ptr null
  %96 = extractvalue { ptr, i32 } %95, 0
  call void @__clang_call_terminate(ptr %96) #10
  unreachable

97:                                               ; preds = %38
  %98 = load ptr, ptr %16, align 8
  call void @__clang_call_terminate(ptr %98) #10
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeIfEEvPKNS_16PluginTensorDescES5_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeI6__halfEEvPKNS_16PluginTensorDescES6_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i16) #6 align 2

; Function Attrs: mustprogress uwtable
declare hidden i16 @_ZL12__float2halff(float noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeIaEEvPKNS_16PluginTensorDescES5_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef signext) #6 align 2

declare i32 @cudaPeekAtLastError() #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, !13, i64 72}
!10 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !11, i64 0, !13, i64 72, !14, i64 76, !15, i64 80}
!11 = !{!"_ZTSN8nvinfer16Dims64E", !12, i64 0, !7, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!14 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !15, i64 44}
!17 = !{!"_ZTSN8nvinfer16plugin27DisentangledAttentionPluginE", !18, i64 0, !21, i64 8, !12, i64 40, !15, i64 44}
!18 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !20, i64 0}
!20 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}


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

@_ZTISt9exception = external constant ptr
@.str.4 = external hidden unnamed_addr constant [116 x i8], align 1
@__func__._ZN8nvinfer16plugin27DisentangledAttentionPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 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 @_ZN8nvinfer16plugin27DisentangledAttentionPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readnone %5, ptr noundef %6) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = insertelement <4 x ptr> poison, ptr %1, i64 0
  %9 = insertelement <4 x ptr> %8, ptr %2, i64 1
  %10 = insertelement <4 x ptr> %9, ptr %3, i64 2
  %11 = insertelement <4 x ptr> %10, ptr %4, i64 3
  %12 = icmp eq <4 x ptr> %11, zeroinitializer
  %13 = bitcast <4 x i1> %12 to i4
  %14 = icmp eq i4 %13, 0
  br i1 %14, label %24, label %.invoke

15:                                               ; preds = %.invoke, %41, %35, %34, %30, %27
  %16 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %17 = extractvalue { ptr, i32 } %16, 0
  %18 = extractvalue { ptr, i32 } %16, 1
  %19 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %20 = icmp eq i32 %18, %19
  br i1 %20, label %21, label %47

21:                                               ; preds = %15
  %22 = tail call ptr @__cxa_begin_catch(ptr %17) #7
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %23 unwind label %44

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

24:                                               ; preds = %7
  %25 = getelementptr inbounds i8, ptr %1, i64 72
  %26 = load i32, ptr %25, align 8, !tbaa !5
  switch i32 %26, label %.invoke [
    i32 0, label %27
    i32 1, label %30
    i32 2, label %35
  ]

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %0, i64 44
  %29 = load float, ptr %28, align 4, !tbaa !14
  invoke void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeIfEEvPKNS_16PluginTensorDescES5_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %6, float noundef %29)
          to label %41 unwind label %15

30:                                               ; preds = %24
  %31 = getelementptr inbounds i8, ptr %0, i64 44
  %32 = load float, ptr %31, align 4, !tbaa !14
  %33 = invoke i16 @_ZL12__float2halff(float noundef %32)
          to label %34 unwind label %15

34:                                               ; preds = %30
  invoke void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeI6__halfEEvPKNS_16PluginTensorDescES6_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %6, i16 %33)
          to label %41 unwind label %15

35:                                               ; preds = %24
  %36 = getelementptr inbounds i8, ptr %0, i64 44
  %37 = load float, ptr %36, align 4, !tbaa !14
  %38 = fptosi float %37 to i8
  invoke void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeIaEEvPKNS_16PluginTensorDescES5_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %6, i8 noundef signext %38)
          to label %41 unwind label %15

.invoke:                                          ; preds = %7, %24
  %39 = phi i32 [ 136, %24 ], [ 123, %7 ]
  %40 = phi ptr [ @.str.8, %24 ], [ @.str.7, %7 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN8nvinfer16plugin27DisentangledAttentionPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef %39, i32 noundef 0, ptr noundef nonnull %40) #8
          to label %.cont unwind label %15

.cont:                                            ; preds = %.invoke
  unreachable

41:                                               ; preds = %35, %34, %27
  %42 = invoke i32 @cudaPeekAtLastError()
          to label %43 unwind label %15

43:                                               ; preds = %23, %41
  %.0 = phi i32 [ %42, %41 ], [ 1, %23 ]
  ret i32 %.0

44:                                               ; preds = %23, %21
  %45 = landingpad { ptr, i32 }
          catch ptr null
  %46 = extractvalue { ptr, i32 } %45, 0
  tail call void @__clang_call_terminate(ptr %46) #9
  unreachable

47:                                               ; preds = %15
  tail call void @__clang_call_terminate(ptr %17) #9
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeIfEEvPKNS_16PluginTensorDescES5_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeI6__halfEEvPKNS_16PluginTensorDescES6_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i16) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden i16 @_ZL12__float2halff(float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin27DisentangledAttentionPlugin11enqueueTypeIaEEvPKNS_16PluginTensorDescES5_PKPKvPKPvP11CUstream_stT_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef signext) local_unnamed_addr #5 align 2

declare i32 @cudaPeekAtLastError() 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 = { nounwind }
attributes #8 = { noreturn }
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, !11, i64 72}
!6 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !7, i64 0, !11, i64 72, !12, i64 76, !13, i64 80}
!7 = !{!"_ZTSN8nvinfer16Dims64E", !8, i64 0, !9, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN8nvinfer18DataTypeE", !9, i64 0}
!12 = !{!"_ZTSN8nvinfer112TensorFormatE", !9, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!15, !13, i64 44}
!15 = !{!"_ZTSN8nvinfer16plugin27DisentangledAttentionPluginE", !16, i64 0, !19, i64 8, !8, i64 40, !13, i64 44}
!16 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !22, i64 8, !9, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!21 = !{!"any pointer", !9, i64 0}
!22 = !{!"long", !9, i64 0}


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