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

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

%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@__func__._ZN8nvinfer16plugin30MultiscaleDeformableAttnPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [64 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin30MultiscaleDeformableAttnPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %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 ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %35 = load ptr, ptr %8, align 8
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %44

38:                                               ; preds = %7
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %44

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

44:                                               ; preds = %41, %38, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.1, ptr noundef @__func__._ZN8nvinfer16plugin30MultiscaleDeformableAttnPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 121, i32 noundef 0, ptr noundef @.str.15) #5
          to label %45 unwind label %180

45:                                               ; preds = %44
  unreachable

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %47, i64 0
  %49 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds [8 x i64], ptr %50, i64 0, i64 0
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %54, i64 0
  %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 1
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %61, i64 0
  %63 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds [8 x i64], ptr %64, i64 0, i64 2
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = trunc i64 %66 to i32
  store i32 %67, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %68, i64 0
  %70 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %69, i32 0, i32 0
  %71 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds [8 x i64], ptr %71, i64 0, i64 3
  %73 = load i64, ptr %72, align 8, !tbaa !9
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %75, i64 1
  %77 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %77, i32 0, i32 1
  %79 = getelementptr inbounds [8 x i64], ptr %78, i64 0, i64 0
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %82, i64 3
  %84 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds [8 x i64], ptr %85, i64 0, i64 1
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = trunc i64 %87 to i32
  store i32 %88, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %89, i64 3
  %91 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds [8 x i64], ptr %92, i64 0, i64 4
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = trunc i64 %94 to i32
  store i32 %95, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !11
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %96, i64 0
  %98 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !13
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %136

101:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds ptr, ptr %102, i64 0
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  store ptr %104, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = getelementptr inbounds ptr, ptr %105, i64 1
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  store ptr %107, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds ptr, ptr %108, i64 2
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  store ptr %110, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds ptr, ptr %111, i64 3
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  store ptr %113, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds ptr, ptr %114, i64 4
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  store ptr %116, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds ptr, ptr %117, i64 0
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  store ptr %119, ptr %28, align 8, !tbaa !5
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = load ptr, ptr %23, align 8, !tbaa !5
  %122 = load ptr, ptr %24, align 8, !tbaa !5
  %123 = load ptr, ptr %25, align 8, !tbaa !5
  %124 = load ptr, ptr %26, align 8, !tbaa !5
  %125 = load ptr, ptr %27, align 8, !tbaa !5
  %126 = load ptr, ptr %28, align 8, !tbaa !5
  %127 = load i32, ptr %15, align 4, !tbaa !11
  %128 = load i32, ptr %16, align 4, !tbaa !11
  %129 = load i32, ptr %17, align 4, !tbaa !11
  %130 = load i32, ptr %18, align 4, !tbaa !11
  %131 = load i32, ptr %19, align 4, !tbaa !11
  %132 = load i32, ptr %20, align 4, !tbaa !11
  %133 = load i32, ptr %21, align 4, !tbaa !11
  %134 = invoke noundef i32 @_Z27ms_deform_attn_cuda_forwardP11CUstream_stPKfPKiS4_S2_S2_Pfiiiiiii(ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126, i32 noundef %127, i32 noundef %128, i32 noundef %129, i32 noundef %130, i32 noundef %131, i32 noundef %132, i32 noundef %133)
          to label %135 unwind label %180

135:                                              ; preds = %101
  store i32 %134, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %178

136:                                              ; preds = %46
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %137, i64 0
  %139 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 8, !tbaa !13
  %141 = icmp eq i32 %140, 1
  br i1 %141, label %142, label %177

142:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds ptr, ptr %143, i64 0
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  store ptr %145, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds ptr, ptr %146, i64 1
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  store ptr %148, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds ptr, ptr %149, i64 2
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  store ptr %151, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds ptr, ptr %152, i64 3
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  store ptr %154, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds ptr, ptr %155, i64 4
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  store ptr %157, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = getelementptr inbounds ptr, ptr %158, i64 0
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  store ptr %160, ptr %34, align 8, !tbaa !5
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = load ptr, ptr %29, align 8, !tbaa !5
  %163 = load ptr, ptr %30, align 8, !tbaa !5
  %164 = load ptr, ptr %31, align 8, !tbaa !5
  %165 = load ptr, ptr %32, align 8, !tbaa !5
  %166 = load ptr, ptr %33, align 8, !tbaa !5
  %167 = load ptr, ptr %34, align 8, !tbaa !5
  %168 = load i32, ptr %15, align 4, !tbaa !11
  %169 = load i32, ptr %16, align 4, !tbaa !11
  %170 = load i32, ptr %17, align 4, !tbaa !11
  %171 = load i32, ptr %18, align 4, !tbaa !11
  %172 = load i32, ptr %19, align 4, !tbaa !11
  %173 = load i32, ptr %20, align 4, !tbaa !11
  %174 = load i32, ptr %21, align 4, !tbaa !11
  %175 = invoke noundef i32 @_Z27ms_deform_attn_cuda_forwardP11CUstream_stPK6__halfPKiS5_S3_S3_PS1_iiiiiii(ptr noundef %161, ptr noundef %162, ptr noundef %163, ptr noundef %164, ptr noundef %165, ptr noundef %166, ptr noundef %167, i32 noundef %168, i32 noundef %169, i32 noundef %170, i32 noundef %171, i32 noundef %172, i32 noundef %173, i32 noundef %174)
          to label %176 unwind label %180

176:                                              ; preds = %142
  store i32 %175, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %177

177:                                              ; preds = %176, %136
  br label %178

178:                                              ; preds = %177, %135
  %179 = load i32, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  ret i32 %179

180:                                              ; preds = %142, %101, %44
  %181 = landingpad { ptr, i32 }
          catch ptr null
  %182 = extractvalue { ptr, i32 } %181, 0
  call void @__clang_call_terminate(ptr %182) #7
  unreachable
}

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

declare noundef i32 @_Z27ms_deform_attn_cuda_forwardP11CUstream_stPKfPKiS4_S2_S2_Pfiiiiiii(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare noundef i32 @_Z27ms_deform_attn_cuda_forwardP11CUstream_stPK6__halfPKiS5_S3_S3_PS1_iiiiiii(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { "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 = { noreturn }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !16, i64 72}
!14 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !15, i64 0, !16, i64 72, !17, i64 76, !18, i64 80}
!15 = !{!"_ZTSN8nvinfer16Dims64E", !12, i64 0, !7, i64 8}
!16 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!17 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!18 = !{!"float", !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"

@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@__func__._ZN8nvinfer16plugin30MultiscaleDeformableAttnPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [64 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin30MultiscaleDeformableAttnPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr nocapture noundef nonnull readnone align 8 dereferenceable(40) %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 #1 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 %13, label %11

11:                                               ; preds = %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__._ZN8nvinfer16plugin30MultiscaleDeformableAttnPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 121, i32 noundef 0, ptr noundef nonnull @.str.15) #4
          to label %12 unwind label %62

12:                                               ; preds = %11
  unreachable

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = trunc i64 %15 to i32
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = trunc i64 %18 to i32
  %20 = getelementptr inbounds i8, ptr %1, i64 24
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = trunc i64 %21 to i32
  %23 = getelementptr inbounds i8, ptr %1, i64 32
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = trunc i64 %24 to i32
  %26 = getelementptr inbounds i8, ptr %1, i64 96
  %27 = load i64, ptr %26, align 8, !tbaa !5
  %28 = trunc i64 %27 to i32
  %29 = getelementptr inbounds i8, ptr %1, i64 280
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = trunc i64 %30 to i32
  %32 = getelementptr inbounds i8, ptr %1, i64 304
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = trunc i64 %33 to i32
  %35 = getelementptr inbounds i8, ptr %1, i64 72
  %36 = load i32, ptr %35, align 8, !tbaa !9
  switch i32 %36, label %61 [
    i32 0, label %37
    i32 1, label %49
  ]

37:                                               ; preds = %13
  %38 = load ptr, ptr %3, align 8, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %3, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds i8, ptr %3, i64 16
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %43 = getelementptr inbounds i8, ptr %3, i64 24
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %3, i64 32
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %47 = load ptr, ptr %4, align 8, !tbaa !16
  %48 = invoke noundef i32 @_Z27ms_deform_attn_cuda_forwardP11CUstream_stPKfPKiS4_S2_S2_Pfiiiiiii(ptr noundef %6, ptr noundef %38, ptr noundef %40, ptr noundef %42, ptr noundef %44, ptr noundef %46, ptr noundef %47, i32 noundef %16, i32 noundef %19, i32 noundef %22, i32 noundef %25, i32 noundef %28, i32 noundef %31, i32 noundef %34)
          to label %61 unwind label %62

49:                                               ; preds = %13
  %50 = load ptr, ptr %3, align 8, !tbaa !16
  %51 = getelementptr inbounds i8, ptr %3, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds i8, ptr %3, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !16
  %55 = getelementptr inbounds i8, ptr %3, i64 24
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  %57 = getelementptr inbounds i8, ptr %3, i64 32
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = load ptr, ptr %4, align 8, !tbaa !16
  %60 = invoke noundef i32 @_Z27ms_deform_attn_cuda_forwardP11CUstream_stPK6__halfPKiS5_S3_S3_PS1_iiiiiii(ptr noundef %6, ptr noundef %50, ptr noundef %52, ptr noundef %54, ptr noundef %56, ptr noundef %58, ptr noundef %59, i32 noundef %16, i32 noundef %19, i32 noundef %22, i32 noundef %25, i32 noundef %28, i32 noundef %31, i32 noundef %34)
          to label %61 unwind label %62

61:                                               ; preds = %49, %13, %37
  %.0 = phi i32 [ %48, %37 ], [ 0, %13 ], [ %60, %49 ]
  ret i32 %.0

62:                                               ; preds = %49, %37, %11
  %63 = landingpad { ptr, i32 }
          catch ptr null
  %64 = extractvalue { ptr, i32 } %63, 0
  tail call void @__clang_call_terminate(ptr %64) #5
  unreachable
}

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare noundef i32 @_Z27ms_deform_attn_cuda_forwardP11CUstream_stPKfPKiS4_S2_S2_Pfiiiiiii(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef i32 @_Z27ms_deform_attn_cuda_forwardP11CUstream_stPK6__halfPKiS5_S3_S3_PS1_iiiiiii(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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


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