; ModuleID = 'kernel-cuda-nvptx64-nvidia-cuda-sm_61.bc' source_filename = "kernel.cu" target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64" target triple = "nvptx64-nvidia-cuda" %struct.cudaFuncAttributes = type { i64, i64, i64, i32, i32, i32, i32, i32, i32, i32 } ; Function Attrs: nounwind define weak dso_local i32 @cudaMalloc(i8** %p, i64 %s) local_unnamed_addr #0 { entry: ret i32 999 } ; Function Attrs: nounwind define weak dso_local i32 @cudaFuncGetAttributes(%struct.cudaFuncAttributes* %p, i8* %c) local_unnamed_addr #0 { entry: ret i32 999 } ; Function Attrs: nounwind define weak dso_local i32 @cudaDeviceGetAttribute(i32* %value, i32 %attr, i32 %device) local_unnamed_addr #0 { entry: ret i32 999 } ; Function Attrs: nounwind define weak dso_local i32 @cudaGetDevice(i32* %device) local_unnamed_addr #0 { entry: ret i32 999 } ; Function Attrs: nounwind define weak dso_local i32 @cudaOccupancyMaxActiveBlocksPerMultiprocessor(i32* %numBlocks, i8* %func, i32 %blockSize, i64 %dynamicSmemSize) local_unnamed_addr #0 { entry: ret i32 999 } ; Function Attrs: nounwind define weak dso_local i32 @cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(i32* %numBlocks, i8* %func, i32 %blockSize, i64 %dynamicSmemSize, i32 %flags) local_unnamed_addr #0 { entry: ret i32 999 } ; Function Attrs: nofree nounwind define dso_local void @_Z9vectorAddPKfS0_Pfi(float* nocapture readonly %A, float* nocapture readonly %B, float* nocapture %C, i32 %numElements) local_unnamed_addr #1 { entry: %0 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x() #3, !range !10 %idxprom8 = zext i32 %0 to i64 %arrayidx = getelementptr inbounds float, float* %A, i64 %idxprom8 %1 = load float, float* %arrayidx, align 4, !tbaa !11 %arrayidx2 = getelementptr inbounds float, float* %B, i64 %idxprom8 %2 = load float, float* %arrayidx2, align 4, !tbaa !11 %add = fadd contract float %1, %2 %arrayidx4 = getelementptr inbounds float, float* %C, i64 %idxprom8 store float %add, float* %arrayidx4, align 4, !tbaa !11 ret void } ; Function Attrs: nounwind readnone declare i32 @llvm.nvvm.read.ptx.sreg.tid.x() #2 attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="sm_61" "target-features"="+ptx64,+sm_61" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { nofree nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="sm_61" "target-features"="+ptx64,+sm_61" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #2 = { nounwind readnone } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2} !nvvm.annotations = !{!3, !4, !5, !4, !6, !6, !6, !6, !7, !7, !6} !llvm.ident = !{!8} !nvvmir.version = !{!9} !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 10, i32 1]} !1 = !{i32 1, !"wchar_size", i32 4} !2 = !{i32 4, !"nvvm-reflect-ftz", i32 0} !3 = !{void (float*, float*, float*, i32)* @_Z9vectorAddPKfS0_Pfi, !"kernel", i32 1} !4 = !{null, !"align", i32 8} !5 = !{null, !"align", i32 8, !"align", i32 65544, !"align", i32 131080} !6 = !{null, !"align", i32 16} !7 = !{null, !"align", i32 16, !"align", i32 65552, !"align", i32 131088} !8 = !{!"clang version 10.0.1 (https://github.com/llvm/llvm-project.git ef32c611aa214dea855364efd7ba451ec5ec3f74)"} !9 = !{i32 1, i32 4} !10 = !{i32 0, i32 1024} !11 = !{!12, !12, i64 0} !12 = !{!"float", !13, i64 0} !13 = !{!"omnipotent char", !14, i64 0} !14 = !{!"Simple C++ TBAA"}