|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| ABIInfo.h | D | 03-May-2024 | 4.9 KiB | 154 | 87 |
| Address.h | D | 03-May-2024 | 3.3 KiB | 119 | 72 |
| Android.bp | D | 03-May-2024 | 106 | 6 | 5 |
| BackendUtil.cpp | D | 03-May-2024 | 34.2 KiB | 911 | 716 |
| CGAtomic.cpp | D | 03-May-2024 | 74.9 KiB | 1,855 | 1,420 |
| CGBlocks.cpp | D | 03-May-2024 | 85.8 KiB | 2,369 | 1,458 |
| CGBlocks.h | D | 03-May-2024 | 8.2 KiB | 278 | 191 |
| CGBuilder.h | D | 03-May-2024 | 12.6 KiB | 303 | 219 |
| CGBuiltin.cpp | D | 03-May-2024 | 335.9 KiB | 8,103 | 6,973 |
| CGCUDABuiltin.cpp | D | 03-May-2024 | 4.4 KiB | 118 | 58 |
| CGCUDANV.cpp | D | 03-May-2024 | 15 KiB | 368 | 233 |
| CGCUDARuntime.cpp | D | 03-May-2024 | 1.8 KiB | 56 | 31 |
| CGCUDARuntime.h | D | 03-May-2024 | 2.1 KiB | 74 | 36 |
| CGCXX.cpp | D | 03-May-2024 | 12.3 KiB | 327 | 196 |
| CGCXXABI.cpp | D | 03-May-2024 | 12.1 KiB | 333 | 239 |
| CGCXXABI.h | D | 03-May-2024 | 25.1 KiB | 589 | 265 |
| CGCall.cpp | D | 03-May-2024 | 158.3 KiB | 4,142 | 2,974 |
| CGCall.h | D | 03-May-2024 | 5.5 KiB | 179 | 106 |
| CGClass.cpp | D | 03-May-2024 | 112.8 KiB | 3,005 | 2,044 |
| CGCleanup.cpp | D | 03-May-2024 | 45.4 KiB | 1,229 | 767 |
| CGCleanup.h | D | 03-May-2024 | 19.5 KiB | 645 | 412 |
| CGDebugInfo.cpp | D | 03-May-2024 | 143 KiB | 3,774 | 2,816 |
| CGDebugInfo.h | D | 03-May-2024 | 25.1 KiB | 597 | 302 |
| CGDecl.cpp | D | 03-May-2024 | 69.1 KiB | 1,880 | 1,245 |
| CGDeclCXX.cpp | D | 03-May-2024 | 24.4 KiB | 625 | 408 |
| CGException.cpp | D | 03-May-2024 | 68 KiB | 1,901 | 1,257 |
| CGExpr.cpp | D | 03-May-2024 | 165.3 KiB | 4,264 | 3,116 |
| CGExprAgg.cpp | D | 03-May-2024 | 58.3 KiB | 1,576 | 1,021 |
| CGExprCXX.cpp | D | 03-May-2024 | 75.9 KiB | 1,959 | 1,314 |
| CGExprComplex.cpp | D | 03-May-2024 | 41.9 KiB | 1,110 | 818 |
| CGExprConstant.cpp | D | 03-May-2024 | 58.5 KiB | 1,634 | 1,188 |
| CGExprScalar.cpp | D | 03-May-2024 | 133.4 KiB | 3,545 | 2,551 |
| CGLoopInfo.cpp | D | 03-May-2024 | 9.7 KiB | 297 | 240 |
| CGLoopInfo.h | D | 03-May-2024 | 5.5 KiB | 172 | 81 |
| CGObjC.cpp | D | 03-May-2024 | 124.9 KiB | 3,371 | 2,211 |
| CGObjCGNU.cpp | D | 03-May-2024 | 122.8 KiB | 2,906 | 2,090 |
| CGObjCMac.cpp | D | 03-May-2024 | 287.5 KiB | 7,326 | 4,697 |
| CGObjCRuntime.cpp | D | 03-May-2024 | 14 KiB | 381 | 241 |
| CGObjCRuntime.h | D | 03-May-2024 | 13.3 KiB | 313 | 174 |
| CGOpenCLRuntime.cpp | D | 03-May-2024 | 2.7 KiB | 79 | 56 |
| CGOpenCLRuntime.h | D | 03-May-2024 | 1.5 KiB | 56 | 25 |
| CGOpenMPRuntime.cpp | D | 03-May-2024 | 273.2 KiB | 6,596 | 4,852 |
| CGOpenMPRuntime.h | D | 03-May-2024 | 48.5 KiB | 1,046 | 405 |
| CGOpenMPRuntimeNVPTX.cpp | D | 03-May-2024 | 14.7 KiB | 397 | 256 |
| CGOpenMPRuntimeNVPTX.h | D | 03-May-2024 | 6.7 KiB | 180 | 63 |
| CGRecordLayout.h | D | 03-May-2024 | 7.9 KiB | 221 | 93 |
| CGRecordLayoutBuilder.cpp | D | 03-May-2024 | 36.2 KiB | 861 | 588 |
| CGStmt.cpp | D | 03-May-2024 | 82.4 KiB | 2,258 | 1,490 |
| CGStmtOpenMP.cpp | D | 03-May-2024 | 148.5 KiB | 3,632 | 2,900 |
| CGVTT.cpp | D | 03-May-2024 | 6.7 KiB | 179 | 123 |
| CGVTables.cpp | D | 03-May-2024 | 37.3 KiB | 984 | 667 |
| CGVTables.h | D | 03-May-2024 | 4.3 KiB | 120 | 56 |
| CGValue.h | D | 03-May-2024 | 18.6 KiB | 596 | 380 |
| CMakeLists.txt | D | 03-May-2024 | 1.6 KiB | 92 | 87 |
| CodeGenABITypes.cpp | D | 03-May-2024 | 2.4 KiB | 67 | 42 |
| CodeGenAction.cpp | D | 03-May-2024 | 33.8 KiB | 879 | 627 |
| CodeGenFunction.cpp | D | 03-May-2024 | 74.8 KiB | 2,010 | 1,349 |
| CodeGenFunction.h | D | 03-May-2024 | 147.3 KiB | 3,513 | 1,998 |
| CodeGenModule.cpp | D | 03-May-2024 | 162.4 KiB | 4,314 | 3,001 |
| CodeGenModule.h | D | 03-May-2024 | 47.5 KiB | 1,267 | 655 |
| CodeGenPGO.cpp | D | 03-May-2024 | 30.5 KiB | 895 | 651 |
| CodeGenPGO.h | D | 03-May-2024 | 4.5 KiB | 126 | 75 |
| CodeGenTBAA.cpp | D | 03-May-2024 | 11.2 KiB | 324 | 214 |
| CodeGenTBAA.h | D | 03-May-2024 | 5.4 KiB | 158 | 87 |
| CodeGenTypeCache.h | D | 03-May-2024 | 3 KiB | 109 | 66 |
| CodeGenTypes.cpp | D | 03-May-2024 | 27.5 KiB | 771 | 506 |
| CodeGenTypes.h | D | 03-May-2024 | 14.7 KiB | 373 | 211 |
| CoverageMappingGen.cpp | D | 03-May-2024 | 39.7 KiB | 1,115 | 798 |
| CoverageMappingGen.h | D | 03-May-2024 | 3.9 KiB | 117 | 66 |
| EHScopeStack.h | D | 03-May-2024 | 14.5 KiB | 422 | 194 |
| ItaniumCXXABI.cpp | D | 03-May-2024 | 147.6 KiB | 3,878 | 2,405 |
| MicrosoftCXXABI.cpp | D | 03-May-2024 | 168.9 KiB | 4,192 | 2,995 |
| ModuleBuilder.cpp | D | 03-May-2024 | 10.7 KiB | 320 | 218 |
| ObjectFilePCHContainerOperations.cpp | D | 03-May-2024 | 12.1 KiB | 340 | 257 |
| README.txt | D | 03-May-2024 | 1.8 KiB | 48 | 35 |
| SanitizerMetadata.cpp | D | 03-May-2024 | 3.9 KiB | 96 | 69 |
| SanitizerMetadata.h | D | 03-May-2024 | 1.6 KiB | 54 | 33 |
| SwiftCallingConv.cpp | D | 03-May-2024 | 27.8 KiB | 831 | 552 |
| TargetInfo.cpp | D | 03-May-2024 | 290.4 KiB | 8,098 | 5,280 |
| TargetInfo.h | D | 03-May-2024 | 9.2 KiB | 229 | 79 |
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