llvm-project/clang/lib/Sema
Haojian Wu af29591650 [AST] Reduce the size of TemplateArgumentLocInfo.
allocate the underlying data of Template kind separately, this would reduce AST
memory usage

- TemplateArgumentLocInfo 24 => 8 bytes
- TemplateArgumentLoc  48 => 32 bytes
- DynTypeNode 56 => 40 bytes

ASTContext::.getASTAllocatedMemory changes:
  SemaDecl.cpp 255.5 MB => 247.5MB
  SemaExpr.cpp 293.5 MB => 283.5MB

Differential Revision: https://reviews.llvm.org/D87080
2020-09-21 13:08:53 +02:00
..
AnalysisBasedWarnings.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
CMakeLists.txt On Windows build, making the /bigobj flag global , instead of passing it per file. 2020-07-28 18:04:36 -05:00
CodeCompleteConsumer.cpp Remove llvm::Error include form Diagnostic.h 2020-04-06 10:42:17 -07:00
CoroutineStmtBuilder.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclSpec.cpp [clang]: Remove assertion which checks explicit declaration 2020-08-20 18:15:43 -07:00
DelayedDiagnostic.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IdentifierResolver.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
JumpDiagnostics.cpp [OPENMP]Simplify representation for atomic, critical, master and section 2020-08-07 09:58:23 -04:00
MultiplexExternalSemaSource.cpp Merge some of the PCH object support with modular codegen 2020-07-22 12:46:12 -07:00
OpenCLBuiltins.td [OpenCL] Add sub-group builtin functions 2020-04-02 13:18:56 +01:00
ParsedAttr.cpp [Sema] Silence warnings when targeting x86 with VS2019 16.5.4 2020-05-06 09:11:59 -04:00
Scope.cpp Un-revert "[coroutines][PR40978] Emit error for co_yield within catch block" 2019-03-25 00:53:10 +00:00
ScopeInfo.cpp PR42104: Support instantiations of lambdas that implicitly capture 2019-06-04 17:17:20 +00:00
Sema.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaAccess.cpp [c++20] Delete defaulted comparison functions if they would invoke an 2019-12-10 19:28:30 -08:00
SemaAttr.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaAvailability.cpp Prune TargetInfo.h include from ParsedAttr.h, NFC 2020-03-11 20:47:11 -07:00
SemaCUDA.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaCXXScopeSpec.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SemaCast.cpp [Sema][MSVC] warn at dynamic_cast/typeid when /GR- is given 2020-09-16 10:38:52 -07:00
SemaChecking.cpp Revert "[Sema] Address-space sensitive index check for unbounded arrays" 2020-09-15 01:57:29 -05:00
SemaCodeComplete.cpp [clang] Make signature help work with dependent args 2020-08-17 10:06:36 +02:00
SemaConcept.cpp [clang][NFC] Remove spurious +x flag on SemaConcept.cpp 2020-07-26 17:10:59 +01:00
SemaConsumer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SemaCoroutine.cpp [Coroutine][Sema] Tighten the lifetime of symmetric transfer returned handle 2020-09-11 13:35:37 -07:00
SemaDecl.cpp [Sema] Handle objc_super special lookup when checking builtin compatibility 2020-09-18 20:51:55 +03:00
SemaDeclAttr.cpp Sema: add support for `__attribute__((__swift_bridge__))` 2020-09-16 17:54:57 +00:00
SemaDeclCXX.cpp [AST][FPEnv] Keep FP options in trailing storage of CastExpr 2020-09-14 12:15:21 +07:00
SemaDeclObjC.cpp [clang] Don't make ObjCIvarDecl visible twice when adding them to an implicit ObjCInterfaceDecl 2020-08-11 16:24:32 +02:00
SemaExceptionSpec.cpp [Coroutines] Ensure co_await promise.final_suspend() does not throw 2020-06-22 15:01:42 -07:00
SemaExpr.cpp [Diagnostics] Fixed -Wsizeof-array-div false positive when divisor is sizeof reference type (PR47495) 2020-09-20 17:43:06 +02:00
SemaExprCXX.cpp [SystemZ][z/OS] Set aligned allocation unavailable by default for z/OS 2020-09-16 14:49:03 -04:00
SemaExprMember.cpp Improve modeling of variable template specializations with dependent 2020-08-09 23:22:26 -07:00
SemaExprObjC.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaFixItUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SemaInit.cpp [AST][FPEnv] Keep FP options in trailing storage of CastExpr 2020-09-14 12:15:21 +07:00
SemaLambda.cpp [AST][FPEnv] Keep FP options in trailing storage of CastExpr 2020-09-14 12:15:21 +07:00
SemaLookup.cpp [Sema] Introduce BuiltinAttr, per-declaration builtin-ness 2020-09-17 19:28:57 +03:00
SemaModule.cpp [DeclCXX] Remove unknown external linkage specifications 2019-11-21 15:23:05 +02:00
SemaObjCProperty.cpp [AST][FPEnv] Keep FP options in trailing storage of CastExpr 2020-09-14 12:15:21 +07:00
SemaOpenMP.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaOverload.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaPseudoObject.cpp Reland D81869 "Modify FPFeatures to use delta not absolute settings" 2020-06-27 01:34:57 -07:00
SemaSYCL.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaStmt.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaStmtAsm.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaStmtAttr.cpp Implements [[likely]] and [[unlikely]] in IfStmt. 2020-09-09 20:48:37 +02:00
SemaTemplate.cpp [AST] Reduce the size of TemplateArgumentLocInfo. 2020-09-21 13:08:53 +02:00
SemaTemplateDeduction.cpp [AST] Reduce the size of TemplateArgumentLocInfo. 2020-09-21 13:08:53 +02:00
SemaTemplateInstantiate.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
SemaTemplateInstantiateDecl.cpp [AST] Reduce the size of TemplateArgumentLocInfo. 2020-09-21 13:08:53 +02:00
SemaTemplateVariadic.cpp [AST] Reduce the size of TemplateArgumentLocInfo. 2020-09-21 13:08:53 +02:00
SemaType.cpp Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-09-17 13:55:31 -04:00
TreeTransform.h [AST] Reduce the size of TemplateArgumentLocInfo. 2020-09-21 13:08:53 +02:00
TypeLocBuilder.cpp [NFC] avoid AlignedCharArray in clang 2019-07-29 23:12:48 +00:00
TypeLocBuilder.h [NFC] avoid AlignedCharArray in clang 2019-07-29 23:12:48 +00:00
UsedDeclVisitor.h recommit 1b978ddba0 [CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese 2020-03-23 12:09:07 -04:00