Home | History | Annotate | only in /external/clang/lib/CodeGen
Up to higher level directory
NameDateSize
ABIInfo.h22-Oct-20204.9K
Address.h22-Oct-20203.3K
Android.bp22-Oct-2020106
BackendUtil.cpp22-Oct-202034.2K
CGAtomic.cpp22-Oct-202074.9K
CGBlocks.cpp22-Oct-202085.8K
CGBlocks.h22-Oct-20208.2K
CGBuilder.h22-Oct-202012.6K
CGBuiltin.cpp22-Oct-2020335.9K
CGCall.cpp22-Oct-2020158.3K
CGCall.h22-Oct-20205.5K
CGClass.cpp22-Oct-2020112.8K
CGCleanup.cpp22-Oct-202045.4K
CGCleanup.h22-Oct-202019.5K
CGCUDABuiltin.cpp22-Oct-20204.4K
CGCUDANV.cpp22-Oct-202015K
CGCUDARuntime.cpp22-Oct-20201.8K
CGCUDARuntime.h22-Oct-20202.1K
CGCXX.cpp22-Oct-202012.3K
CGCXXABI.cpp22-Oct-202012.1K
CGCXXABI.h22-Oct-202025.1K
CGDebugInfo.cpp22-Oct-2020143K
CGDebugInfo.h22-Oct-202025.1K
CGDecl.cpp22-Oct-202069.1K
CGDeclCXX.cpp22-Oct-202024.4K
CGException.cpp22-Oct-202068K
CGExpr.cpp22-Oct-2020165.3K
CGExprAgg.cpp22-Oct-202058.3K
CGExprComplex.cpp22-Oct-202041.9K
CGExprConstant.cpp22-Oct-202058.5K
CGExprCXX.cpp22-Oct-202075.9K
CGExprScalar.cpp22-Oct-2020133.4K
CGLoopInfo.cpp22-Oct-20209.7K
CGLoopInfo.h22-Oct-20205.5K
CGObjC.cpp22-Oct-2020124.9K
CGObjCGNU.cpp22-Oct-2020122.8K
CGObjCMac.cpp22-Oct-2020287.5K
CGObjCRuntime.cpp22-Oct-202014K
CGObjCRuntime.h22-Oct-202013.3K
CGOpenCLRuntime.cpp22-Oct-20202.7K
CGOpenCLRuntime.h22-Oct-20201.5K
CGOpenMPRuntime.cpp22-Oct-2020273.2K
CGOpenMPRuntime.h22-Oct-202048.5K
CGOpenMPRuntimeNVPTX.cpp22-Oct-202014.7K
CGOpenMPRuntimeNVPTX.h22-Oct-20206.7K
CGRecordLayout.h22-Oct-20207.9K
CGRecordLayoutBuilder.cpp22-Oct-202036.2K
CGStmt.cpp22-Oct-202082.4K
CGStmtOpenMP.cpp22-Oct-2020148.5K
CGValue.h22-Oct-202018.6K
CGVTables.cpp22-Oct-202037.3K
CGVTables.h22-Oct-20204.3K
CGVTT.cpp22-Oct-20206.7K
CMakeLists.txt22-Oct-20201.6K
CodeGenABITypes.cpp22-Oct-20202.4K
CodeGenAction.cpp22-Oct-202033.8K
CodeGenFunction.cpp22-Oct-202074.8K
CodeGenFunction.h22-Oct-2020147.3K
CodeGenModule.cpp22-Oct-2020162.4K
CodeGenModule.h22-Oct-202047.5K
CodeGenPGO.cpp22-Oct-202030.5K
CodeGenPGO.h22-Oct-20204.5K
CodeGenTBAA.cpp22-Oct-202011.2K
CodeGenTBAA.h22-Oct-20205.4K
CodeGenTypeCache.h22-Oct-20203K
CodeGenTypes.cpp22-Oct-202027.5K
CodeGenTypes.h22-Oct-202014.7K
CoverageMappingGen.cpp22-Oct-202039.7K
CoverageMappingGen.h22-Oct-20203.9K
EHScopeStack.h22-Oct-202014.5K
ItaniumCXXABI.cpp22-Oct-2020147.6K
MicrosoftCXXABI.cpp22-Oct-2020168.9K
ModuleBuilder.cpp22-Oct-202010.7K
ObjectFilePCHContainerOperations.cpp22-Oct-202012.1K
README.txt22-Oct-20201.8K
SanitizerMetadata.cpp22-Oct-20203.9K
SanitizerMetadata.h22-Oct-20201.6K
SwiftCallingConv.cpp22-Oct-202027.8K
TargetInfo.cpp22-Oct-2020290.4K
TargetInfo.h22-Oct-20209.2K

README.txt

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