|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| ABIInfo.h | D | 03-May-2024 | 5 KiB | 152 | 85 |
| Address.h | D | 03-May-2024 | 3.3 KiB | 118 | 72 |
| BackendUtil.cpp | D | 03-May-2024 | 63.8 KiB | 1,604 | 1,284 |
| CGAtomic.cpp | D | 03-May-2024 | 86.6 KiB | 2,122 | 1,669 |
| CGBlocks.cpp | D | 03-May-2024 | 111.1 KiB | 2,956 | 1,979 |
| CGBlocks.h | D | 03-May-2024 | 8.9 KiB | 295 | 201 |
| CGBuilder.h | D | 03-May-2024 | 13.8 KiB | 324 | 232 |
| CGBuiltin.cpp | D | 03-May-2024 | 715.6 KiB | 17,343 | 14,908 |
| CGCUDANV.cpp | D | 03-May-2024 | 35.2 KiB | 849 | 598 |
| CGCUDARuntime.cpp | D | 03-May-2024 | 1.5 KiB | 46 | 24 |
| CGCUDARuntime.h | D | 03-May-2024 | 3.4 KiB | 107 | 63 |
| CGCXX.cpp | D | 03-May-2024 | 11.8 KiB | 308 | 181 |
| CGCXXABI.cpp | D | 03-May-2024 | 11.6 KiB | 313 | 232 |
| CGCXXABI.h | D | 03-May-2024 | 27.6 KiB | 653 | 318 |
| CGCall.cpp | D | 03-May-2024 | 200.7 KiB | 5,206 | 3,660 |
| CGCall.h | D | 03-May-2024 | 11.6 KiB | 387 | 277 |
| CGClass.cpp | D | 03-May-2024 | 113.9 KiB | 2,976 | 2,058 |
| CGCleanup.cpp | D | 03-May-2024 | 47 KiB | 1,279 | 795 |
| CGCleanup.h | D | 03-May-2024 | 19.3 KiB | 636 | 406 |
| CGCoroutine.cpp | D | 03-May-2024 | 27.8 KiB | 759 | 492 |
| CGDebugInfo.cpp | D | 03-May-2024 | 192.7 KiB | 5,036 | 3,759 |
| CGDebugInfo.h | D | 03-May-2024 | 34.8 KiB | 814 | 416 |
| CGDecl.cpp | D | 03-May-2024 | 100.3 KiB | 2,609 | 1,859 |
| CGDeclCXX.cpp | D | 03-May-2024 | 32.9 KiB | 828 | 539 |
| CGException.cpp | D | 03-May-2024 | 80.6 KiB | 2,184 | 1,446 |
| CGExpr.cpp | D | 03-May-2024 | 213.5 KiB | 5,424 | 4,002 |
| CGExprAgg.cpp | D | 03-May-2024 | 80.8 KiB | 2,169 | 1,499 |
| CGExprCXX.cpp | D | 03-May-2024 | 90.9 KiB | 2,318 | 1,560 |
| CGExprComplex.cpp | D | 03-May-2024 | 45.1 KiB | 1,189 | 887 |
| CGExprConstant.cpp | D | 03-May-2024 | 86 KiB | 2,339 | 1,697 |
| CGExprScalar.cpp | D | 03-May-2024 | 193.9 KiB | 4,964 | 3,512 |
| CGGPUBuiltin.cpp | D | 03-May-2024 | 6.2 KiB | 157 | 86 |
| CGLoopInfo.cpp | D | 03-May-2024 | 29 KiB | 807 | 645 |
| CGLoopInfo.h | D | 03-May-2024 | 10.7 KiB | 297 | 137 |
| CGNonTrivialStruct.cpp | D | 03-May-2024 | 41.4 KiB | 1,004 | 797 |
| CGObjC.cpp | D | 03-May-2024 | 149 KiB | 3,966 | 2,657 |
| CGObjCGNU.cpp | D | 03-May-2024 | 168.3 KiB | 4,136 | 2,981 |
| CGObjCMac.cpp | D | 03-May-2024 | 304.5 KiB | 7,928 | 5,117 |
| CGObjCRuntime.cpp | D | 03-May-2024 | 15.1 KiB | 403 | 268 |
| CGObjCRuntime.h | D | 03-May-2024 | 15.5 KiB | 355 | 198 |
| CGOpenCLRuntime.cpp | D | 03-May-2024 | 7.1 KiB | 187 | 139 |
| CGOpenCLRuntime.h | D | 03-May-2024 | 3.4 KiB | 104 | 49 |
| CGOpenMPRuntime.cpp | D | 03-May-2024 | 533.7 KiB | 12,717 | 10,088 |
| CGOpenMPRuntime.h | D | 03-May-2024 | 114.3 KiB | 2,495 | 974 |
| CGOpenMPRuntimeAMDGCN.cpp | D | 03-May-2024 | 2.2 KiB | 62 | 42 |
| CGOpenMPRuntimeAMDGCN.h | D | 03-May-2024 | 1.4 KiB | 44 | 18 |
| CGOpenMPRuntimeGPU.cpp | D | 03-May-2024 | 198.3 KiB | 4,872 | 3,743 |
| CGOpenMPRuntimeGPU.h | D | 03-May-2024 | 23.1 KiB | 505 | 195 |
| CGOpenMPRuntimeNVPTX.cpp | D | 03-May-2024 | 2 KiB | 57 | 38 |
| CGOpenMPRuntimeNVPTX.h | D | 03-May-2024 | 1.4 KiB | 44 | 18 |
| CGRecordLayout.h | D | 03-May-2024 | 8.4 KiB | 233 | 97 |
| CGRecordLayoutBuilder.cpp | D | 03-May-2024 | 44 KiB | 1,050 | 699 |
| CGStmt.cpp | D | 03-May-2024 | 99.3 KiB | 2,697 | 1,851 |
| CGStmtOpenMP.cpp | D | 03-May-2024 | 281.9 KiB | 6,732 | 5,531 |
| CGVTT.cpp | D | 03-May-2024 | 6.8 KiB | 179 | 125 |
| CGVTables.cpp | D | 03-May-2024 | 52.7 KiB | 1,334 | 898 |
| CGVTables.h | D | 03-May-2024 | 6.4 KiB | 162 | 79 |
| CGValue.h | D | 03-May-2024 | 21.2 KiB | 665 | 436 |
| CMakeLists.txt | D | 03-May-2024 | 1.6 KiB | 100 | 96 |
| CodeGenABITypes.cpp | D | 03-May-2024 | 5 KiB | 131 | 93 |
| CodeGenAction.cpp | D | 03-May-2024 | 45 KiB | 1,180 | 862 |
| CodeGenFunction.cpp | D | 03-May-2024 | 99.2 KiB | 2,592 | 1,792 |
| CodeGenFunction.h | D | 03-May-2024 | 205.6 KiB | 4,823 | 2,852 |
| CodeGenModule.cpp | D | 03-May-2024 | 236.5 KiB | 6,271 | 4,457 |
| CodeGenModule.h | D | 03-May-2024 | 61.6 KiB | 1,587 | 782 |
| CodeGenPGO.cpp | D | 03-May-2024 | 36.9 KiB | 1,088 | 805 |
| CodeGenPGO.h | D | 03-May-2024 | 4.4 KiB | 120 | 72 |
| CodeGenTBAA.cpp | D | 03-May-2024 | 16.9 KiB | 466 | 310 |
| CodeGenTBAA.h | D | 03-May-2024 | 9.2 KiB | 258 | 146 |
| CodeGenTypeCache.h | D | 03-May-2024 | 3.3 KiB | 122 | 73 |
| CodeGenTypes.cpp | D | 03-May-2024 | 32.9 KiB | 918 | 645 |
| CodeGenTypes.h | D | 03-May-2024 | 13.4 KiB | 319 | 160 |
| ConstantEmitter.h | D | 03-May-2024 | 6.6 KiB | 183 | 87 |
| ConstantInitBuilder.cpp | D | 03-May-2024 | 10.3 KiB | 300 | 221 |
| CoverageMappingGen.cpp | D | 03-May-2024 | 57.5 KiB | 1,599 | 1,128 |
| CoverageMappingGen.h | D | 03-May-2024 | 5.2 KiB | 159 | 89 |
| EHScopeStack.h | D | 03-May-2024 | 14.4 KiB | 419 | 193 |
| ItaniumCXXABI.cpp | D | 03-May-2024 | 180.9 KiB | 4,702 | 2,992 |
| MacroPPCallbacks.cpp | D | 03-May-2024 | 6.4 KiB | 200 | 146 |
| MacroPPCallbacks.h | D | 03-May-2024 | 4.5 KiB | 123 | 51 |
| MicrosoftCXXABI.cpp | D | 03-May-2024 | 176.1 KiB | 4,361 | 3,106 |
| ModuleBuilder.cpp | D | 03-May-2024 | 11.8 KiB | 347 | 244 |
| ObjectFilePCHContainerOperations.cpp | D | 03-May-2024 | 12.9 KiB | 365 | 280 |
| PatternInit.cpp | D | 03-May-2024 | 4.1 KiB | 84 | 52 |
| PatternInit.h | D | 03-May-2024 | 722 | 28 | 13 |
| README.txt | D | 03-May-2024 | 1.8 KiB | 48 | 35 |
| SanitizerMetadata.cpp | D | 03-May-2024 | 4.2 KiB | 106 | 78 |
| SanitizerMetadata.h | D | 03-May-2024 | 1.6 KiB | 53 | 33 |
| SwiftCallingConv.cpp | D | 03-May-2024 | 30.4 KiB | 883 | 578 |
| TargetInfo.cpp | D | 03-May-2024 | 404.4 KiB | 11,127 | 7,528 |
| TargetInfo.h | D | 03-May-2024 | 15.5 KiB | 355 | 144 |
| VarBypassDetector.cpp | D | 03-May-2024 | 5.1 KiB | 168 | 121 |
| VarBypassDetector.h | D | 03-May-2024 | 2.3 KiB | 71 | 31 |
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