-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathOpenProjects.html
More file actions
executable file
·6792 lines (5856 loc) · 321 KB
/
OpenProjects.html
File metadata and controls
executable file
·6792 lines (5856 loc) · 321 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--#include virtual="header.incl" -->
<div class="www_sectiontitle">Open LLVM Projects</div>
<ul>
<li>Google Summer of Code Ideas & Projects
<ul>
<li>
<a href="#gsoc26">Google Summer of Code 2026</a>
<ul>
<li><b>LLVM Core</b>
<ul>
</ul>
<li><a href="http://clang.llvm.org/"><b>Clang</b></a>
<ul>
<li><a href="#expanding-api-notes-for-cpp">Expanding API Notes for C++</a></li>
<li><a href="#upstreaming-fbounds-safety">Participating in Upstreaming -fbounds-safety</a></li>
<li><a href="#incremental-build-support-modules-driver">Incremental build support for the modules driver</a></li>
<li><a href="#improving-clang-doc">Improving Clang-Doc</a></li>
<li><a href="#improving-lit">Improving lit</a></li>
</ul>
</li>
<li><a href="http://lldb.llvm.org/"><b>LLDB</b></a>
<ul>
</ul>
</li>
<li><a href="http://libc.llvm.org/"><b>LLVM libc</b></a>
<ul>
<li><a href="#enable_float80_float128_for_unsupported_target">Enable float80 and float128 math support on unsupported targets for LLVM libc</a></li>
<li><a href="#use_llvm_libc_math_for_compiler_rt_builtins">Use LLVM libc math routines for compiler-rt floating point routines</a></li>
</ul>
</li>
<li><a href="https://llvm.github.io/clangir/"><b>ClangIR</b></a>
<ul>
<li><a href="#unified-host–device-compilation-in-clangir">Unified Host–Device Compilation in ClangIR (CIR): Enabling Cross-Boundary Analysis and Optimization</a></li>
</ul>
</li>
<li><a href="https://clang.llvm.org/docs/ClangStaticAnalyzer.html"><b>Clang Static Analyzer</b></a>
<ul>
<li><a href="#csa-lifetime-annotations">Teach the Clang Static Analyzer to understand lifetime annotations</a></li>
</ul>
</li>
<li><a href="http://clangd.llvm.org/"><b>Clangd</b></a>
<ul>
<li><a href="#enable-clangd-hlsl-support">Enable Clangd support for HLSL</a></li>
</ul>
</li>
<li><a href="https://mlir.llvm.org//"><b>MLIR</b></a>
<ul>
<li><a href="#static_memory_planner_for_mlir">Static Memory Planner For MLIR</a></li>
</ul>
</li>
<!-- Add other subprojects as necessary -->
</ul>
</li>
<li>
<a href="#gsoc25">Google Summer of Code 2025</a>
<ul>
<li><b>LLVM Core</b>
<ul>
<li><a href="#llvm-abi-lowering">Introduce an ABI lowering library</a></li>
<li><a href="#byte-type">Byte type</a></li>
</ul>
<li><a href="http://clang.llvm.org/"><b>Clang</b></a>
<ul>
<li><a href="#clang-driver-modules">Simple C++20 modules without a build system</a></li>
<li><a href="#clang-improve-trapping-ubsan-2025">Usability Improvements for trapping Undefined Behavior Sanitizer (UBSan)</a></li>
<li><a href="#improve-documentation-parsing-in-clang">Improve documentation parsing in Clang</a></li>
<li><a href="#improve-symbol-discovery-clang-repl">Advanced symbol resolution and reoptimization for clang-repl</a></li>
</ul>
</li>
<li><a href="http://lldb.llvm.org/"><b>LLDB</b></a>
<ul>
<li><a href="#rich-disassembler-for-lldb-2025">Rich disassembler for LLDB</a></li>
</ul>
</li>
<li><a href="http://libc.llvm.org/"><b>LLVM libc</b></a>
<ul>
<li><a href="#bfloat16-libc">Bfloat16 in LLVM libc</a></li>
<li><a href="#io_uring-libc">Direct I/O from the GPU with io_uring</a></li>
<li><a href="#testing-math-libc">Profiling and testing the LLVM libc GPU math</a></li>
</ul>
</li>
<li><a href="https://clangir.org"><b>ClangIR</b></a>
<ul>
<li><a href="#clangir-codegen-tests">Validate existing Clang CodeGen test coverage with ClangIR</a></li>
<li><a href="#clangir-upstreaming">Participate in ClangIR upstreaming</a></li>
</ul>
</li>
<li><a href="https://clang.llvm.org/docs/ClangStaticAnalyzer.html"><b>Clang Static Analyzer</b></a>
<ul>
<li><a href="#csa-lifetime-annotations">Teach the Clang Static Analyzer to understand lifetime annotations</a></li>
</ul>
</li>
<li><a href="https://enzyme.mit.edu"><b>Enzyme</b></a>
<ul>
<li><a href="#rust-enzyme-improvements">Improve Enzyme reliability and compile times for Rust</a></li>
</ul>
</li>
<li><a href="https://discourse.llvm.org/t/offload-new-subproject-pending-move-of-libomptarget/78185"><b>Offload</b></a> (Former <a href="https://openmp.llvm.org/"><b>OpenMP Offloading</b></a>)
<ul>
<li><a href="#offload-remarks-visualization">LLVM Compiler Remarks Visualization Tool for Offload Proposal</a></li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#gsoc24">Google Summer of Code 2024</a>
<ul>
<li><b>LLVM Core</b>
<ul>
<li><a href="#remove_ub_tests">Remove undefined behavior from tests</a></li>
<li><a href="#spirv_tablegen">Automatically generate TableGen file for SPIR-V instruction set</a></li>
<li><a href="#bitstream_cas">LLVM bitstream integration with CAS (content-addressable storage)</a></li>
<li><a href="#three_way_comparison">Add 3-way comparison intrinsics</a></li>
<li><a href="#llvm_www">Improve the LLVM.org Website Look and Feel</a></li>
<li><a href="#parameter-tuning">The 1001 thresholds in LLVM</a></li>
</ul>
<li><a href="http://clang.llvm.org/"><b>Clang</b></a>
<ul>
<li><a href="#clang-repl-out-of-process">Out-of-process execution for clang-repl</a></li>
<li><a href="#clang-plugins-windows">Support clang plugins on Windows</a></li>
<li><a href="#clang-on-demand-parsing">On Demand Parsing in Clang</a></li>
<li><a href="#clang-doc-improve-usability">Improve Clang-Doc Usability</a></li>
</ul>
<li><a href="http://lldb.llvm.org/"><b>LLDB</b></a>
<ul>
<li><a href="#rich-disassembler-for-lldb">Rich disassembler for LLDB</a></li>
</ul>
<li><a href="http://openmp.llvm.org/"><b>(OpenMP) Offload</b></a>
<ul>
<li><a href="#gpu-delta-debugging">GPU Delta Debugging</a></li>
<li><a href="#offload-libcxx">Offloading libcxx</a></li>
<li><a href="#gpu-libc">Performance tuning the GPU libc</a></li>
<li><a href="#gpu-first">Improve GPU First Framework</a></li>
</ul>
<li><a href="https://clangir.org"><b>ClangIR</b></a>
<ul>
<li><a href="#clangir-gpu">Compile GPU kernels using ClangIR</a></li>
</ul>
<li><a href="http://libc.llvm.org/"><b>LLVM libc</b></a>
<ul>
<li><a href="#half-precision-libc">Half precision in LLVM libc</a>
</ul>
</ul>
</li>
<li>
<a href="#gsoc23">Google Summer of Code 2023</a>
<ul>
<li>
<b>LLVM Core</b>
<ul>
<li><a href="#llvm_new_jitlink_reopt">Re-optimization using JITLink</a></li>
<li><a href="#llvm_new_jitlink_backends">JITLink new backends</a></li>
<li><a href="#llvm_improving_compile_times">Improving compile times</a></li>
<li><a href="#llvm_addressing_rust_optimization_failures">Addressing Rust optimization failures</a></li>
<li><a href="#llvm_mlgo_latency_model">Better performance models for MLGO training</a></li>
<li><a href="#llvm_mlgo_passes_2023">Machine Learning Guided Ordering of Compiler Optimization Passes</a></li>
<li><a href="#llvm_map_value_to_src_expr">Map LLVM values to corresponding source-level expressions</a></li>
</ul>
</li>
<li><a href="http://clang.llvm.org/"><b>Clang</b></a>
<ul>
<li><a href="#clang-repl-out-of-process">Out-of-process execution for clang-repl</a>
<li><a href="#clang_analyzer_taint_analysis">Improve and Stabilize the Clang Static Analyzer's "Taint Analysis" Checks</a></li>
<li><a href="#clang-repl-autocompletion">Implement autocompletion in clang-repl</a>
<li><a href="#clang-modules-build-daemon">Modules build daemon: build system agnostic support for explicitly built modules</a></li>
<li><a href="#clang-extract-api-categories">ExtractAPI Objective-C categories</a></li>
<li><a href="#clang-extract-api-cpp-support">ExtractAPI C++ Support</a></li>
<li><a href="#clang-extract-api-while-building">ExtractAPI while building</a></li>
<li><a href="#clang-improve-diagnostics2">Improve Clang diagnostics</a></li>
<li><a href="#clang-tutorials-clang-repl">Tutorial development with clang-repl</a></li>
<li><a href="#clang-repl-wasm">Add WebAssembly Support in clang-repl</a></li>
</li>
</ul>
</li>
<li>
<b>LLD</b>
<ul>
<li><a href="#llvm_lld_embedded">LLD Linker Improvements for Embedded Targets</a></li>
</ul>
</li>
<li>
<b>MLIR</b>
<ul>
<li><a href="#llvm_mlir_presburger_opt">Optimizing MLIR’s Presburger library</a></li>
<li><a href="#llvm_mlir_query">Interactively query MLIR IR</a></li>
</ul>
</li>
<li>
<b>Code Coverage</b>
<ul>
<li><a href="#llvm_code_coverage">Support a hierarchical directory structure in generated coverage html reports</a></li>
<li><a href="#llvm_patch_coverage">Patch based test coverage for quick test feedback</a></li>
</ul>
</li>
<li>
<b>ClangIR</b>
<ul>
<li><a href="#clangir">Build and run SingleSource benchmarks using ClangIR</a></li>
</ul>
</li>
<li>
<b><a href="https://enzyme.mit.edu">Enzyme</a></b>
<ul>
<li><a href="#enzyme_tblgen_extension">Move additional Enzyme Rules to Tablegen</a></li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#gsoc22">Google Summer of Code 2022</a>
<ul>
<li>
<b>LLVM Core</b>
<ul>
<li><a href="#llvm_shared_jitlink">Implement a shared-memory based JITLinkMemoryManager for out-of-process JITting</a></li>
<li><a href="#llvm_build_jit_tutorial">Modernize the LLVM "Building A JIT" tutorial series</a></li>
<li><a href="#llvm_jit_new_format">Write JITLink support for a new format/architecture</a></li>
<li><a href="#llvm_instrumentaion_for_compile_time">Instrumentation of Clang/LLVM for Compile Time</a></li>
<li><a href="#llvm_lto_dependency_info">Richer symbol dependency information for LTO</a></li>
<li><a href="#llvm_mlgo_passes">Machine Learning Guided Ordering of Compiler Optimization Passes</a></li>
<li><a href="#llvm_mlgo_loop">Learning Loop Transformation Heuristics</a></li>
<li><a href="#llvm_module_inliner">Evaluate and Expand the Module-Level Inliner</a></li>
<li><a href="#llvm_undef_load">Remove undef: move uninitialized memory to poison</a></li>
<li><a href="#llvm_abi_export">Add ABI/API export annotations to the LLVM build</a></li>
</ul>
</li>
<li><a href="http://clang.llvm.org/"><b>Clang</b></a>
<ul>
<li><a href="#clang-template-instantiation-sugar">Extend clang AST to
provide information for the type as written in template
instantiations</a>
</li>
<li><a href="#clang-sa-structured-bindings">Implement support for
C++17 structured bindings in the Clang Static Analyzer</a>
</li>
<li><a href="#clang-improve-diagnostics">Improve Clang Diagnostics</a>
</li>
</ul>
</li>
<li>
<a href="https://polly.llvm.org"><b>Polly</b></a>
<ul>
<li><a href="#polly_npm">Completely switch to new pass manager</a></li>
</ul>
</li>
<li>
<b><a href="https://enzyme.mit.edu">Enzyme</a></b>
<ul>
<li><a href="#enzyme_tblgen">Move Enzyme Instruction Transformation Rules to Tablegen</a></li>
<li><a href="#enzyme_vector">Vector Reverse-Mode Automatic Differentiation</a></li>
<li><a href="#enzyme_pm">Enable The New Pass Manager</a></li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#gsoc21">Google Summer of Code 2021</a>
<ul>
<li>
<b>LLVM Core</b>
<ul>
<li><a href="#llvm_distributing_lit">Distributed lit testing</a></li>
<li><a href="#llvm_loop_heuristics">Learning Loop Transformation Heuristics</a></li>
<li><a href="#llvm_ir_fuzzing">Fuzzing LLVM-IR Passes</a></li>
<li><a href="#llvm_ir_assume"><tt>llvm.assume</tt> the missing pieces</a></li>
<li><a href="#llvm_shared_jitlink">Implement a shared-memory based JITLinkMemoryManager for out-of-process JITting</a></li>
<li><a href="#llvm_build_jit_tutorial">Modernize the LLVM "Building A JIT" tutorial series</a></li>
<li><a href="#llvm_jit_new_format">Write JITLink support for a new format/architecture</a></li>
<li><a href="#llvm_ir_issues">Fix fundamental issues in LLVM's IR</a></li>
<li><a href="#llvm_utilize_loopnest">Utilize LoopNest Pass</a></li>
</ul>
</li>
<li><a href="http://clang.llvm.org/"><b>Clang</b></a>
<ul>
<li><a href="#clang-template-instantiation-sugar">Extend clang AST to
provide information for the type as written in template
instantiations</a>
</li>
</ul>
</li>
<li>
<b>OpenMP</b>
<ul>
<li><a href="#openmp_gpu_jit">JIT-ing OpenMP GPU kernels transparently</a></li>
</ul>
</li>
<li>
<b>OpenACC</b>
<ul>
<li><a href="#openacc_rt_diagnostics">OpenACC Diagnostics from the OpenMP Runtime</a></li>
</ul>
</li>
<li>
<b><a href="https://polly.llvm.org">Polly</a></b>
<ul>
<li><a href="#polly_isl_bindings">Use official isl C++ bindings</a></li>
</ul>
</li>
<li>
<b><a href="https://enzyme.mit.edu">Enzyme</a></b>
<ul>
<li><a href="#enzyme_blas">Integrate custom derivatives of BLAS, Eigen, and similar routines into Enzyme</a></li>
<li><a href="#enzyme_swift">Integrate Enzyme into Swift to provide high-performance differentiation in Swift</a></li>
<li><a href="#enzyme_fixed">Differentiation of Fixed-Point Arithmetic</a></li>
<li><a href="#enzyme_rust">Integrate Enzyme into Rust to provide high-performance differentiation in Rust</a></li>
</ul>
</li>
<li>
<b>Clang Static Analyzer</b>
<ul>
<li><a href="#static_analyzer_profling">Clang Static Analyzer performance profiling</a></li>
<li><a href="#static_analyzer_constraint_solver">Clang Static Analyzer constraint solver improvements</a></li>
</ul>
</li>
<li>
<b>LLDB</b>
<ul>
<li><a href="#lldb_diagnostics">A structured approach to diagnostics in LLDB</a></li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#gsoc20">Google Summer of Code 2020</a>
<ul>
<li>
<b>LLVM Core</b>
<ul>
<li><a href="#llvm_optimized_debugging">Improve debugging of optimized code</a></li>
<li><a href="#llvm_ipo">Improve inter-procedural analyses and optimizations</a></li>
<li><a href="#llvm_par">Improve parallelism-aware analyses and optimizations</a></li>
<li><a href="#llvm_dbg_invariant">Make LLVM passes debug info invariant</a></li>
<li><a href="#llvm_mergesim">Improve MergeFunctions to incorporate MergeSimilarFunction patches and ThinLTO Support</a></li>
<li><a href="#llvm_dwarf_yaml2obj">Add DWARF support to yaml2obj</a></li>
<li><a href="#llvm_hotcold">Improve hot cold splitting to aggressively outline small blocks</a></li>
<li><a href="#llvm_pass_order">Advanced Heuristics for Ordering Compiler Optimization Passes</a></li>
<li><a href="#llvm_ml_scc">Machine learning and compiler optimizations: using inter-procedural analysis to select optimizations</a></li>
<li><a href="#llvm_postdominators">Add PostDominatorTree in LoopStandardAnalysisResults</a></li>
<li><a href="#llvm_loopnest">Create loop nest pass</a></li>
<li><a href="#llvm_instdump">Instruction properties dumper and checker</a></li>
<li><a href="#llvm_movecode">Unify ways to move code or check if code is safe to be moved</a></li>
</ul>
<li><a href="http://clang.llvm.org/"><b>Clang</b></a>
<ul>
<li><a href="#clang-template-instantiation-sugar">Extend clang AST to
provide information for the type as written in template
instantiations</a>
</li>
<li><a href="#clang-sa-cplusplus-checkers">Find null smart pointer dereferences
with the Static Analyzer</a>
</li>
</ul>
</li>
<li><a href="http://lldb.llvm.org/"><b>LLDB</b></a></li>
<ul>
<li><a href="#lldb-autosuggestions">Support autosuggestions in LLDB's command line</a></li>
<li><a href="#lldb-more-completions">Implement the missing tab completions for LLDB's command line</a></li>
<li><a href="#lldb-reimplement-lldb-cmdline">Reimplement LLDB's command-line commands using the public SB API.</a></li>
<li><a href="#lldb-batch-testing">Add support for batch-testing to the LLDB testsuite.</a></li>
</ul>
<li>
<b>MLIR</b>
<ul>
<li>See the <a href="https://mlir.llvm.org/getting_started/openprojects/">MLIR open project list</a></li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#gsoc19">Google Summer of Code 2019</a>
<ul>
<li>
<b>LLVM Core</b>
<ul>
<li><a href="#debuginfo_codegen_mismatch">Debug Info should have no
effect on codegen</a></li>
<li><a href="#llvm_function_attributes">Improve (function) attribute
inference</a></li>
<li><a href="#improve_binary_utilities">Improve LLVM binary utilities
</a></li>
</ul>
</li>
<li><a href="http://clang.llvm.org/"><b>Clang</b></a>
<ul>
<li><a href="#clang-astimporter-fuzzer">Implement an ASTImporter
fuzzer</a>
</li>
<li><a href="#improve-autocompletion">Improve shell autocompletion
for Clang</a>
</li>
<li><a href="#analyze-llvm">Apply the Clang Static Analyzer to LLVM-based
Projects</a>
</li>
<li><a href="#header-generation">Generate annotated sources based on
LLVM-IR analyses</a>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="#gsoc18">Google Summer of Code 2018</a></li>
<li><a href="#gsoc17">Google Summer of Code 2017</a></li>
</ul>
</li>
<li><a href="#what">What is this?</a></li>
<li><a href="#subprojects">LLVM Subprojects: Clang and more</a></li>
<li><a href="#improving">Improving the current system</a>
<ol>
<li><a href="#target-desc">Factor out target descriptions</a></li>
<li><a href="#code-cleanups">Implementing Code Cleanup bugs</a></li>
<li><a href="#programs">Compile programs with the LLVM Compiler</a></li>
<li><a href="#llvmtest">Add programs to the llvm-test suite</a></li>
<li><a href="#benchmark">Benchmark the LLVM compiler</a></li>
<li><a href="#statistics">Benchmark Statistics and Warning System</a></li>
<li><a href="#coverage">Improving Coverage Reports</a></li>
<li><a href="#misc_imp">Miscellaneous Improvements</a></li>
</ol></li>
<li><a href="#new">Adding new capabilities to LLVM</a>
<ol>
<li><a href="#llvm_ir">Extend the LLVM intermediate representation</a></li>
<li><a href="#pointeranalysis">Pointer and Alias Analysis</a></li>
<li><a href="#profileguided">Profile-Guided Optimization</a></li>
<li><a href="#compaction">Code Compaction</a></li>
<li><a href="#xforms">New Transformations and Analyses</a></li>
<li><a href="#codegen">Code Generator Improvements</a></li>
<li><a href="#misc_new">Miscellaneous Additions</a></li>
</ol></li>
<li><a href="#using">Project using LLVM</a>
<ol>
<li><a href="#machinemodulepass">Add a MachineModulePass</a></li>
<li><a href="#encodeanalysis">Encode Analysis Results in MachineInstr IR</a></li>
<li><a href="#codelayoutjit">Code Layout in the LLVM JIT</a></li>
<li><a href="#fieldlayout">Improved Structure Splitting and Field Reordering</a></li>
<li><a href="#slimmer">Finish the Slimmer Project</a></li>
</ol></li>
</ul>
<div class="doc_author">
<p>Written by the <a href="/">LLVM Team</a></p>
</div>
<!-- *********************************************************************** -->
<div class="www_sectiontitle">
<a name="gsoc26">Google Summer of Code 2026</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p>
Welcome prospective Google Summer of Code 2026 Students! This document is
your starting point to finding interesting and important projects for LLVM,
Clang, and other related sub-projects. This list of projects is not only
developed for Google Summer of Code, but open projects that really need
developers to work on and are very beneficial for the LLVM community.
</p>
<p>We encourage you to look through this list and see which projects excite
you and match well with your skill set. We also invite proposals not on this
list. More information and discussion about GSoC can be found in
<a href="https://discourse.llvm.org/c/community/gsoc" target="_blank">
discourse
</a>. If you have questions about a particular project please find the
relevant entry in discourse, check previous discussion and ask. If there is
no such entry or you would like to propose an idea please create a new
entry. Feedback from the community is a requirement for your proposal to be
considered and hopefully accepted.
</p>
<p>The LLVM project has participated in Google Summer of Code for many years
and has had some very successful projects. We hope that this year is no
different and look forward to hearing your proposals. For information on how
to submit a proposal, please visit the Google Summer of Code main
<a href="https://summerofcode.withgoogle.com/">website.</a>
</p>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="expanding-api-notes-for-cpp">Expanding API Notes for C++</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description</b></p>
<p>
API notes are a YAML-based "sidecar" file mechanism in Clang that allows users to add attributes to existing headers without modifying the header files themselves.
This is particularly useful for Swift developers who want to annotate third-party C/C++ libraries and frameworks for better interoperability.
However, API notes have limited support for C++ syntax (e.g., type conversion operators), and cannot annotate specific function overloads or template instantiations.
</p>
<p><b>Expected Result:</b>
Extend API notes to better support C++ language features.
</p>
<p><b>Skills:</b>
Intermediate C++, familiarity or experience with compiler development
</p>
<p><b>Project size:</b>
Small or Medium, depending on scope of the proposal
</p>
<p><b>Difficulty:</b>
Medium
</p>
<p><b>Potential Mentors:</b>
<a href="https://github.com/j-hui">John Hui</a>
<a href="https://github.com/egorzhdan">Egor Zhdan</a>
<a href="https://github.com/Xazax-hun">Gábor Horváth</a>
</p>
<p><b>Discourse:</b>
<a href="https://discourse.llvm.org/t/gsoc-2026-expanding-api-notes-for-c/89638">URL</a>
</p>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="upstreaming-fbounds-safety">Participating in Upstreaming -fbounds-safety</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description</b></p>
<p>
The -fbounds-safety extension for C adds bounds annotations and compiler-enforced bounds checking to prevent buffer overflow vulnerabilities. Developed by Apple and maintained in a <a href="https://github.com/swiftlang/llvm-project">downstream fork</a>, the extension is being incrementally upstreamed to mainline Clang. See the <a href="https://discourse.llvm.org/t/rfc-enforcing-bounds-safety-in-c-fbounds-safety/70854">RFC</a> and <a href="https://clang.llvm.org/docs/BoundsSafety.html">documentation</a> for details.
</p>
<p>
The student will contribute to upstreaming by:
</p>
<ul>
<li>Taking a subset of features identified by the mentor</li>
<li>Extracting a relevant downstream feature and refactoring to meet upstream LLVM standards, writing tests and documentation</li>
<li>Backporting to the downstream fork to validate correctness in the full -fbounds-safety context</li>
</ul>
<p><b>Expected results:</b>
Upstreamed patches with tests and documentation; validated backports to downstream.
</p>
<p><b>Confirmed Mentor:</b>
<a href=https://github.com/rapidsna>Yeoul Na</a>, [co-mentors TBD]
</p>
<p><b>Desired skills:</b>
C/C++, compiler concepts, managing patches across branches. Clang/LLVM experience and memory safety knowledge are a plus.
</p>
<p><b>Project size:</b>
Medium or Large (features can be scoped to match the participant's skill level)
</p>
<p><b>Difficulty:</b>
Medium or Hard (features can be scoped to match the participant's skill level)
</p>
<p><b>Discourse:</b> <a href="https://discourse.llvm.org/t/gsoc-2026-participating-in-upstreaming-fbounds-safety/89649">URL</a></p>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="incremental-build-support-modules-driver">Incremental build support for the modules driver</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description</b></p>
<p>
The newly introduced -fmodules-driver mode enables explicit module builds directly from Clang’s driver, supporting both Clang modules discovered via module map files and C++20 named modules.
Currently, these modules are precompiled from scratch on every invocation because the modules driver does not provide any caching.
This is especially costly for large modules (e.g., the Standard library modules), adding substantial overhead to each compilation.
</p>
<p>
This project aims to add compilation-job-level caching across the entire modules-driver build graph to enable incremental compilation.
Using the dependency-scan results, the driver should track header and module dependencies for each input and determine which jobs must be rebuilt and which can be safely reused from the cache.
</p>
<p><b>Expected Result:</b>
On repeated compilations, the modules driver should only execute compile jobs that are affected by changed or newly introduced inputs.
All other unaffected jobs should be reused from the cache. If multiple Clang instances run simultaneously, the cache must remain correct and safe under concurrent access.
</p>
<p><b>Skills:</b>
Intermediate knowledge of C++; familiarity with how C++ code is built. Familiarity with C++20 modules/Clang modules is an asset, but not required.
</p>
<p><b>Project size:</b>
Large
</p>
<p><b>Difficulty:</b>
Medium
</p>
<p><b>Mentors:</b>
<a href="https://github.com/naveen-seth">Naveen Hanig</a>
</p>
<p><b>Discourse:</b>
<a href="https://discourse.llvm.org/t/clang-gsoc-2026-incremental-build-support-for-the-modules-driver/89667">URL</a>
</p>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="improving-clang-doc">Improving Clang-Doc</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description</b></p>
<p>
Clang-Doc is a modern C/C++ documentation generation tool created as an alternative for Doxygen and built on top
of LibTooling. This effort started in 2018 and critical mass has landed in 2019, but the development has been largely
stagnant mostly due to a lack of resources until the last two years when the development restarted and made significant
progress with two successful Google Summer of Code projects:
</p>
<ul>
<li><a href=https://blog.llvm.org/posts/2024-12-04-improve-clang-doc/>GSoC 2024: Improve Clang-Doc</a></li>
<li><a href=https://blog.llvm.org/posts/2025-gsoc-clang-doc/>GSoC 2025: Improving Core Clang-Doc Functionality</a></li>
</ul>
<p>
<a href="https://www.youtube.com/watch?v=vuHF_ZeAPVI">Clang-Doc: Where We’ve Been and Where We’re Going</a> talk presented
at 2025 LLVM Developers’ Meeting gives a great overview of Clang-Doc architecture and its biggest strengths such as support
for latest C++ features and scalable architecture.
</p>
<p>
Clang-Doc still has significant room for improvement though. Below are some of the ideas we would like to explore.
</p>
<ul>
<li>
<em>Improved Markdown Parsing</em>: One of the most pressing needs is improved Markdown parsing within Doxygen comments. This
enhancement would enable support for richer text formatting, code blocks, and tables directly within code comments,
making the documentation more readable and informative. Currently, the lack of full Markdown support limits the expressive
power of inline documentation.
</li>
<li>
<em>Clang AST Support for Group Comments</em>: Another critical area is the Clang AST support for Doxygen group comments. As
highlighted in GitHub issue <a href="https://github.com/llvm/llvm-project/issues/151184">#151184</a>, robust support for Doxygen’s
grouping commands (e.g., \defgroup, \addtogroup) is crucial for generating accurate and comprehensive API documentation that reflects
the intended module structure of large projects.
</li>
<li>
<em>Making The Output More Indexable</em>: Most developers navigate to the generated documentation via search engine and more recently
LLM agents. Making the generated documentation more optimized for indexers can improve its overall usability.
</li>
<li>
<em>Optimizing Clang’s Frontend Actions</em>: Optimizing Clang’s “Frontend Actions” would directly reduce documentation generation time,
especially for large codebases. This involves streamlining the processes by which Clang-doc extracts information from the AST, leading
to faster build times and a more efficient documentation workflow. As discussed in various LLVM developer forums, performance is a
continuous focus for Clang tools.
</li>
<li>
<em>Arena Allocation for Memory Management</em>: Arena allocation is a memory management technique that could significantly improve
Clang-doc’s execution speed and reduce memory overhead, particularly when processing large ASTs. By allocating objects from a
pre-allocated memory block, arena allocation can reduce the overhead associated with individual memory allocations and deallocations,
leading to better performance, a common optimization in compilers and static analysis tools.
</li>
</ul>
<p><b>Expected Result:</b>
The high-level goal of this project is to implement the missing features in Clang’s documentation parser as well as their handling in Clang-Doc
to improve the quality of the generated documentation. The eventual goal is for the LLVM project to start using Clang-Doc for generating its
reference documentation, but before we can do that we need to ensure that all required features are implemented.
</p>
<p>
Note that each of the aforementioned ideas could be a medium-sized project on its own and we expect candidates to select one (or more) that match
their interest. Successful proposals should focus not only on addressing the existing limitations, but also draw inspiration for other potential
improvements from other documentation tools such as
<a href=https://hdoc.io/>hdoc</a>,
<a href=https://github.com/standardese/standardese>standardese</a>,
<a href=https://github.com/chromium/subspace/tree/main/subdoc>subdoc</a>,
<a href=https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/cppdocgen/>cppdocgen</a>,
<a href="https://github.com/celerity/leafy-green-doc">leafy-green-doc</a>, or
<a href="https://www.mrdocs.com/">Mr.Docs</a>.
</p>
<p>
Over the course of the project, the candidate will have an opportunity to gain significant experience with LLVM and Clang internals (including
lexer and parser) and C/C++ language.
</p>
<p><b>Skills:</b>
Experience with web technologies (HTML, CSS, JS) and an intermediate knowledge of C++. Previous experience with Clang/LibTooling is a bonus but not required.
</p>
<p><b>Project size:</b> Either medium or large.</p>
<p><b>Difficulty:</b> Medium</p>
<p><b>Confirmed Mentor:</b>
<a href=https://github.com/evelez7>Erick Velez</a>,
<a href=https://github.com/ilovepi>Paul Kirth</a>,
<a href=https://github.com/petrhosek>Petr Hosek</a>
</p>
<p><b>Discourse:</b> <a href=https://discourse.llvm.org/t/gsoc-2026-improving-clang-doc/89662>URL</a>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="improving-lit">Improving lit</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description of the project:</b>
LLVM's main test running tool, <a href="https://llvm.org/docs/CommandGuide/lit.html"><code>lit</code></a> (LLVM's integrated tester), is a key part of LLVM’s testing practices for end-to-end testing of the compiler and related tools. <code>lit</code> is a tool that can parse and execute <code>RUN:</code> commands added in source file comments. Chiefly, these commands are shell commands that invoke tools that are being tested—like <code>clang</code> or <code>lld</code>—and whose output can be programmatically checked in conjunction with other tooling, like LLVM’s <a href="https://llvm.org/docs/CommandGuide/FileCheck.html"><code>FileCheck</code></a> utility.
</p>
<p>
Over the last couple years, we’ve worked towards improving <code>lit</code>’s internal shell enough, so that it could be the default mode for running LLVM tests (see <a href="https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179">[RFC] Enabling the Lit Internal Shell by Default</a>). Today, <code>lit</code> already uses the internal shell by default in LLVM’s CI, which has improved test performance and increased consistency across platforms. However, there are still many aspects of the current implementation that could be improved, though.
</p>
<ul>
<li>
<em>Modernize the lit Python implementation</em>: Today, lit’s current implementation is, to a large extent, a direct translation of the old Python 2.7 implementation to Python 3. There are numerous language improvements that would allow us to simplify the code and follow best practices. This would require an audit of the current implementation and subsequent refactoring. Note that we’re not advocating a complete rewrite, but targeted well scoped changes to bring the current implementation into line with more modern Python standards.
</li>
<li>
<em>Reduced process overhead</em>: Using <code>asyncio</code> for subprocess handling is likely a significant improvement in terms of performance, since <code>lit</code> spawns many subprocesses and waits for their results when it could frequently take care of unrelated work. Further, some of the out-of-process builtins should be moved back so that they can run in-process (see <a href="https://discourse.llvm.org/t/rfc-reducing-process-creation-overhead-in-llvm-regression-tests/88612">[RFC] Reducing process creation overhead in LLVM regression tests</a>).
</li>
<li>
<em>Improve shell utilities</em>: A few of the internal shell replacements for common programs have some issues with common usage. For instance, the built-in <code>env</code> has some problems with pipelines (see <a href="https://github.com/llvm/llvm-project/issues/115578">#115578</a>), and the ergonomics around <code>readfile</code> and environment variables in some compiler-rt tests are problematic.
</li>
<li>
<em>Performance tuning</em>: <code>lit</code> and the various pieces of its internal shell implementation have never been properly profiled and optimized. For instance, commands like <code>echo</code> and <code>cat</code>, while functional, employ suboptimal algorithms and data structures. There is a big opportunity here to leverage profiling information, specifically via <a href="https://github.com/plasma-umass/scalene">Scalene</a>, to pinpoint inefficiencies, such as contention on the Global Interpreter Lock (GIL), excessive memory usage, and redundant data copies.
</li>
</ul>
<p><b>Expected Result:</b>
The goal of this project is to improve <code>lit</code>’s performance, usability, and maintainability. Successful proposals should provide a detailed plan for improving <code>lit</code>’s implementation. Applicants are encouraged to look more deeply into these areas, and provide concrete plans for what they propose to change, over only vague descriptions of improvements.
</p>
<p><b>Skills:</b>
Python
</p>
<p><b>Project size:</b> Either medium or large.</p>
<p><b>Difficulty:</b> Medium</p>
<p><b>Confirmed Mentor:</b>
<a href=https://github.com/boomanaiden154>Aiden Grossman</a>,
<a href=https://github.com/ilovepi>Paul Kirth</a>,
<a href=https://github.com/petrhosek>Petr Hosek</a>
</p>
<p><b>Discourse:</b> <https://discourse.llvm.org/t/gsoc-2026-improving-lit/89663>URL</a>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="enable_float80_float128_for_unsupported_target">Enable float80 and float128 math support on unsupported targets for LLVM libc</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description</b></p>
<p>
The LLVM libc project aims to provide a complete, correct, and high-performance C23 standard library. A key
differentiator is its focus on correctly rounded math functions for all floating-point types, including float,
double, long double, and float128 (IEEE 754 quad precision).
</p>
<p>However, not all compilers or architectures support these types natively. For example:</p>
<ul>
<li>MSVC on Windows treats long double as 64-bit double and lacks a native __float128 type.</li>
<li>AArch64 targets typically use 128-bit long double, but lack the 80-bit extended precision format.</li>
<li>Clang on certain non-x86 targets may not enable __float128 by default.</li>
</ul>
<p>
This lack of host compiler support prevents LLVM libc from building and testing its high-precision math routines on
these platforms.
</p>
<p><b>The Goal</b></p>
<p>
The goal of this project is to implement standalone C++ classes (e.g., within LIBC_NAMESPACE::fputil) that emulate
float80 and float128 semantics in software. These classes should provide the necessary operator overloads and
storage (using UInt<128> or similar) to allow the existing templated math implementations to compile and run
even when the host compiler does not support the native types.
</p>
<p><b>Proposed Solution</b></p>
<ul>
<li>Type Abstraction: Create wrapper classes that mimic the behavior of native floating-point types.</li>
<li>Soft-Float Arithmetic: Implement or connect these classes to soft-float arithmetic routines (add, sub, mul, div)
so that math algorithms (like polynomial evaluation) can be executed.</li>
<li>Integration: Refactor the math function entry points to instantiate templates with these emulated types when
native support is missing.</li>
</ul>
<p><b>Expected Results</b></p>
<ul>
<li>A header-only C++ implementation of float80 and float128 types that can be used where native support is missing.</li>
<li>Basic arithmetic operations (+, -, *, /) implemented for these types.</li>
<li>Demonstration of LLVM libc math functions compiling and passing tests using these emulated types on a target that
lacks native support (e.g., building float80 math on Mac arm64, float128 math with MSVC).</li>
</ul>
<p><b>Project size:</b>Medium or Large</p>
<p><b>Difficulty:</b>Medium</p>
<p><b>Requirements</b></p>
<ul>
<li>Basic C++ skills.</li>
<li>Interest in understanding the intricacies of floating-point formats (IEEE 754 and extended precision).</li>
</ul>
<p><b>Mentors:</b>
<a href="mailto:lntue.h@gmail.com">Tue Ly</a>,
<a href="mailto:its.overmighty@gmail.com">Nicolas Celik</a>,
<a href="mailto:kpandey81930@gmail.com">Krishna Pandey</a>,
</p>
<p><b>Discourse:</b>
<a href="https://discourse.llvm.org/t/gsoc-2026-libc-enable-float80-and-float128-math-support-on-unsupported-targets-for-llvm-libc/89647">URL</a>
</p>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="use_llvm_libc_math_for_compiler_rt_builtins">Use LLVM libc math routines for compiler-rt floating point routines</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description</b></p>
<p>
compiler-rt builtins provide essential floating-point computation routines to support runtime execution when the
underlying hardware does not support specific floating-point types natively. Unfortunately, the current
implementations are under tested, leaving subtle numerical bugs lying dormant for years. Additionally, they are
written in a mix of C and hand-written assembly, which substantially increases the maintenance burden.
</p>
<p>
In contrast, LLVM libc implements these basic floating-point operations with rigorous testing and formal verification.
A recent <a href="https://libc.llvm.org/hand_in_hand.html">effort</a> (see also
<a href="https://github.com/llvm/llvm-project/issues/147386">Issue #147386</a>) has refactored LLVM libc math
routines to be free-standing and header-only. This work has significantly lowered the barrier to use LLVM libc
implementations, allowing other LLVM projects to consume LLVM libc logic directly via header inclusions without
introducing complex build and link dependencies.
</p>
<p>
Our goal is to demonstrate the feasibility and benefits of replacing legacy compiler-rt floating-point builtins with
the modern, verified equivalents from LLVM libc.
</p>
<p><b>Expected Results</b></p>
<ul>
<li>Infrastructure: Ensure basic floating-point operations in LLVM libc are exposed as shared, free-standing headers
suitable for inclusion in compiler-rt.</li>
<li>Integration: Add a CMake build option allowing compiler-rt builtins to be compiled using LLVM libc math routines
instead of the legacy implementations.</li>
<li>Validation & Performance: Benchmark the new implementation on embedded targets. Analyze code size and
performance, optimizing the build to achieve parity with the current C or hand-written assembly implementations.</li>
</ul>
<p><b>Project size:</b>Medium or Large</p>
<p><b>Difficulty:</b>Medium</p>
<p><b>Requirements</b></p>
<ul>
<li>Basic C++ skills.</li>
<li>Interest in understanding the intricacies of floating-point formats (IEEE 754) and the low-level implementation of arithmetic operations.</li>
</ul>
<p><b>Mentors:</b>
<a href="mailto:lntue.h@gmail.com">Tue Ly</a>,
<a href="mailto:michaelrj@google.com">Michael Jones</a>,
<a href="mailto:muhammad.m.bassiouni@gmail.com">Muhammad Bassiouni</a>,
</p>
<p><b>Discourse:</b>
<a href="https://discourse.llvm.org/t/gsoc-2026-libc-use-llvm-libc-math-routines-for-compiler-rt-floating-point-builtins/89648">URL</a>
</p>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="unified-host–device-compilation-in-clangir">Unified Host–Device Compilation in ClangIR (CIR): Enabling Cross-Boundary Analysis and Optimization</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description</b></p>
<p>
Modern heterogeneous applications rely heavily on GPU offloading, yet today’s compilation pipelines
strictly separate host and device compilation. This separation prevents whole-program reasoning across
host–device boundaries and limits optimization opportunities such as kernel specialization, launch-bound
inference, and cross-boundary constant propagation.
</p>
<p>
This project proposes extending <a href="https://clangir.org">ClangIR</a> with a combine compilation pipeline
that merges host and device CIR modules into a unified representation, enables joint analysis and transformation,
and then safely re-splits the code for final target-specific lowering.
The work builds directly on an existing work-in-progress implementation and aims to upstream a robust, tested, and documented workflow.
</p>
<p><b>Background and Motivation</b></p>
<p>The Clang compiler today emits separate compilation artifacts for host and device code (e.g., CUDA/HIP). While this model simplifies handling, it introduces fundamental limitations:</p>
<ul>
<li>No cross-boundary analysis: The compiler cannot reason about kernel launches, argument values, or launch configuration at the call site.</li>
<li>Missed optimization opportunities: Kernel specialization, dead code elimination, and launch-bound inference require joint host–device visibility.</li>
</ul>
<p>LLVM’s MLIR-based CIR provides a unique opportunity to address this limitation. Because both host and device code are represented in a structured, high-level IR, it becomes feasible to temporarily merge them, perform joint analyses and transformations, and then re-split them for conventional lowering.</p>
<p>This project directly explores that opportunity.<\p>
<p><b>Related Work and Current State</b></p>
<p> ClangIR is actively being upstreamed and already supports emitting CIR from Clang’s AST and lowering to LLVM IR. Initial experiments have demonstrated that host and device CIR modules can be merged in a controlled way.</p>
<p>A work-in-progress implementation already exists which is capable of merging but there is still work to be done in incorporating the merging with the clang driver</p>
<ul>
<li> A WIP <a href="https://github.com/llvm/clangir/pull/2097">PR</a> on the incubator project presenting some of the required steps
<li> An <a href="https://github.com/llvm/llvm-project/issues/175871">issue</a> loosely tracking changes regarding the offload support on ClangIR.
</ul>
<p><b>Expected Result</b></p>
<ol>
<li>Clang Driver extensions to optionally enable the capability.</li>
<li>Build the infrastructure to contain within a single translation unit both device and host code</li>
<li>Build the infrastructure to properly split a "combined" translation unit to individual ones representing device and host code</li>
<li>End to End execution of the new driver pipeline on benchmarks from PolyBench.</li>
<li>Reporting on compilation time overheads and execution time overheads.</li>
<li>Bonus Point: Implement an optimization pass that infers launch bounds from the host call site</li>
</ol>
<p><b>Skills:</b>
Intermediate C++ programming skills and familiarity with basic compiler
design concepts are required. Prior experience with LLVM IR, MLIR, Clang or
ClangIR programming is a big plus, but willingness to learn is also a
possibility.
</p>
<p><b>Project size:</b> Large</p>
<p><b>Difficulty:</b>Medium</p>
<p><b>Potential Mentors:</b>
<a href="https://github.com/koparasy">Konstantinos (Dinos) Parasyris</a>
</p>
<p><b>Discourse:</b>
<a href="https://discourse.llvm.org/t/gsoc-2026-host-device-cir-combine-pipeline-project-idea-discussion/89623">URL</a>
</p>
</div>
<!-- *********************************************************************** -->
<div class="www_subsubsection">
<a name="csa-lifetime-annotations">Teach the Clang Static Analyzer to understand lifetime annotations</a>
</div>
<!-- *********************************************************************** -->
<div class="www_text">
<p><b>Description:</b>
The <a href="https://clang.llvm.org/docs/ClangStaticAnalyzer.html">Clang Static Analyzer</a> (CSA)
can already find a wide range of temporal memory errors. These checks often have hardcoded
knowledge about the behavior of some APIs. For example, the <code>cplusplus.InnerPointer</code> checker knows
the semantics of <code>std::string::data</code>. The Clang community introduced some lifetime
annotations including <code>[[clang::lifetimebound]]</code> and <code>[[clang::lifetime_capture_by(X)]]</code>
and made <a href="https://discourse.llvm.org/t/lifetime-analysis-improvements-in-clang/81374">many improvements</a>
to Clang's default warnings. Unfortunately, the compiler's warnings only do statement local analysis.
The CSA is capable of advanced inter-procedural analysis. Generalizing the existing checks like
<code>cplusplus.InnerPointer</code> could enable the analyzer to find even more errors in annotated code.
This can become even more impactful once the standard library
<a href="https://github.com/llvm/llvm-project/pull/112751">gets annotated</a>.
</p>