Name Date Size #Lines LOC

..--

Targets/H--12,4278,371

ABIInfo.cppH A D21-Jan-20259.6 KiB284197

ABIInfo.hH A D21-Jan-20256.2 KiB16191

ABIInfoImpl.cppH A D11-Jan-202516.9 KiB457322

ABIInfoImpl.hH A D28-Oct-20247.1 KiB16053

Address.hH A D19-Jul-202411.6 KiB301191

BackendConsumer.hH A D10-Jan-20255.9 KiB16697

BackendUtil.cppH A D23-Jan-202559.1 KiB1,3871,109

CGAtomic.cppH A D22-Jan-202588 KiB2,0821,651

CGBlocks.cppH A D16-Nov-2024106.7 KiB2,8701,921

CGBlocks.hH A D28-Mar-20249.8 KiB319221

CGBuilder.hH A D05-Sep-202418.8 KiB451339

CGBuiltin.cppH A D28-Jan-2025980.1 KiB21,95818,888

CGCUDANV.cppH A D28-Jan-202556 KiB1,253903

CGCUDARuntime.cppH A D16-Nov-20241.6 KiB4624

CGCUDARuntime.hH A D09-Sep-20243.8 KiB12475

CGCXX.cppH A D16-Nov-202412 KiB315186

CGCXXABI.cppH A D28-Mar-202413.3 KiB362259

CGCXXABI.hH A D09-Sep-202428.9 KiB686337

CGCall.cppH A D29-Jan-2025239.3 KiB6,0314,265

CGCall.hH A D05-Sep-202414.7 KiB453321

CGClass.cppH A D11-Jan-2025120.8 KiB3,1492,199

CGCleanup.cppH A D25-Sep-202451.7 KiB1,367851

CGCleanup.hH A D25-Sep-202421.5 KiB701459

CGCoroutine.cppH A D24-Jan-202538.9 KiB1,044668

CGDebugInfo.cppH A D29-Jan-2025238.2 KiB6,1544,537

CGDebugInfo.hH A D06-Jan-202540.4 KiB932471

CGDecl.cppH A D29-Jan-2025113.7 KiB2,8522,018

CGDeclCXX.cppH A D22-Jan-202548.3 KiB1,177773

CGException.cppH A D24-Jan-202585.3 KiB2,2981,527

CGExpr.cppH A D28-Jan-2025249.2 KiB6,2074,567

CGExprAgg.cppH A D14-Oct-202485.6 KiB2,2131,558

CGExprCXX.cppH A D22-Jan-202592.5 KiB2,3411,579

CGExprComplex.cppH A D19-Nov-202459.5 KiB1,5351,181

CGExprConstant.cppH A D14-Oct-2024101.1 KiB2,5961,897

CGExprScalar.cppH A D28-Jan-2025234.4 KiB5,8384,185

CGGPUBuiltin.cppH A D16-Nov-20247.6 KiB223139

CGHLSLRuntime.cppH A D25-Jan-202522.5 KiB459335

CGHLSLRuntime.hH A D22-Jan-20257 KiB14189

CGLoopInfo.cppH A D04-Dec-202431.9 KiB861687

CGLoopInfo.hH A D28-Mar-202411.3 KiB315144

CGNonTrivialStruct.cppH A D11-Jan-202540.6 KiB993786

CGObjC.cppH A D10-Jan-2025154.8 KiB4,0842,737

CGObjCGNU.cppH A D29-Jan-2025177.4 KiB4,3653,093

CGObjCMac.cppH A D11-Jan-2025301.8 KiB7,8855,083

CGObjCRuntime.cppH A D23-Jan-202517.6 KiB478327

CGObjCRuntime.hH A D22-Jul-202216.5 KiB373208

CGOpenCLRuntime.cppH A D14-Nov-20236 KiB165111

CGOpenCLRuntime.hH A D14-Nov-20233.6 KiB10752

CGOpenMPRuntime.cppH A D24-Jan-2025501.7 KiB12,2569,833

CGOpenMPRuntime.hH A D14-Jan-2025106.9 KiB2,331863

CGOpenMPRuntimeGPU.cppH A D21-Jan-202592.1 KiB2,3621,834

CGOpenMPRuntimeGPU.hH A D24-Oct-202418.1 KiB400146

CGPointerAuth.cppH A D23-Jul-202423.8 KiB295228

CGPointerAuthInfo.hH A D21-Jun-20243.1 KiB10070

CGRecordLayout.hH A D23-Jul-20248.7 KiB240101

CGRecordLayoutBuilder.cppH A D11-Jan-202554.2 KiB1,264786

CGStmt.cppH A D22-Jan-2025123.6 KiB3,2572,262

CGStmtOpenMP.cppH A D14-Jan-2025352.8 KiB8,2026,729

CGVTT.cppH A D17-Oct-20247.7 KiB194136

CGVTables.cppH A D16-Nov-202456.7 KiB1,421942

CGVTables.hH A D15-May-20246.1 KiB15979

CGValue.hH A D18-Jul-202421.9 KiB697459

CMakeLists.txtH A D19-Sep-20243.3 KiB160154

CodeGenABITypes.cppH A D16-Nov-20245.2 KiB13092

CodeGenAction.cppH A D23-Jan-202544.2 KiB1,255922

CodeGenFunction.cppH A D25-Sep-2024125.3 KiB3,1292,169

CodeGenFunction.hH A D28-Jan-2025238.2 KiB5,3543,175

CodeGenModule.cppH A D29-Jan-2025303.4 KiB7,7735,581

CodeGenModule.hH A D25-Sep-202479.6 KiB1,860934

CodeGenPGO.cppH A D09-Jan-202553.4 KiB1,4991,078

CodeGenPGO.hH A D09-Jan-20255.7 KiB14490

CodeGenTBAA.cppH A D17-Dec-202425.1 KiB553375

CodeGenTBAA.hH A D22-Oct-20249.4 KiB265149

CodeGenTypeCache.hH A D19-May-20243.6 KiB13178

CodeGenTypes.cppH A D27-Jan-202533 KiB842625

CodeGenTypes.hH A D21-Aug-202413.8 KiB304150

ConstantEmitter.hH A D11-Jul-20247 KiB18991

ConstantInitBuilder.cppH A D16-Jan-202510.9 KiB317233

CoverageMappingGen.cppH A D09-Jan-202597.9 KiB2,6191,757

CoverageMappingGen.hH A D09-Jan-20256 KiB186109

EHScopeStack.hH A D25-Sep-202415 KiB436201

ItaniumCXXABI.cppH A D10-Jan-2025205.9 KiB4,9843,163

LinkInModulesPass.cppH A D16-Nov-2024942 3414

LinkInModulesPass.hH A D28-Jun-20241.2 KiB4217

MCDCState.hH A D13-Jun-20241.2 KiB5025

MacroPPCallbacks.cppH A D14-Sep-20246.4 KiB200146

MacroPPCallbacks.hH A D08-Feb-20244.6 KiB12351

MicrosoftCXXABI.cppH A D24-Jan-2025182.1 KiB4,5223,195

ModuleBuilder.cppH A D05-Jul-202413 KiB374264

ObjectFilePCHContainerWriter.cppH A D23-Jan-202512.8 KiB

PatternInit.cppH A D18-Nov-20224.1 KiB8452

PatternInit.hH A D12-Apr-2019722 2813

README.txtH A D23-Dec-20201.8 KiB4835

SanitizerMetadata.cppH A D07-Jan-20256.6 KiB10473

SanitizerMetadata.hH A D19-May-20231.6 KiB5231

SwiftCallingConv.cppH A D11-Jan-202530.1 KiB879574

TargetInfo.cppH A D09-Aug-202410.2 KiB221150

TargetInfo.hH A D20-Jan-202524.7 KiB573286

VarBypassDetector.cppH A D08-Aug-20225.1 KiB168121

VarBypassDetector.hH A D30-Oct-20212.3 KiB7131

README.txt

1IRgen optimization opportunities.
2
3//===---------------------------------------------------------------------===//
4
5The common pattern of
6--
7short x; // or char, etc
8(x == 10)
9--
10generates an zext/sext of x which can easily be avoided.
11
12//===---------------------------------------------------------------------===//
13
14Bitfields accesses can be shifted to simplify masking and sign
15extension. For example, if the bitfield width is 8 and it is
16appropriately aligned then is is a lot shorter to just load the char
17directly.
18
19//===---------------------------------------------------------------------===//
20
21It may be worth avoiding creation of alloca's for formal arguments
22for the common situation where the argument is never written to or has
23its address taken. The idea would be to begin generating code by using
24the argument directly and if its address is taken or it is stored to
25then generate the alloca and patch up the existing code.
26
27In theory, the same optimization could be a win for block local
28variables as long as the declaration dominates all statements in the
29block.
30
31NOTE: The main case we care about this for is for -O0 -g compile time
32performance, and in that scenario we will need to emit the alloca
33anyway currently to emit proper debug info. So this is blocked by
34being able to emit debug information which refers to an LLVM
35temporary, not an alloca.
36
37//===---------------------------------------------------------------------===//
38
39We should try and avoid generating basic blocks which only contain
40jumps. At -O0, this penalizes us all the way from IRgen (malloc &
41instruction overhead), all the way down through code generation and
42assembly time.
43
44On 176.gcc:expr.ll, it looks like over 12% of basic blocks are just
45direct branches!
46
47//===---------------------------------------------------------------------===//
48